/* =====================================
   GLOBAL STYLES
===================================== */

:root {
    --color-background: #f8f6f2;
    --color-surface: #ffffff;
    --color-text: #333333;
    --color-muted: #666666;
    --color-primary: #333333;
    --color-border: #dedbd5;
    --color-accent: #a58b6a;

    --radius: 8px;
    --section-padding: clamp(40px, 6vw, 90px);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

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

img {
    display: block;
}

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

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-top: 0;
}

p {
    color: var(--color-muted);
}

section {
    scroll-margin-top: 20px;
}


/* =====================================
   ACCESSIBILITY
===================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 1000;
    padding: 12px 18px;
    background: white;
    color: #222;
    border: 2px solid var(--color-primary);
    border-radius: 5px;
}

.skip-link:focus {
    top: 10px;
}

:focus-visible {
    outline: 3px solid #8a6740;
    outline-offset: 3px;
}

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


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

.hero {
    position: relative;
    min-height: 600px;
    height: 90vh;
    max-height: 900px;

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

    overflow: hidden;
    background: #333333;
}

/* Static background image */

.hero-img {
    position: absolute;
    inset: 0;
    z-index: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* Video initially hidden */

.hero-video {
    position: absolute;
    inset: 0;
    z-index: 1;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Only show video after playback begins */

.hero-video.is-playing {
    opacity: 1;
}

/* Dark overlay */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;

    width: 100%;
    max-width: 850px;

    padding: 25px;
    text-align: center;
    color: white;
}

.hero-content h1 {
    margin-bottom: 15px;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-content p {
    color: white;
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.hero-buttons {
    margin-top: 30px;
}

.hero-buttons a {
    display: inline-block;
    margin: 8px;
    padding: 14px 28px;

    border-radius: var(--radius);

    font-weight: 600;
    text-decoration: none;

    transition: background 0.2s ease;
}

.btn-secondary {
    background: white;
    color: #333333;
}

.btn-secondary:hover {
    background: #e8e4de;
}


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

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    gap: 50px;
    padding: var(--section-padding);
}

.about-left img {
    width: 100%;
    height: 420px;

    object-fit: cover;
    border-radius: var(--radius);
}

.about-right {
    max-width: 650px;
}

.about-right p {
    margin-bottom: 18px;
}

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

    gap: 12px;
    margin-top: 25px;
}

.stats div {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 15px;

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

.stats strong {
    font-size: 0.9rem;
}

.stats span {
    color: var(--color-muted);
    font-size: 0.95rem;
}


/* =====================================
   EXPLORE
===================================== */

.explore {
    padding: var(--section-padding);
    background: white;
}

.section-intro {
    margin-top: -10px;
    margin-bottom: 30px;
}

.explore-container {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 35px;
}

.explore-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tab-btn {
    padding: 15px;

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

    background: #f5f3ef;
    color: var(--color-text);

    cursor: pointer;
    text-align: left;
    font-weight: 600;
}

.tab-btn:hover {
    background: #e8e4de;
}

.tab-btn.active,
.tab-btn[aria-selected="true"] {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.explore-content {
    min-width: 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-top: 0;
}

/* Gallery */

.gallery {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(200px, 1fr));

    gap: 18px;
    margin-top: 25px;
}

.gallery figure {
    margin: 0;
    min-width: 0;

    overflow: hidden;

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

.gallery img {
    width: 100%;
    height: 220px;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.gallery figure:hover img {
    transform: scale(1.03);
}

.gallery figcaption {
    padding: 12px 14px;

    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.4;
}


/* =====================================
   PROVIDE
===================================== */

.provide {
    padding: var(--section-padding);
}

.provide-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.provide-group {
    padding: 25px;

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

.provide-group h3 {
    margin-top: 0;
}

.provide-group li {
    margin-bottom: 8px;
}


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

.contact {
    padding: var(--section-padding);
    background: white;
}

.contact-header {
    max-width: 750px;
    margin: 0 auto 35px;
    text-align: center;
}

.contact-header p {
    font-size: 1.05rem;
}

.contact-form {
    max-width: 900px;
    margin: auto;
}

/* Form sections */

.form-section {
    min-width: 0;

    margin: 0 0 25px;
    padding: 25px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.form-section legend {
    padding: 0 10px;

    font-size: 1.2rem;
    font-weight: 700;
}

/* Form grid */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

/* Individual fields */

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;

    min-width: 0;
}

.form-field label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 46px;

    padding: 11px 13px;

    border: 1px solid #c9c6c0;
    border-radius: 6px;

    background: white;
    color: var(--color-text);
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--color-accent);
}

.form-field small {
    color: var(--color-muted);
    font-size: 0.85rem;
}

/* Full-width fields */

.full-width {
    grid-column: 1 / -1;
}

/* Submit */

.contact-form button {
    display: block;

    width: 100%;
    max-width: 350px;
    min-height: 50px;

    margin: 30px auto 0;
    padding: 13px 25px;

    border: none;
    border-radius: var(--radius);

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

    font-weight: 600;
    cursor: pointer;
}

.contact-form button:hover {
    background: #555555;
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form submission status */

.form-status {
    max-width: 900px;
    margin: 15px auto;

    white-space: pre-line;
}

.form-status.success {
    color: #198754;
}

.form-status.error {
    color: #dc3545;
}

.form-status:not(:empty) {
    padding: 12px;
}


/* =====================================
   MAP
===================================== */

.map iframe {
    display: block;

    width: 100%;
    height: 350px;

    margin-top: 45px;

    border: 0;
    border-radius: var(--radius);
}


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

footer {
    padding: 30px;

    background: #333333;
    color: white;

    text-align: center;
}

footer p {
    color: white;
}


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

@media (max-width: 768px) {

    .hero {
        min-height: 550px;
        height: 75vh;
    }

    .about {
        grid-template-columns: 1fr;
        padding: 45px 25px;
    }

    .about-left img {
        height: 320px;
    }

    .explore,
    .provide,
    .contact {
        padding: 45px 25px;
    }

    .explore-container {
        grid-template-columns: 1fr;
    }

    .explore-tabs {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .provide-container {
        grid-template-columns: 1fr;
    }
}


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

@media (max-width: 500px) {

    .hero {
        min-height: 500px;
        height: 70vh;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-buttons a {
        display: block;
        max-width: 250px;
        margin: 12px auto;
    }

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

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

    .full-width {
        grid-column: auto;
    }

    .form-section {
        padding: 18px 14px;
    }

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

    .gallery img {
        height: 240px;
    }

    .map iframe {
        height: 280px;
    }
}


/* =====================================
   REDUCED MOTION
===================================== */

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

    html {
        scroll-behavior: auto;
    }

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

    .gallery figure:hover img {
        transform: none;
    }
}