/* Reset and global styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--green-dark);
    line-height: 1.6;
}

img {
    display: block;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Color variables */

:root {
    --cream: #f5f1e8;
    --cream-dark: #ebe1d5;
    --green-dark: #293b32;
    --green: #718477;
    --green-light: #dde3de;
    --brown: #3b3028;
    --burgundy: #7d455c;
    --gold: #c39a5a;
    --white: #ffffff;
    --text-light: #f5f1e8;

    --border: #d6cec0;
    --form-background: #fbf8f1;

    --max-width: 1200px;
}

/* Reusable layout */

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.eyebrow {
    color: var(--burgundy);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
}

h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    max-width: 65ch;
}

/* Buttons */

.button,
.header_button {
    display: inline-block;
    background-color: var(--burgundy);
    color: var(--white);
    padding: 14px 26px;
    border: 2px solid var(--burgundy);
    font-weight: bold;
    transition: 0.3s ease;
}

.button:hover,
.header_button:hover {
    background-color: transparent;
    color: var(--burgundy);
}

.text_link {
    display: inline-block;
    margin-top: auto;
    padding-top: 20px;
    color: var(--burgundy);
    font-weight: bold;
}

.text_link:hover {
    text-decoration: underline;
}

/* Header */

.site_header {
    background-color: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    position: relative;
    z-index: 10;
}

.header_container {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
}

/* Mobile menu is hidden by default */

.mobile_menu {
    display: none;
}

.desktop_navigation ul {
    display: flex;
    gap: 30px;
}

.desktop_navigation a {
    font-size: 0.9rem;
    font-weight: bold;
}

.desktop_navigation a:hover {
    color: var(--burgundy);
}

.header_button {
    padding: 10px 18px;
    font-size: 0.85rem;
}

/* Hero */

.hero {
    position: relative;
    min-height: 75vh;
    min-height: 700px;
    overflow: hidden;
}

.hero_video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(20, 30, 24, 0.75), rgba(20, 30, 24, 0.25));
}

.hero_overlay {
    position: relative;
    z-index: 1;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.hero_content {
    padding: 80px 0;
}

.hero_content h1 {
    max-width: 800px;
    margin: 25px 0;
}

.hero_text {
    font-size: 1.2rem;
    max-width: 550px;
    margin-bottom: 35px;
}

.hero .eyebrow {
    color: var(--gold);
}

/* Featured Teas */

.section_heading {
    max-width: 700px;
    margin-bottom: 60px;
}

.section_heading h2 {
    margin-bottom: 20px;
}

.tea_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.tea_card {
    background-color: var(--white);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tea_card:hover {
    transform: translateY(-6px);
}

.tea_card>img {
    height: 350px;
    object-fit: cover;
}

.tea_card_content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tea_type {
    color: var(--burgundy);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tea_card h3 {
    margin-bottom: 12px;
}

.tea_card p {
    color: var(--green);
}

/* About / Our Story */

.about {
    background-color: var(--green-light);
}

.about_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.about_image {
    height: 600px;
    object-fit: cover;
}

.about_content h2 {
    margin-bottom: 25px;
}

.about_content p {
    margin-bottom: 20px;
}

.about_content .button {
    margin-top: 15px;
}

/* Tea Club / Subscription */
.subscription {
    background-color: var(--green-dark);
    color: var(--text-light);
    text-align: center;
}

.subscription_container {
    display: flex;
    justify-content: center;
}

.subscription_content {
    max-width: 750px;
}

.subscription_content h2 {
    margin-bottom: 25px;
}

.subscription_content p {
    margin: 0 auto 35px;
    color: #d9dfda;
}

.subscription .eyebrow {
    color: var(--gold);
}

/* Contact / Form */

.contact_container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
    align-items: start;
}

.contact_info h2 {
    margin-bottom: 25px;
}

.contact_info>p {
    margin-bottom: 40px;
}

.contact_details {
    border-top: 1px solid var(--border);
    padding-top: 25px;
}

.contact_details p {
    margin-bottom: 25px;
}

.form_container {
    background-color: var(--white);
    padding: 45px;
}

.form_group {
    margin-bottom: 25px;
}

.form_group label,
.form_group legend {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.form_group input,
.form_group select,
.form_group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    background-color: var(--form-background);
    color: var(--green-dark);
    outline: none;
    transition: border-color 0.2s ease;
}

.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus {
    border-color: var(--burgundy);
}

.form_group textarea {
    resize: vertical;
    min-height: 130px;
}

fieldset {
    border: none;
}

.checkbox_label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    margin-bottom: 10px;
}

.checkbox_label input {
    width: auto;
}

/* Footer */

.site_footer {
    background-color: var(--brown);
    color: var(--text-light);
    padding-top: 70px;
}

.footer_container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer_brand p {
    color: var(--text-light);
    opacity: 0.75;
    margin-top: 10px;
}

.footer_links h3,
.footer_contact h3 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer_links li {
    margin-bottom: 10px;
}

.footer_links a:hover {
    color: var(--gold);
}

.footer_contact p {
    color: var(--text-light);
    opacity: 0.75;
    margin-bottom: 15px;
}

.footer_bottom {
    border-top: 1px solid #4a514b;
    padding: 25px 0;
}

.footer_bottom p {
    color: var(--green);
    opacity: 0.75;
    font-size: 0.85rem;
}

/* Large Screens 1200px+ */

@media (min-width: 1200px) {
    .hero_content {
        padding-left: 20px;
    }
}

/* Tablet 900px and below */

@media (max-width: 900px) {
    .section {
        padding: 80px 0;
    }

    /* Header */
    .desktop_navigation ul {
        gap: 15px;
    }

    .header_button {
        display: none;
    }

    /* Hero */

    .hero {
        min-height: 600px;
    }

    .hero_overlay {
        min-height: 600px;
    }

    /* Tea cards */

    .tea_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About */

    .about_container {
        gap: 50px;
    }

    .about_image {
        height: 500px;
    }

    /* Contact */

    .contact_container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    /* Footer */

    .footer_container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile 600px and below */

@media (max-width: 600px) {
    .container {
        width: 90%;
    }

    .section {
        padding: 65px 0;
    }

    /* Header */

    .header_container {
        min-height: 70px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .desktop_navigation {
        display: none;
    }

    .mobile_menu {
        display: block;
        position: relative;
    }

    .mobile_menu summary {
        cursor: pointer;
        list-style: none;
        padding: 10px 15px;
        border: 1px solid var(--green-dark);
        font-weight: bold;
    }

    .mobile_menu summary::-webkit-details-marker {
        display: none;
    }

    .mobile_menu nav {
        position: absolute;
        right: 0;
        top: 100%;
        width: 200px;
        background-color: var(--cream);
        border: 1px solid var(--cream-dark);
        padding: 15px;
    }

    .mobile_menu li {
        border-bottom: 1px solid var(--cream-dark);
    }

    .mobile_menu li:last-child {
        border-bottom: none;
    }

    .mobile_menu a {
        display: block;
        padding: 12px 15px;
    }

    /* Hero */

    .hero {
        min-height: 550px;
    }

    .hero_overlay {
        min-height: 550px;
    }

    .hero_video {
        object-position: center;
    }

    .hero_content {
        padding: 50px 0;
    }

    h1 {
        font-size: clamp(2.8rem, 14vw, 4rem);
    }

    .hero_text {
        font-size: 1rem;
    }

    /* Section headings */

    h2 {
        font-size: 2.4rem;
    }

    .section_heading {
        margin-bottom: 40px;
    }

    /* Tea cards */

    .tea_grid {
        grid-template-columns: 1fr;
    }

    .tea_card>img {
        height: 300px;
    }

    /* About */

    .about_container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about_image {
        order: 1;
        height: 400px;
    }

    .about_content {
        order: 2;
    }

    /* Contact form */

    .form_container {
        padding: 30px 20px;
    }

    /* Footer */

    .footer_container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 45px;
    }

}

/* Small mobile 360px and below */

@media (max-width: 360px) {

    .container {
        width: 92%;
    }

    .section {
        padding: 55px 0;
    }

    /* Header */

    .header_container {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    /* Hero */

    .hero,
    .hero_overlay {
        min-height: 550px;
    }

    .hero_content {
        padding: 40px 0;
    }

    .hero_text {
        font-size: 0.95rem;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    /* Tea cards */

    .tea_card_content {
        padding: 22px;
    }

    .tea_card>img {
        height: 250px;
    }

    /* About */

    .about_image {
        height: 300px;
    }

    /* Form */

    .form_container {
        padding: 25px 15px;
    }
}