/* 1. GLOBAL COLOURS */

:root {
    --forest: #092b22;
    --deep: #061a15;
    --gold: #d9b45b;
    --cream: #f6f2e8;
    --ink: #18362c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--deep);
    color: var(--cream);
    font-family: Montserrat, Arial, sans-serif;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

/* ==========================================
   2. NAVIGATION BAR & LOGO
========================================== */

nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 80px;
    min-height: 80px;
    padding: 0 6%;

    border-bottom: 1px solid #ffffff36;
    background: #061a1555;
    backdrop-filter: blur(8px);
}

/* Logo container */

nav a.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex: 0 0 82px;
    width: 82px;
    height: 80px;

    position: relative;
    z-index: 10;
    overflow: hidden;

    font-family: "Cormorant Garamond", serif;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Actual logo image */

nav a.logo img {
    display: block;

    width: 76px !important;
    max-width: 76px !important;

    height: 68px !important;
    max-height: 68px !important;

    object-fit: contain;
    flex-shrink: 0;
}

.logo b {
    color: var(--gold);
}

/* Navigation links */

.links {
    display: flex;
    align-items: center;
    gap: 32px;

    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.links a {
    transition: color 0.25s ease;
}

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

/* ==========================================
   3. HERO SECTION
========================================== */

.hero {
    min-height: 100vh;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            #031a15aa,
            #031a1544 45%,
            #061a15
        ),
        linear-gradient(
            90deg,
            #041c18bb,
            #041c1811,
            #041c18bb
        ),
        url("assets/sigiriya.jpg") center / cover;
}

.hero-inner {
    padding: 140px 18px 90px;
    position: relative;
    max-width: 980px;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1.9;
}

.hero h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(70px, 11vw, 150px);
    font-weight: 500;
    line-height: 0.92;
    margin: 24px 0;
}

.hero h1 em {
    font-weight: 400;
    color: #e5d3a7;
}

.hero p {
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    line-height: 1.5;
}

/* ==========================================
   4. BUTTONS
========================================== */

.btn {
    display: inline-block;

    background: transparent;
    border: 1px solid var(--gold);
    color: inherit;

    padding: 17px 29px;
    margin-top: 26px;

    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;

    transition: 0.25s ease;
}

.btn:hover {
    background: var(--gold);
    color: var(--deep);
}

.scroll {
    position: absolute;
    bottom: 26px;

    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ==========================================
   5. GENERAL SECTIONS
========================================== */

.section {
    padding: 105px 7%;
    text-align: center;
}

h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 500;
    line-height: 1.05;

    margin: 16px 0 24px;
}

.intro {
    max-width: 680px;
    margin: 0 auto;

    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    line-height: 1.6;
    color: #d5d9cc;
}

/* ==========================================
   6. PRODUCT COLLECTION
========================================== */

.collection {
    background: var(--cream);
    color: var(--ink);
}

.collection .eyebrow {
    color: #947336;
}

.collection .intro {
    color: #637369;
}

/* Product filters */

.filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;

    margin: 40px 0 22px;
}

.filter {
    border: 1px solid #d4cbbb;
    background: transparent;

    padding: 10px 17px;

    color: #345044;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.filter.active,
.filter:hover {
    background: var(--forest);
    color: white;
    border-color: var(--forest);
}

/* Product grid */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;
    margin-top: 20px;
}

/* Individual product card */

.product {
    background: white;
    text-align: left;
    overflow: hidden;

    border: 1px solid #e9e3d7;

    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px #132c1a17;
}

.product[hidden] {
    display: none;
}

/* Product photograph */

.product .photo {
    height: 280px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        var(--shade, #ece8dd),
        #fff 85%
    );

    position: relative;
    overflow: hidden;
}

.product .photo::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid #ffffff88;
    pointer-events: none;
}

.product img {
    position: relative;

    width: 87%;
    height: 88%;

    object-fit: contain;
    mix-blend-mode: multiply;

    transition: transform 0.5s;
}

.product:hover img {
    transform: scale(1.05);
}

/* Product information */

.detail {
    padding: 26px;
}

.code {
    font-size: 9px;
    letter-spacing: 2px;
    color: #7b7e70;
}

.product h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 34px;
    font-weight: 600;

    margin: 7px 0;
}

.product p {
    font-size: 11px;
    line-height: 1.8;
    color: #53665a;
    min-height: 58px;
}

/* View details button */

.more {
    padding: 0 0 7px;

    border: 0;
    border-bottom: 1px solid #b69754;

    background: none;
    color: #1a4836;

    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Product accent colours */

.swatches {
    display: flex;
    gap: 5px;
    margin: 14px 0;
}

.swatches i {
    width: 19px;
    height: 5px;
    background: var(--tone);
}

/* ==========================================
   7. BRAND STORY
========================================== */

.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.story-photo {
    background:
        linear-gradient(#092b221a, #092b221a),
        url("/assets/teabag.jpg")
        center / cover;
}

.story-copy {
    background: #10372b;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    text-align: left;
    padding: 12%;
}

.story-copy p {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    line-height: 1.6;
    color: #d9e1d5;
}

/* ==========================================
   8. TEA RITUAL SECTION
========================================== */

.ritual {
    padding: 110px 8%;
    text-align: center;

    background:
        linear-gradient(#061a15c7, #061a15db),
        url("https://images.unsplash.com/photo-1544787219-7f47ccb76574?auto=format&fit=crop&w=1600&q=85")
        center / cover;
}

.ritual h2 {
    font-size: clamp(56px, 8vw, 105px);
}

.specbar {
    display: flex;
    justify-content: center;
    gap: 65px;
    flex-wrap: wrap;

    margin: 44px 0 0;
    color: #d9d2ba;
}

.specbar div {
    font-size: 11px;
    letter-spacing: 1px;
}

.specbar strong {
    display: block;

    font-family: "Cormorant Garamond", serif;
    font-size: 38px;

    color: #ead39d;
}

/* ==========================================
   9. CONTACT SECTION
========================================== */

.contact {
    padding: 90px 7%;
    text-align: center;

    background: var(--cream);
    color: var(--ink);
}

.contact .intro {
    color: #5d6c62;
}

.contact .btn {
    color: var(--ink);
}

.contact .btn:hover {
    color: white;
    background: var(--forest);
}

/* ==========================================
   10. FOOTER
========================================== */

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 45px 7%;

    font-size: 10px;
    letter-spacing: 1px;
    color: #c5c8bc;
}

/* ==========================================
   11. PRODUCT DETAILS POPUP
========================================== */

dialog {
    border: 0;
    padding: 0;

    width: min(860px, 92vw);
    max-height: 88vh;
    overflow: auto;

    background: #f8f5ed;
    color: var(--ink);

    box-shadow: 0 20px 90px #0008;
}

dialog::backdrop {
    background: #04120fbb;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-visual {
    display: grid;
    place-items: center;

    background: #ece8dd;
    padding: 25px;
}

.modal-visual img {
    width: 100%;
    max-height: 360px;

    object-fit: contain;
    mix-blend-mode: multiply;
}

.modal-text {
    padding: 40px;
}

.modal-text h2 {
    font-size: 50px;
}

.modal-text p,
.modal-text li {
    font-size: 12px;
    line-height: 1.8;
}

.modal-text ul {
    padding-left: 18px;
}

.close {
    position: absolute;
    right: 13px;
    top: 13px;

    border: 0;
    background: var(--forest);
    color: white;

    padding: 10px 14px;
}

.fineprint {
    font-size: 10px;
    line-height: 1.8;
    color: #6b746b;
}

/* ==========================================
   12. SCROLL REVEAL ANIMATIONS
========================================== */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s,
        transform 0.7s;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ==========================================
   13. BRAND BAND
========================================== */

.brand-band {
    padding: 24px 7%;

    display: flex;
    justify-content: center;
    gap: 45px;
    flex-wrap: wrap;

    background: var(--gold);
    color: var(--forest);

    text-align: center;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ==========================================
   14. EDITORIAL SECTION
========================================== */

.editorial {
    background: var(--forest);
    padding: 105px 7%;
    text-align: center;
}

.editorial .lead {
    max-width: 820px;
    margin: 20px auto 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    line-height: 1.55;

    color: #e4e1d6;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;

    margin: 52px auto 0;
    max-width: 1200px;
}

.editorial-card {
    border: 1px solid #d9b45b55;
    padding: 36px 24px;

    text-align: left;
    background: #ffffff06;
}

.editorial-card .num {
    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
    color: var(--gold);
}

.editorial-card h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    margin: 14px 0;
}

.editorial-card p {
    font-size: 12px;
    line-height: 1.9;
    color: #d5d8cf;
}

/* ==========================================
   15. HERITAGE SECTION
========================================== */

.heritage {
    background: var(--cream);
    color: var(--ink);

    padding: 105px 8%;
    text-align: center;
}

.heritage p {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    line-height: 1.65;

    max-width: 850px;
    margin: 0 auto;

    color: #52685b;
}

.heritage .kicker {
    font-size: 10px;
    letter-spacing: 3px;
    color: #947336;
    text-transform: uppercase;
}

/* ==========================================
   16. TEA CRAFT SECTION
========================================== */

.craft {
    background: #10372b;
    padding: 95px 8%;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 75px;
    align-items: center;
}

.craft h2 {
    margin-top: 14px;
}

.craft p {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    line-height: 1.6;
    color: #e0e3d7;
}

.craft ul {
    padding-left: 20px;
    line-height: 2.1;
    font-size: 12px;
    color: #d9e1d5;
}

.craft-art {
    min-height: 400px;

    background: linear-gradient(
        135deg,
        #0c3c2f,
        #183e30 50%,
        #a58a4d
    );

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    border: 1px solid #d9b45b55;
}

.craft-art strong {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(48px, 6vw, 90px);
    color: #f2e4b9;
}

.craft-art span {
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 11px;
}

/* ==========================================
   17. CORPORATE & GIFTING
========================================== */

.corporate {
    background: var(--cream);
    color: var(--ink);

    padding: 95px 8%;
    text-align: center;
}

.corporate .intro {
    color: #617468;
}

.corporate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;

    margin: 40px auto;
    max-width: 1050px;

    text-align: left;
}

.corporate-grid article {
    border: 1px solid #d8ccae;
    padding: 35px;
}

.corporate-grid h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 34px;
    margin: 0 0 12px;
}

.corporate-grid p {
    font-size: 12px;
    line-height: 1.9;
}

/* ==========================================
   18. COMPANY INFORMATION
========================================== */

.company-info {
    background: var(--forest);
    padding: 75px 7%;

    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

.company-info h2 {
    font-size: 48px;
}

.company-info p,
.company-info address {
    font-size: 12px;
    line-height: 2.1;
    font-style: normal;
    color: #dce3d9;
}

.company-info a {
    color: #ead39d;
}

.company-info a:hover {
    text-decoration: underline;
}

/* ==========================================
   19. CERTIFICATIONS & QUALITY
========================================== */

.quality {
    padding: 105px 7%;

    background: #08251e;
    color: var(--cream);

    text-align: center;
}

.quality .quality-intro {
    max-width: 760px;
    margin: 0 auto 38px;

    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    line-height: 1.6;

    color: #e1dfd3;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 18px;
    max-width: 1150px;
    margin: auto;

    text-align: left;
}

.quality-item {
    border: 1px solid #d9b45b60;
    padding: 30px 24px;
    background: #ffffff08;

    transition:
        transform 0.3s,
        border-color 0.3s;
}

.quality-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.quality-item strong {
    display: block;

    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 500;

    color: #e6cb8b;
    margin-bottom: 10px;
}

.quality-item p {
    font-size: 12px;
    line-height: 1.85;
    color: #e0e4db;
    margin: 0;
}

.quality-foot {
    max-width: 850px;
    margin: 28px auto 0;

    font-size: 11px;
    line-height: 1.9;
    color: #c9d3c9;
}

.quality-foot a {
    color: var(--gold);
}

/* ==========================================
   20. TABLET RESPONSIVE
========================================== */

@media (max-width: 800px) {

    nav {
        height: 75px;
        min-height: 75px;
        padding: 0 5%;
    }

    nav a.logo {
        height: 75px;
    }

    .links {
        gap: 13px;
        font-size: 9px;
    }

    .links a:nth-child(2) {
        display: none;
    }

    .hero h1 {
        font-size: 75px;
    }

    .section {
        padding: 75px 5%;
    }

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

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

    .story-photo {
        min-height: 350px;
    }

    .story-copy {
        padding: 65px 8%;
    }

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

    .craft,
    .company-info {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .craft-art {
        min-height: 270px;
    }

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

/* ==========================================
   21. MOBILE RESPONSIVE
========================================== */

@media (max-width: 600px) {

    /* Navbar */

    nav {
        height: 70px;
        min-height: 70px;
        padding: 0 5%;
    }

    /* Mobile logo */

    nav a.logo {
        flex: 0 0 68px;
        width: 68px;
        height: 70px;
        font-size: 29px;
    }

    nav a.logo img {
        width: 62px !important;
        max-width: 62px !important;

        height: 58px !important;
        max-height: 58px !important;

        object-fit: contain;
    }

    .links {
        gap: 10px;
        font-size: 8px;
    }

    .hero h1 {
        font-size: 65px;
    }

    .hero-inner {
        padding-top: 120px;
    }

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

    .product .photo {
        height: 300px;
    }

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

    .modal-text {
        padding: 24px;
    }

    .modal-visual img {
        max-height: 240px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .specbar {
        gap: 25px;
    }

    .editorial-grid,
    .corporate-grid,
    .quality-grid {
        grid-template-columns: 1fr;
    }

    .editorial,
    .heritage,
    .craft,
    .corporate {
        padding: 70px 6%;
    }

    .brand-band {
        gap: 16px;
    }

    .company-info {
        padding: 60px 6%;
    }

    .quality {
        padding: 75px 6%;
    }
}

/* ==========================================
   22. SMALL MOBILE DEVICES
========================================== */

@media (max-width: 380px) {

    nav a.logo {
        flex-basis: 58px;
        width: 58px;
    }

    nav a.logo img {
        width: 54px !important;
        max-width: 54px !important;
        height: 52px !important;
        max-height: 52px !important;
    }

    .links {
        gap: 7px;
        font-size: 7px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero p {
        font-size: 20px;
    }
}

/* ==========================================
   23. ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================
   END OF @HERBS STYLESHEET
========================================== */
