/*
    Author: Hannah Howard
    Date: September 28, 2026
    File Name: styles.css
    Description: Main stylesheet for the HH Studio portfolio website
*/


/* ==============================
   COLOR PALETTE
   ============================== */

/*
    Warm Ivory:       #F2EFE9
    Light Stone:      #E2DDD5
    Almost Black:     #211E1C
    Deep Mocha:       #725B4C
    Greige Border:    #C8C0B7
    Ivory White:      #FAF8F4
*/


/* ==============================
   CSS RESET
   ============================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
header,
nav,
main,
section,
footer,
h1,
h2,
h3,
p,
ul,
ol,
form {
    margin: 0;
    padding: 0;
}


/* ==============================
   GENERAL STYLES
   ============================== */

body {
    background-color: #F2EFE9;
    color: #211E1C;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.7;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

a {
    color: #211E1C;
}

a:hover {
    color: #725B4C;
}

main {
    overflow: hidden;
}


/* ==============================
   HEADER
   ============================== */

header {
    align-items: center;
    background-color: #F2EFE9;
    border-bottom: 1px solid #C8C0B7;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 5%;
    position: relative;
    width: 100%;
    z-index: 10;
}

.logo-text {
    color: #211E1C;
    font-size: 1.35rem;
    font-weight: normal;
    letter-spacing: 0.18em;
    text-decoration: none;
    text-transform: uppercase;
}

.logo-text:hover {
    color: #211E1C;
}


/* ==============================
   NAVIGATION
   ============================== */

nav ul {
    list-style-type: none;
}

nav li {
    display: inline-block;
    margin-left: 1.5rem;
}

nav a {
    color: #211E1C;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
}

nav a::after {
    background-color: #725B4C;
    bottom: -0.45rem;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    width: 100%;
}

nav a:hover {
    color: #725B4C;
}

nav a:hover::after {
    transform: scaleX(1);
}


/* ==============================
   TYPOGRAPHY
   ============================== */

h1,
h2,
h3 {
    font-weight: normal;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    letter-spacing: -0.025em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h3 {
    font-size: 1.35rem;
    line-height: 1.3;
}

.subtitle,
.category {
    color: #725B4C;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.18em;
    line-height: 1.5;
    text-transform: uppercase;
}


/* ==============================
   HERO
   ============================== */

.hero {
    align-items: center;
    display: grid;
    gap: 5rem;
    grid-template-columns: 1fr 1fr;
    margin: 0 auto;
    max-width: 1300px;
    min-height: 80vh;
    padding: 6rem 5%;
}

.hero-image {
    order: 1;
    text-align: center;
}

.hero-image img {
    margin: 0 auto;
    max-width: 500px;
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: translateY(-6px);
}

.hero-content {
    max-width: 600px;
    order: 2;
}

.hero-content .subtitle {
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p:not(.subtitle) {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    max-width: 550px;
}


/* ==============================
   BUTTONS
   ============================== */

.button {
    background-color: transparent;
    border: 1px solid #211E1C;
    color: #211E1C;
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    margin-top: 1.25rem;
    padding: 0.9rem 1.7rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease,
                color 0.3s ease,
                transform 0.3s ease;
}

.button:hover {
    background-color: #211E1C;
    color: #FAF8F4;
    transform: translateY(-2px);
}


/* ==============================
   INTRODUCTION
   ============================== */

.introduction {
    border-top: 1px solid #C8C0B7;
    margin: 0 auto;
    max-width: 1000px;
    padding: 7rem 5%;
    text-align: center;
}

.introduction .subtitle {
    margin-bottom: 1rem;
}

.introduction h2 {
    margin-bottom: 1.5rem;
}

.introduction p {
    margin: 0 auto 1rem;
    max-width: 720px;
}


/* ==============================
   FEATURED WORK
   ============================== */

.featured {
    background-color: #E2DDD5;
    padding: 7rem 5%;
    text-align: center;
}

.featured > .subtitle {
    margin-bottom: 1rem;
}

.featured h2 {
    margin-bottom: 3rem;
}

.featured-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
    max-width: 1150px;
}

.featured article {
    background-color: #FAF8F4;
    border: 1px solid #C8C0B7;
    min-height: 220px;
    padding: 2.5rem;
    text-align: left;
    transition: box-shadow 0.3s ease,
                transform 0.3s ease;
}

.featured article:hover {
    box-shadow: 0 15px 35px rgba(33, 30, 28, 0.1);
    transform: translateY(-5px);
}

.featured article h3 {
    margin-bottom: 1rem;
}

.featured article p {
    color: #514A45;
}


/* ==============================
   ABOUT HIGHLIGHT
   ============================== */

.about-highlight {
    padding: 8rem 5%;
    text-align: center;
}

.about-highlight .subtitle {
    margin-bottom: 1rem;
}

.about-highlight h2 {
    margin: 0 auto 1.5rem;
    max-width: 850px;
}

.about-highlight p {
    margin: 0 auto;
    max-width: 700px;
}


/* ==============================
   PAGE HEROES
   ============================== */

.about-hero,
.portfolio-hero,
.contact-hero {
    margin: 0 auto;
    max-width: 900px;
    padding: 7rem 5%;
    text-align: center;
}

.about-hero .subtitle,
.portfolio-hero .subtitle,
.contact-hero .subtitle {
    margin-bottom: 1rem;
}

.about-hero h1,
.portfolio-hero h1,
.contact-hero h1 {
    margin-bottom: 1.5rem;
}

.about-hero p:not(.subtitle),
.portfolio-hero p:not(.subtitle),
.contact-hero p:not(.subtitle) {
    margin: 0 auto;
    max-width: 700px;
}


/* ==============================
   ABOUT SECTIONS
   ============================== */

.about-section {
    border-top: 1px solid #C8C0B7;
    margin: 0 auto;
    max-width: 1100px;
    padding: 6rem 5%;
    text-align: center;
}

.about-section h2 {
    margin-bottom: 1.5rem;
}

.about-section > p {
    margin: 0 auto 1rem;
    max-width: 750px;
}


/* About List */

.about-section ul {
    margin: 2rem auto 0;
    max-width: 600px;
    padding-left: 1.5rem;
    text-align: left;
}

.about-section li {
    margin-bottom: 0.7rem;
    padding-left: 0.4rem;
}


/* About Grid */

.about-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 3rem;
}

.about-grid article {
    border: 1px solid #C8C0B7;
    padding: 2.5rem 2rem;
    text-align: left;
    transition: background-color 0.3s ease,
                transform 0.3s ease;
}

.about-grid article:hover {
    background-color: #E2DDD5;
    transform: translateY(-4px);
}

.about-grid article h3 {
    margin-bottom: 1rem;
}


/* ==============================
   PORTFOLIO
   ============================== */

.portfolio-section {
    margin: 0 auto;
    max-width: 1200px;
    padding: 6rem 5%;
}

.portfolio-section > .category {
    margin-bottom: 1rem;
}

.portfolio-section > h2 {
    margin-bottom: 1rem;
}

.portfolio-section > p:not(.category) {
    max-width: 750px;
}


/* Portfolio Grid */

.portfolio-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 3rem;
}


/* Portfolio Cards */

.portfolio-card {
    background-color: #FAF8F4;
    border: 1px solid #C8C0B7;
    overflow: hidden;
    padding: 0 0 2rem;
    transition: box-shadow 0.35s ease,
                transform 0.35s ease;
}

.portfolio-card:hover {
    box-shadow: 0 18px 40px rgba(33, 30, 28, 0.12);
    transform: translateY(-6px);
}

.portfolio-card img {
    background-color: #E2DDD5;
    height: 240px;
    margin: 0 0 1.5rem;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.4s ease;
    width: 100%;
}

.portfolio-card:hover img {
    transform: scale(1.02);
}

.portfolio-card h3,
.portfolio-card p,
.portfolio-card .project-label {
    margin-left: 1.75rem;
    margin-right: 1.75rem;
}

.portfolio-card h3 {
    margin-bottom: 0.75rem;
}

.portfolio-card p {
    color: #514A45;
}

.project-label {
    color: #725B4C;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}


/* Portfolio Background */

.portfolio-background {
    background-color: #E2DDD5;
    padding: 7rem 10%;
    text-align: center;
}

.portfolio-background p {
    margin: 0 auto;
    max-width: 700px;
}


/* ==============================
   CONTACT PAGE
   ============================== */

.contact-section {
    border-top: 1px solid #C8C0B7;
    padding: 6rem 5%;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 2rem;
}

.contact-box {
    background-color: #FAF8F4;
    border: 1px solid #C8C0B7;
    box-shadow: 0 10px 30px rgba(33, 30, 28, 0.05);
    margin: 0 auto;
    max-width: 750px;
    padding: 3rem;
}

.contact-box h3 {
    margin-bottom: 1rem;
}

.contact-box p {
    margin-bottom: 1rem;
}

.contact-box a {
    color: #725B4C;
}


/* ==============================
   CONTACT FORM
   ============================== */

form {
    background-color: #FAF8F4;
    border: 1px solid #C8C0B7;
    margin: 2rem auto 0;
    max-width: 750px;
    padding: 3rem;
    text-align: left;
}

form label {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="date"],
form select,
form textarea {
    background-color: #F2EFE9;
    border: 1px solid #C8C0B7;
    border-radius: 0;
    color: #211E1C;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem;
    width: 100%;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #725B4C;
    outline: 2px solid rgba(114, 91, 76, 0.15);
}

form textarea {
    min-height: 150px;
    resize: vertical;
}

form input[type="radio"],
form input[type="checkbox"] {
    margin-right: 0.4rem;
}

form input[type="radio"] + label,
form input[type="checkbox"] + label {
    display: inline;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: normal;
    margin-right: 1rem;
    text-transform: none;
}

form input[type="submit"],
form input[type="reset"] {
    background-color: #211E1C;
    border: 1px solid #211E1C;
    color: #FAF8F4;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    margin: 1rem 0.5rem 0 0;
    padding: 0.9rem 1.5rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease,
                color 0.3s ease;
}

form input[type="reset"] {
    background-color: transparent;
    color: #211E1C;
}

form input[type="submit"]:hover {
    background-color: #725B4C;
    border-color: #725B4C;
}

form input[type="reset"]:hover {
    background-color: #E2DDD5;
}


/* ==============================
   PROJECT IMAGE
   ============================== */

.project-image {
    display: block;
    height: auto;
    margin: 0 auto;
    max-width: 1000px;
    width: 100%;
}


/* ==============================
   BACK TO TOP
   ============================== */

.back-to-top {
    padding: 2rem 5%;
    text-align: center;
}

.back-to-top a {
    color: #725B4C;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.back-to-top a:hover {
    color: #211E1C;
}


/* ==============================
   FOOTER
   ============================== */

footer {
    border-top: 1px solid #C8C0B7;
    padding: 3rem 5%;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #725B4C;
    text-decoration: none;
}


/* ==============================
   TABLET
   ============================== */

@media screen and (max-width: 900px) {

    header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.25rem;
    }

    nav li {
        margin-left: 0;
        margin-right: 1rem;
    }

    .hero {
        gap: 3rem;
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 5rem 6%;
        text-align: center;
    }

    .hero-image {
        order: 1;
    }

    .hero-content {
        margin: 0 auto;
        order: 2;
    }

    .featured-grid,
    .about-grid,
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ==============================
   MOBILE
   ============================== */

@media screen and (max-width: 600px) {

    header {
        padding: 1.25rem 6%;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem 1rem;
    }

    nav li {
        margin: 0;
    }

    nav a {
        font-size: 0.68rem;
    }

    h1 {
        font-size: 2.7rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 4rem 6%;
    }

    .hero-image img {
        max-width: 300px;
    }

    .introduction,
    .featured,
    .about-section,
    .contact-section,
    .portfolio-section {
        padding: 4.5rem 6%;
    }

    .about-hero,
    .portfolio-hero,
    .contact-hero {
        padding: 5rem 6%;
    }

    .featured-grid,
    .about-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .featured article,
    .about-grid article {
        min-height: auto;
        padding: 2rem;
    }

    .contact-box,
    form {
        padding: 2rem 1.5rem;
    }

    .about-highlight,
    .portfolio-background {
        padding: 5rem 6%;
    }

    form input[type="submit"],
    form input[type="reset"] {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    footer {
        padding: 2.5rem 6%;
    }
}