/* =========================================================
   TERRA TANI — MAIN STYLESHEET
   Theme: Botanical green, cream and clean editorial design
   ========================================================= */


/* =========================================================
   1. COLOUR VARIABLES
   ========================================================= */

:root {
    --green: #285a3c;
    --dark-green: #1e422c;
    --deep-green: #14271c;
    --leaf-green: #7b956b;
    --light-green: #eaf0e5;
    --cream: #fbfaf6;
    --white: #ffffff;
    --text: #263b2e;
    --muted: #68766b;
    --border: #dfe5d9;

    --gold: #c3c69a;
    --gold-light: #e7d8a5;

    --shadow: 0 8px 24px rgba(30, 66, 44, 0.07);
}


/* =========================================================
   2. RESET AND BASIC SETTINGS
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    overflow-wrap: break-word;
}

body.intro-active {
    overflow: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

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

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

button,
select {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--leaf-green);
    outline-offset: 3px;
}


/* =========================================================
   3. INTRO SCREEN
   ========================================================= */

.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: grid;
    place-items: center;
    overflow: hidden;

    background: var(--dark-green);
    visibility: visible;
    transform: translateY(0);

    transition:
        transform 1.1s cubic-bezier(0.76, 0, 0.24, 1),
        visibility 0s linear 1.1s;
}

.intro-background {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    animation: introZoom 6s ease-out both;
}

.intro-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.491),
            rgba(255, 255, 255, 0.35),
            rgba(245, 248, 242, 0.40));
}

.intro-content {
    position: relative;
    z-index: 1;

    width: min(90%, 850px);
    padding: 25px;

    text-align: center;
    color: var(--black);

    animation: introAppear 1s ease both;
}

.intro-logo {
    width: min(75%, 420px);
    max-height: 180px;

    margin: 0 auto 25px;
    object-fit: contain;
}

.intro-content h1 {
    margin-bottom: 12px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 6vw, 70px);
    font-weight: normal;
    line-height: 1.15;
}

.intro-content p {
    font-size: clamp(14px, 2vw, 19px);
}

.skip-intro {
    margin-top: 28px;
    padding: 9px 18px;

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 30px;

    background: var(--white);
    color: var(--black);
    font-size: 15px;

    transition: background 0.2s ease, color 0.2s ease;
}

.skip-intro:hover {
    background: var(--dark-green);
    color: var(--dark-green);
}

.intro-screen.intro-hidden {
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
}

@keyframes introZoom {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1);
    }
}

@keyframes introAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   4. HEADER AND NAVIGATION
   ========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;
    min-height: 72px;
    padding: 8px 7%;

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

    background: var(--light-green);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    width: auto;
    height: 54px;
    max-width: 220px;
    object-fit: contain;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.7vw, 24px);
}

.navigation>a {
    color: var(--dark-green);
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;

    transition: color 0.2s ease;
}

.navigation>a:hover {
    color: var(--leaf-green);
}

.navigation .contact-link {
    padding: 9px 15px;
    border-radius: 8px;
    background: var(--white);
    color: var(--dark-green);
}

.navigation .contact-link:hover {
    background: var(--dark-green);
    color: var(--white);
}

/* Language selector */

.language-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.language-select {
    width: auto;
    max-width: 165px;
    min-width: 110px;
    padding: 9px 10px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: var(--white);
    color: var(--dark-green);
    font-size: 12px;
}

/* Mobile menu button */

.menu-button {
    display: none;
    flex-shrink: 0;

    padding: 6px 10px;

    border: 1px solid var(--border);
    border-radius: 5px;

    background: transparent;
    color: var(--dark-green);
    font-size: 22px;
}


/* =========================================================
   5. HOMEPAGE
   ========================================================= */

.hero {
    min-height: 430px;
    padding: 65px 7%;

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

    background: var(--cream);
}

.hero-content {
    width: 100%;
    max-width: 950px;
    text-align: center;
}

.eyebrow {
    margin-bottom: 14px;

    color: var(--green);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1.8;
}

.hero h1,
.section-heading h2,
.work h2,
.contact h2 {
    color: var(--dark-green);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
    line-height: 1.15;
}

.hero h1 {
    font-size: clamp(42px, 5.5vw, 70px);
    letter-spacing: -1px;
}

.hero h1 span,
.section-heading h2 span,
.work h2 span,
.contact h2 span {
    color: var(--leaf-green);
    font-style: italic;
}

.hero h2 {
    margin-top: 15px;

    color: var(--green);
    font-size: clamp(18px, 2.3vw, 25px);
    font-weight: normal;
}

.hero-description {
    max-width: 700px;
    margin: 20px auto 25px;

    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

/* General button */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 20px;

    border: 1px solid var(--green);
    border-radius: 5px;

    background: var(--green);
    color: var(--white);

    font-size: 13px;
    font-weight: bold;

    transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}


/* =========================================================
   6. SHARED SECTION SETTINGS
   ========================================================= */

.section {
    padding: 55px 7%;
    scroll-margin-top: 85px;
}

.section-heading {
    max-width: 900px;
    margin: 0 auto 32px;
    text-align: center;
}

.section-heading h2,
.work h2,
.contact h2 {
    font-size: clamp(34px, 4.2vw, 52px);
}

.section-description {
    max-width: 800px;
    margin: 18px auto 0;

    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}


/* =========================================================
   7. WHO WE ARE
   ========================================================= */

.about {
    background: var(--white);
}

.values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.value-card {
    min-width: 0;
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--cream);
}

.card-number {
    color: var(--leaf-green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.value-card h3,
.solution-card h3 {
    color: var(--dark-green);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
}

.value-card h3 {
    margin: 15px 0 9px;
    font-size: 25px;
}

.value-card p:not(.card-number) {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   8. OUR SOLUTIONS — COMPACT THREE-CARD GRID
   ========================================================= */

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

.solutions .section-heading {
    margin-bottom: 25px;
}

.solutions .section-heading h2 {
    font-size: clamp(32px, 4vw, 44px);
}

.solution-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.solution-card {
    min-width: 0;
    min-height: 0;
    padding: 22px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solution-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.solution-card h3 {
    margin: 13px 0 10px;
    font-size: clamp(20px, 1.8vw, 25px);
    line-height: 1.25;
}

.solution-card p:not(.card-number) {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.solution-card .card-number {
    margin-bottom: 4px;
}

.solution-image {
    width: 100%;
    height: 105px;
    margin-top: 10px;

    object-fit: cover;
    border-radius: 6px;
    background: var(--light-green);
}

.card-note {
    margin-top: 11px;
    color: var(--green) !important;
    font-size: 12px !important;
    font-weight: bold;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;
    padding-top: 18px;

    color: var(--green);
    font-size: 13px;
    font-weight: bold;
}

.text-link:hover {
    color: var(--leaf-green);
}


/* =========================================================
   9. COMING SOON CARD
   ========================================================= */

.upcoming-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background: var(--deep-green);
    color: #f4f1e5;

    border: 1px solid rgba(210, 205, 165, 0.3);
    border-radius: 12px;
    padding: 22px;

    box-shadow: 0 8px 22px rgba(12, 29, 19, 0.12);
}

.upcoming-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background: radial-gradient(circle at 90% 85%,
            rgba(115, 137, 78, 0.15),
            transparent 45%);
}

.upcoming-card .card-number {
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 12px;
}

.upcoming-card .lock-icon {
    width: 30px;
    height: 36px;
    margin-bottom: 14px;
}

.upcoming-card .lock-icon svg {
    display: block;
    width: 100%;
    height: 100%;

    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.upcoming-card .upcoming-label {
    color: #b9c29a;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.12em;
    line-height: 1.6;
    margin-bottom: 12px;
}

.upcoming-card h3 {
    color: #f7f4e9;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.2;
    font-weight: normal;
    margin: 0 0 12px;
}

.upcoming-card>p:not(.card-number):not(.upcoming-label) {
    color: #c8d0c1;
    font-size: 13px;
    line-height: 1.7;
    max-width: 100%;
}

.upcoming-card .coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: 18px;
    padding: 8px 15px;

    border: 1px solid rgba(195, 198, 154, 0.65);
    border-radius: 999px;

    color: #f4f1e5;
    background: rgba(195, 198, 154, 0.08);

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   10. OUR WORK
   ========================================================= */

.work {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 45px;

    background: var(--cream);
}

.work-heading,
.work-content {
    min-width: 0;
}

.work-heading .eyebrow {
    margin-bottom: 15px;
}

.work h2 {
    max-width: 520px;
}

.work h2 span {
    display: block;
}

.work-content p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.work-content .text-link {
    padding-top: 0;
}


/* =========================================================
   11. CONTACT US
   ========================================================= */

.contact {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: start;
    gap: 45px;

    background: var(--light-green);
}

.contact-info,
.contact-form {
    min-width: 0;
}

.contact-info h2 {
    margin-bottom: 20px;
    overflow-wrap: normal;
    word-break: normal;
}

.contact-info h2 span {
    display: block;
}

.contact-info>p:not(.eyebrow) {
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.contact-info .location {
    margin-top: 24px;
    color: var(--green);
    font-weight: bold;
}

.contact-form {
    width: 100%;
    padding: 26px;

    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
}

.contact-form label {
    display: block;
    margin: 13px 0 6px;

    color: var(--dark-green);
    font-size: 13px;
    font-weight: bold;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 11px 12px;

    border: 1px solid #d7dfd3;
    border-radius: 5px;

    background: #fdfdfb;
    color: var(--text);
    font-size: 14px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid #b7cdb0;
    border-color: var(--green);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .button {
    width: 100%;
    margin-top: 18px;
}

.form-message {
    margin-top: 12px;
    color: var(--green);
    font-size: 13px;
}

.form-message.error {
    color: #a32626;
}


/* =========================================================
   12. FOOTER
   ========================================================= */

.footer {
    padding: 25px 7% 18px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    align-items: center;
    gap: 18px;

    background: var(--dark-green);
    color: var(--white);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
}

.footer-logo {
    width: auto;
    max-width: 160px;
    max-height: 45px;
    object-fit: contain;
}

.footer>p {
    color: #dce8d9;
    font-size: 12px;
    text-align: center;
}

.footer-link {
    justify-self: end;
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.footer small {
    grid-column: 1 / -1;
    padding-top: 15px;

    border-top: 1px solid rgba(255, 255, 255, 0.2);

    color: #dce8d9;
    font-size: 11px;
}


/* =========================================================
   13. TABLET AND SMALL DESKTOP
   ========================================================= */

@media (max-width: 1050px) {
    .header {
        padding-right: 4%;
        padding-left: 4%;
        gap: 15px;
    }

    .navigation {
        gap: 12px;
    }

    .navigation>a {
        font-size: 12px;
    }

    .language-select {
        max-width: 130px;
        min-width: 95px;
        font-size: 11px;
    }

    .solution-list,
    .values {
        gap: 14px;
    }

    .solution-card {
        padding: 17px;
    }

    .upcoming-card {
        padding: 17px;
    }

    .contact,
    .work {
        gap: 30px;
    }
}


/* =========================================================
   14. MOBILE NAVIGATION AND LAYOUT
   ========================================================= */

@media (max-width: 760px) {
    .header {
        min-height: 62px;
        padding: 7px 5%;
        gap: 12px;
    }

    .logo-image {
        height: 48px;
        max-width: 190px;
    }

    .menu-button {
        display: block;
    }

    .navigation {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;
        padding: 12px 5% 18px;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        background: var(--light-green);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 18px rgba(30, 66, 44, 0.06);
    }

    .navigation.open {
        display: flex;
    }

    .navigation>a {
        padding: 11px 0;
        font-size: 14px;
    }

    .navigation .contact-link {
        margin-top: 7px;
        padding: 11px;
        background: var(--white);
        text-align: center;
    }

    .language-select {
        width: 100%;
        max-width: none;
        margin-top: 10px;
        padding: 11px;
        font-size: 14px;
    }

    .hero {
        min-height: auto;
        padding: 55px 6%;
    }

    .hero h1 {
        font-size: clamp(38px, 9vw, 55px);
    }

    .hero-description {
        font-size: 14px;
    }

    .section {
        padding: 45px 6%;
        scroll-margin-top: 70px;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .section-description {
        font-size: 14px;
    }

    .values,
    .solution-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .value-card {
        padding: 22px;
    }

    .solution-card {
        padding: 22px;
    }

    .solution-card h3 {
        font-size: 24px;
    }

    .solution-card p:not(.card-number) {
        font-size: 14px;
    }

    .solution-image {
        height: 160px;
    }

    .upcoming-card {
        padding: 22px;
    }

    .upcoming-card h3 {
        font-size: 26px;
    }

    .upcoming-card .upcoming-label {
        font-size: 10px;
    }

    .work,
    .contact {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .work h2,
    .contact h2 {
        font-size: clamp(34px, 8vw, 45px);
    }

    .contact-form {
        padding: 22px;
    }

    .footer {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
        padding: 25px 6% 18px;
    }

    .footer>p {
        text-align: left;
    }

    .footer-link {
        justify-self: start;
    }

    .footer small {
        grid-column: auto;
        width: 100%;
    }
}


/* =========================================================
   15. SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {
    .logo-image {
        height: 44px;
        max-width: 170px;
    }

    .intro-content {
        padding: 15px;
    }

    .intro-logo {
        width: 85%;
    }

    .intro-content h1 {
        font-size: 36px;
    }

    .hero {
        padding: 45px 6%;
    }

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

    .section-heading h2 {
        font-size: 32px;
    }

    .value-card,
    .solution-card,
    .upcoming-card {
        padding: 19px;
    }

    .contact-form {
        padding: 18px;
    }
}


/* =========================================================
   16. ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .intro-screen {
        transition-delay: 0s;
    }

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