/* ============================================================
   AFRICAN FAMILY FARM — Main Stylesheet
   Colour Palette:
     --earth       #8B3A0A  (terracotta/earth)
     --earth-dark  #5C2506
     --forest      #2D5A27  (forest green)
     --gold        #C8860A  (African gold)
     --gold-light  #D4A843
     --sand        #F5DEB3  (savanna sand)
     --cream       #FDF8F0  (warm cream)
     --dark        #1C1208  (dark brown-black)
============================================================ */

/* === RESET & BASE ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === CUSTOM PROPERTIES ==================================== */
:root {
    --earth:        #8B3A0A;
    --earth-dark:   #5C2506;
    --forest:       #2D5A27;
    --forest-dark:  #1A3A15;
    --gold:         #C8860A;
    --gold-light:   #D4A843;
    --sand:         #F5DEB3;
    --cream:        #FDF8F0;
    --light-sand:   #F9F1E7;
    --dark:         #1C1208;
    --text:         #3D2B1F;
    --text-light:   #6B5B50;
    --white:        #FFFFFF;
    --border:       rgba(139, 58, 10, 0.12);
    --shadow-sm:    0 2px 10px rgba(0,0,0,0.08);
    --shadow:       0 4px 24px rgba(0,0,0,0.12);
    --shadow-lg:    0 8px 48px rgba(0,0,0,0.18);
    --radius:       8px;
    --radius-lg:    16px;
    --transition:   all 0.3s ease;
    --container:    1200px;
}

/* === TYPOGRAPHY =========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    color: var(--dark);
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--earth);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* === UTILITIES ============================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section--sand {
    background: var(--light-sand);
}

.section--dark {
    background: var(--dark);
}

.section__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section__eyebrow {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section__eyebrow--gold {
    color: var(--gold-light);
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.section__title--light {
    color: var(--white);
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.75;
    margin: 0;
}

.section__subtitle--light {
    color: rgba(255,255,255,0.7);
}

.required {
    color: var(--earth);
}

/* === BUTTONS ============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn--primary {
    background: var(--earth);
    color: var(--white);
    border-color: var(--earth);
}

.btn--primary:hover {
    background: var(--earth-dark);
    border-color: var(--earth-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--primary-outline {
    background: transparent;
    color: var(--earth);
    border-color: var(--earth);
}

.btn--primary-outline:hover {
    background: var(--earth);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.65);
}

.btn--outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
    color: var(--white);
}

.btn--gold {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.btn--gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(200, 134, 10, 0.35);
}

.btn--sm {
    padding: 0.55rem 1.2rem;
    font-size: 0.875rem;
}

.btn--full {
    width: 100%;
}

/* === HEADER / NAVIGATION ================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.125rem 0;
    padding-top: max(1.125rem, env(safe-area-inset-top));
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

.header--scrolled {
    background: rgba(28, 18, 8, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.nav__logo:hover {
    color: var(--gold-light);
}

.nav__logo-mark {
    width: 38px;
    height: 38px;
    background: var(--earth);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--white);
    flex-shrink: 0;
}

.nav__list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.125rem;
}

.nav__link {
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--gold-light);
}

.nav__link--cta {
    background: var(--earth);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    margin-left: 0.5rem;
}

.nav__link--cta:hover {
    background: var(--gold);
    color: var(--dark) !important;
}

.nav__close {
    display: none;
}

.nav__close button {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.nav__close button:hover {
    color: var(--white);
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav__hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav__hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav__hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO ================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 7rem 1.5rem 5rem;
    /* Gradient background — looks great even without a photo */
    /* To add a photo: background-image: url('../images/hero-bg.jpg'); */
    background-color: var(--dark);
    background-image:
        linear-gradient(135deg,
            rgba(139, 58, 10, 0.93) 0%,
            rgba(200, 134, 10, 0.72) 45%,
            rgba(45, 90, 39, 0.88) 100%
        );
    background-size: cover;
    background-position: center;
}

/* Uncomment when you add images/hero-bg.jpg:
.hero {
    background-image:
        linear-gradient(135deg,
            rgba(139, 58, 10, 0.85) 0%,
            rgba(200, 134, 10, 0.65) 45%,
            rgba(45, 90, 39, 0.80) 100%
        ),
        url('../images/hero-bg.jpg');
    background-attachment: fixed;
}
*/

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    animation: fadeInUp 0.9s ease 0.1s both;
}

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.25rem;
}

.hero__title {
    font-size: clamp(2.5rem, 7vw, 5.25rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 30px rgba(0,0,0,0.25);
    line-height: 1.08;
}

.hero__title em {
    color: var(--gold-light);
    font-style: italic;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: bounceScroll 2.5s ease-in-out infinite;
    text-decoration: none;
    z-index: 1;
}

.hero__scroll:hover {
    color: rgba(255,255,255,0.9);
}

.hero__scroll-arrow {
    width: 18px;
    height: 18px;
    border-right: 2px solid rgba(255,255,255,0.55);
    border-bottom: 2px solid rgba(255,255,255,0.55);
    transform: rotate(45deg);
}

/* === STATS BAR ============================================ */
.stats {
    background: var(--earth);
    padding: 2.25rem 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stats__number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
}

.stats__number sup {
    font-size: 0.45em;
    vertical-align: super;
}

.stats__label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}

/* === ABOUT ================================================ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__content .section__eyebrow {
    display: block;
}

.about__content h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.about__content p {
    color: var(--text-light);
    font-size: 1.02rem;
    line-height: 1.8;
}

.about__features {
    list-style: none;
    margin: 1.5rem 0 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about__features li {
    color: var(--text);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0;
}

.about__features li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
    flex-shrink: 0;
    margin-top: 1px;
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-lg);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #8B3A0A 0%, #D4A843 55%, #2D5A27 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder__inner {
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.placeholder__icon {
    width: 80px;
    height: 60px;
    margin: 0 auto 1rem;
}

.placeholder__inner p {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.placeholder__inner small {
    font-size: 0.75rem;
    font-family: monospace;
    opacity: 0.7;
}

/* === COTTAGES ============================================= */
.cottages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cottage-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cottage-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.cottage-card__image {
    height: 210px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    background-size: cover;
    background-position: center;
}

/* Gradient fallbacks — replace with actual photos by adding background-image: url() */
.cottage-card__image--elephant {
    background-color: #37474F;
    background-image: linear-gradient(135deg, #546E7A 0%, #263238 100%);
    /* Add: url('../images/cottage-elephant.jpg') */
}

.cottage-card__image--zebra {
    background-color: #424242;
    background-image: linear-gradient(135deg, #5D4037 0%, #37474F 100%);
}

.cottage-card__image--giraffe {
    background-color: #8B5E0A;
    background-image: linear-gradient(135deg, #C8860A 0%, #6D4C0B 100%);
}

.cottage-card__image--rhino {
    background-color: #455A64;
    background-image: linear-gradient(135deg, #78909C 0%, #455A64 100%);
}

.cottage-card__image--lion {
    background-color: #8B5E0A;
    background-image: linear-gradient(135deg, #D4A843 0%, #8B5E0A 100%);
}

.cottage-card__image--pool {
    background-color: #01579B;
    background-image: linear-gradient(135deg, #0288D1 0%, #01579B 100%);
}

.cottage-card__badge {
    display: inline-block;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.25);
}

.cottage-card__body {
    padding: 1.5rem;
}

.cottage-card__body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--dark);
}

.cottage-card__body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

/* === ANIMALS ============================================== */
.animals {
    background: var(--cream);
}

.animals__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.animal-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.animal-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.animal-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.animal-card__icon--pig   { background: linear-gradient(135deg, #E91E63, #C2185B); }
.animal-card__icon--goat  { background: linear-gradient(135deg, #C8860A, #8B5E0A); }
.animal-card__icon--horse { background: linear-gradient(135deg, #795548, #4E342E); }
.animal-card__icon--cat   { background: linear-gradient(135deg, #607D8B, #37474F); }
.animal-card__icon--dog   { background: linear-gradient(135deg, #8B3A0A, #5C2506); }

.animal-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.animal-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}

/* === EXCURSIONS =========================================== */
.excursions__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.excursion-card {
    display: flex;
    gap: 1.25rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    align-items: flex-start;
}

.excursion-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(212, 168, 67, 0.35);
    transform: translateX(4px);
}

.excursion-card__number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    opacity: 0.5;
    line-height: 1;
    flex-shrink: 0;
    min-width: 2.75rem;
}

.excursion-card__content h3 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.excursion-card__content p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    margin: 0;
}

/* === RATES ================================================ */
.rates__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

.rate-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

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

.rate-card--featured {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.rate-card--featured:hover {
    transform: scale(1.03) translateY(-5px);
}

.rate-card__header {
    padding: 2rem 1.75rem;
    text-align: center;
    position: relative;
}

.rate-card__header--blue   { background: linear-gradient(135deg, #607D8B, #37474F); }
.rate-card__header--earth  { background: linear-gradient(135deg, var(--earth), var(--gold)); }
.rate-card__header--forest { background: linear-gradient(135deg, var(--forest), var(--forest-dark)); }

.rate-card__badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-bottom-left-radius: var(--radius);
}

.rate-card__header h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.rate-card__period {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.78);
    letter-spacing: 0.04em;
}

.rate-card__body {
    padding: 2rem 1.75rem;
}

.rate-card__price {
    text-align: center;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rate-card__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

.rate-card__amount {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.rate-card__per {
    font-size: 0.8rem;
    color: var(--text-light);
}

.rate-card__features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rate-card__features li {
    padding: 0.65rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.rate-card__features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.rates__note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

/* === AVAILABILITY BANNER ================================== */
.availability {
    background: var(--forest);
    padding: 1.75rem 0;
}

.availability__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    text-align: center;
}

.availability__icon {
    color: var(--gold-light);
    flex-shrink: 0;
    display: flex;
}

.availability__content p {
    color: rgba(255,255,255,0.88);
    margin: 0;
    font-size: 1.02rem;
}

.availability__content strong {
    color: var(--gold-light);
}

/* === CONTACT ============================================== */
.contact__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__form-wrap {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact__form h3 {
    font-size: 1.3rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.form__group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}

.form__group input,
.form__group select,
.form__group textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid #E0D4CC;
    border-radius: var(--radius);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    width: 100%;
    -webkit-appearance: none;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--earth);
    box-shadow: 0 0 0 3px rgba(139, 58, 10, 0.1);
}

.form__group input.error,
.form__group textarea.error {
    border-color: #D32F2F;
}

.form__group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B5B50' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

.form__success,
.form__error {
    display: none;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.form__success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.form__error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

.contact__info {
    padding-top: 0.5rem;
}

.contact__info > h3 {
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.contact__info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact__info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact__info-icon {
    width: 40px;
    height: 40px;
    background: var(--light-sand);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--earth);
}

.contact__info-item strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--earth);
    margin-bottom: 0.25rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact__info-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.55;
}

.contact__info-item a {
    color: var(--text-light);
}

.contact__info-item a:hover {
    color: var(--earth);
}

.contact__social {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 700;
    transition: var(--transition);
}

.social-btn--fb {
    background: #1877F2;
    color: var(--white);
}

.social-btn--fb:hover {
    background: #0D65D8;
    color: var(--white);
    transform: translateY(-2px);
}

.social-btn--ta {
    background: #34E0A1;
    color: #161616;
}

.social-btn--ta:hover {
    background: #1FC98C;
    color: #161616;
    transform: translateY(-2px);
}

.contact__directions {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.contact__directions h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--earth);
    margin-bottom: 0.75rem;
}

.contact__directions p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

/* === FOOTER =============================================== */
.footer {
    background: var(--dark);
    padding: 4.5rem 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer__brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.footer__social {
    display: flex;
    gap: 0.625rem;
}

.footer__social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer__social a:hover {
    background: var(--earth);
    color: var(--white);
    transform: translateY(-2px);
}

.footer__nav h4,
.footer__contact h4 {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.25rem;
}

.footer__nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__nav a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
}

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

.footer__contact p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer__contact a {
    color: rgba(255,255,255,0.55);
}

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

.footer__cert {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.03em;
}

.footer__bottom {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

.footer__bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer__bottom-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
}

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

/* === BACK TO TOP ========================================== */
.back-to-top {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--earth);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 990;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--earth-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* === WHATSAPP FLOAT ======================================= */
.whatsapp-float {
    position: fixed;
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    right: max(1.5rem, env(safe-area-inset-right));
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 990;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
    color: var(--white);
}

/* === ANIMATIONS =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceScroll {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}

.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered grid children */
.animate-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-stagger.is-visible > *:nth-child(1)  { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.animate-stagger.is-visible > *:nth-child(2)  { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.animate-stagger.is-visible > *:nth-child(3)  { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.animate-stagger.is-visible > *:nth-child(4)  { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.animate-stagger.is-visible > *:nth-child(5)  { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.animate-stagger.is-visible > *:nth-child(6)  { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.animate-stagger.is-visible > *:nth-child(7)  { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.animate-stagger.is-visible > *:nth-child(8)  { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.animate-stagger.is-visible > *:nth-child(9)  { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.animate-stagger.is-visible > *:nth-child(10) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* === RESPONSIVE =========================================== */

/* --- Tablet landscape (≤1024px) --- */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .rates__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto 2rem;
    }

    .rate-card--featured {
        transform: none;
    }

    .rate-card--featured:hover {
        transform: translateY(-5px);
    }

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

    .animals__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Tablet portrait / large mobile (≤768px) --- */
@media (max-width: 768px) {
    /* Tighter section padding */
    .section {
        padding: 4rem 0;
    }

    /* Navigation — full-screen overlay */
    .nav__list {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(28, 18, 8, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        z-index: 1000;
    }

    .nav__list.open {
        display: flex;
    }

    /* Large touch targets in mobile menu */
    .nav__link {
        font-size: 1.2rem;
        padding: 0.875rem 3rem;
        min-height: 52px;
        display: flex;
        align-items: center;
    }

    .nav__link--cta {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .nav__close {
        display: list-item;
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
    }

    .nav__close button {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav__hamburger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding: 6rem 1.25rem 4rem;
        /* Disable fixed attachment on mobile — broken on iOS Safari */
        background-attachment: scroll;
    }

    /* Stats */
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* About */
    .about__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about__image {
        aspect-ratio: 16 / 9;
        max-height: 300px;
    }

    /* Cottages — full width, no artificial cap */
    .cottages__grid {
        grid-template-columns: 1fr;
    }

    /* Animals */
    .animals__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Excursions */
    .excursions__grid {
        grid-template-columns: 1fr;
    }

    /* Rates */
    .rates__grid {
        max-width: 100%;
    }

    /* Contact */
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Form — single column with proper gap between fields */
    .form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form__group {
        margin-bottom: 1rem;
    }

    /* Prevent iOS zoom on input focus — must be 16px+ */
    .form__group input,
    .form__group select,
    .form__group textarea {
        font-size: 1rem;
        min-height: 48px;
    }

    .form__group textarea {
        min-height: 120px;
    }

    .contact__form-wrap {
        padding: 1.5rem;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    /* Float buttons — avoid overlapping */
    .whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
    }

    .back-to-top {
        bottom: 5.25rem;
        right: 1.25rem;
    }
}

/* --- Mobile (≤480px) --- */
@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1.125rem;
    }

    /* Hero */
    .hero {
        padding: 5.5rem 1.125rem 3.5rem;
    }

    .hero__eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.15em;
    }

    /* Stack hero CTAs vertically */
    .hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__cta .btn {
        width: 100%;
        max-width: 100%;
    }

    /* Stats — tighter */
    .stats {
        padding: 1.75rem 0;
    }

    .stats__grid {
        gap: 1rem;
    }

    /* Cottage cards — remove centering constraint */
    .cottages__grid {
        gap: 1rem;
    }

    /* Animals — 2 per row */
    .animals__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.875rem;
    }

    .animal-card {
        padding: 1.5rem 0.75rem;
    }

    .animal-card__icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        margin-bottom: 0.875rem;
    }

    /* Section headers tighter */
    .section__header {
        margin-bottom: 2.5rem;
    }

    /* Availability banner — stack vertically */
    .availability__content {
        flex-direction: column;
        gap: 0.875rem;
        text-align: center;
    }

    .availability__content .btn {
        width: auto;
        align-self: center;
    }

    /* Contact social buttons */
    .contact__social {
        flex-wrap: wrap;
    }

    /* Excursion card number — smaller */
    .excursion-card__number {
        font-size: 1.5rem;
        min-width: 2.25rem;
    }

    /* Footer reduce top padding */
    .footer {
        padding-top: 3rem;
    }
}

/* --- Very small phones (≤360px) --- */
@media (max-width: 360px) {
    /* Hide logo text, keep just the AFM mark */
    .nav__logo > span {
        display: none;
    }

    .stats__number {
        font-size: 1.75rem;
    }

    .stats__label {
        font-size: 0.72rem;
    }

    .animals__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.625rem;
    }

    .animal-card {
        padding: 1.25rem 0.5rem;
    }
}

/* === ACCESSIBILITY: reduced motion ======================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-in,
    .animate-stagger > * {
        opacity: 1;
        transform: none;
    }
}

/* === TOUCH DEVICES: remove hover effects that don't apply = */
@media (hover: none) and (pointer: coarse) {
    .cottage-card:hover,
    .animal-card:hover,
    .excursion-card:hover,
    .rate-card:hover,
    .btn:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .rate-card--featured:hover {
        transform: none;
    }
}
