/*
 * style.css — Main Stylesheet
 * =============================
 * This is the single stylesheet for the entire site.
 * All styles are here — no inline styles are used in the PHP files.
 *
 * TABLE OF CONTENTS
 * -----------------
 *  1.  CSS Custom Properties (colour & spacing variables)
 *  2.  Reset & Base Styles
 *  3.  Typography
 *  4.  Layout Utilities (.container, .section)
 *  5.  Buttons (.btn)
 *  6.  Site Header & Logo
 *  7.  Navigation Menu
 *  8.  Hero Section
 *  9.  About Section & Feature Cards
 * 10.  Page Header Banner
 * 11.  Dog Profile Cards
 * 12.  Empty State
 * 13.  Contact Page Layout
 * 14.  Contact Form
 * 15.  Form Status Messages (success / error)
 * 16.  Site Footer
 * 17.  Responsive — Tablet (max-width: 1024px)
 * 18.  Responsive — Mobile (max-width: 768px)
 * 19.  Responsive — Small Mobile (max-width: 480px)
 * 20.  Print Styles
 *
 * HOW TO CHANGE COLOURS:
 *   Edit the values in Section 1 (CSS Custom Properties).
 *   Changes there cascade automatically throughout the whole stylesheet.
 *
 * HOW TO CHANGE FONTS:
 *   1. Update the Google Fonts <link> in includes/header.php.
 *   2. Change the font names in --font-heading and --font-body below.
 */


/* =====================================================
   1. CSS CUSTOM PROPERTIES (Variables)
   =====================================================
   All colours, fonts, and spacing values are defined here.
   Use these variables throughout the stylesheet — never hardcode colour values.

   TO CHANGE THE COLOUR SCHEME:
     Update these hex values and every element using them will update automatically.
   ===================================================== */
:root {

    /* -- Primary Colour Palette -- */
    --color-green-darkest:  #0a1a10;   /* Deepest green — used for footer, darkest elements */
    --color-green-dark:     #122418;   /* Dark green — site header background */
    --color-green:          #1b3a2d;   /* Primary green — main brand colour */
    --color-green-mid:      #2d5a3d;   /* Mid green — hover states, card accents */
    --color-green-light:    #3d7a52;   /* Lighter green — feature icons, badges */

    /* -- Gold / Accent Palette -- */
    --color-gold:           #c8a84b;   /* Primary gold — buttons, key accents, borders */
    --color-gold-light:     #e0c878;   /* Lighter gold — hover states */
    --color-gold-pale:      #f5edd8;   /* Pale gold — section backgrounds, card highlights */
    --color-gold-border:    #d4b86a;   /* Gold border — card ruled lines */

    /* -- Neutral Palette -- */
    --color-cream:          #faf8f3;   /* Main page background — warm off-white */
    --color-white:          #ffffff;
    --color-text:           #1a1a1a;   /* Main body text colour */
    --color-text-muted:     #5a5a5a;   /* Muted/secondary text */
    --color-text-light:     #888;      /* Light text — labels, captions */
    --color-border:         #d9d0bc;   /* Default border colour */
    --color-border-light:   #ece7db;   /* Light dividers */

    /* -- Status Colours -- */
    --color-success:        #2a5c3f;   /* Success message background */
    --color-success-border: #4a8c60;
    --color-error:          #6b1f1f;   /* Error message background */
    --color-error-border:   #b03030;

    /* -- Typography -- */
    --font-heading:  'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:     'Inter', 'Helvetica Neue', Arial, sans-serif;

    /* -- Sizing & Spacing -- */
    --container-max-width: 1160px;     /* Maximum width of the main content area */
    --container-padding:   1.5rem;     /* Horizontal padding inside container on mobile */
    --section-padding:     5rem;       /* Vertical padding for content sections */
    --card-radius:         6px;        /* Border radius on cards */
    --btn-radius:          4px;        /* Border radius on buttons */

    /* -- Shadows -- */
    --shadow-card:  0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.14);

    /* -- Transitions -- */
    --transition: 0.2s ease;           /* Default transition speed for hover effects */
}


/* =====================================================
   2. RESET & BASE STYLES
   Removes inconsistent browser default styling.
   ===================================================== */

/* Box-sizing: border — makes padding and border included in element widths */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Root font size — rem units throughout are relative to this */
html {
    font-size: 16px;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-cream);
}

/* Responsive images — never overflow their container */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Remove default list styling */
ul, ol {
    list-style: none;
}

/* Remove default link styling — links are styled per-component */
a {
    color: inherit;
    text-decoration: none;
}

/* Default link hover in body text */
main a:not([class]) {
    color: var(--color-green-mid);
    text-decoration: underline;
    text-underline-offset: 3px;
}

main a:not([class]):hover {
    color: var(--color-green);
}

/* Description list reset */
dl, dt, dd {
    margin: 0;
    padding: 0;
}

/* Address tag — remove browser italic default */
address {
    font-style: normal;
}


/* =====================================================
   3. TYPOGRAPHY
   Font sizes, weights, and line heights for headings
   and body copy throughout the site.
   ===================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-green-dark);
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
}

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

strong {
    font-weight: 600;
}


/* =====================================================
   4. LAYOUT UTILITIES
   ===================================================== */

/* .container — centred max-width wrapper used on every section */
.container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* .section — vertical padding for content sections */
.section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

/* Alternate section background — used for the feature cards section */
.section--alt-bg {
    background-color: var(--color-gold-pale);
}

/* Decorative gold horizontal rule — used above section headings */
.section-rule {
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
    margin-bottom: 1.25rem;
}

/* Centred version of the section rule */
.section-rule--center {
    margin-left: auto;
    margin-right: auto;
}

/* Section heading — the h2 above content blocks */
.section-heading {
    margin-bottom: 1.5rem;
    color: var(--color-green-dark);
}


/* =====================================================
   5. BUTTONS
   Two main variants: primary (gold fill) and secondary/outline.

   .btn              — base styles shared by all buttons
   .btn--primary     — solid gold background, dark green text
   .btn--secondary   — dark green background, gold text
   .btn--outline     — transparent with gold border
   .btn--submit      — full-width version for forms
   ===================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border-radius: var(--btn-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    text-decoration: none;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

/* Primary: gold fill */
.btn--primary {
    background-color: var(--color-gold);
    color: var(--color-green-dark);
    border-color: var(--color-gold);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: var(--color-gold-light);
    border-color: var(--color-gold-light);
    color: var(--color-green-dark);
}

/* Secondary: dark green fill */
.btn--secondary {
    background-color: var(--color-green-dark);
    color: var(--color-gold);
    border-color: var(--color-green-dark);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
    background-color: var(--color-green-mid);
    border-color: var(--color-green-mid);
    color: var(--color-gold-light);
}

/* Outline: transparent with gold border */
.btn--outline {
    background-color: transparent;
    color: var(--color-green);
    border-color: var(--color-gold);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background-color: var(--color-gold);
    color: var(--color-green-dark);
}


/* =====================================================
   6. SITE HEADER & LOGO
   Fixed to the top of the page on scroll.
   Background: very dark green.
   Logo: site name in gold serif font.
   ===================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-green-dark);
    border-bottom: 2px solid var(--color-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    gap: 1.5rem;
}

/* Logo link — the site name in the header */
.site-header__logo {
    flex-shrink: 0;
    text-decoration: none;
}

.site-header__logo-text {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.site-header__logo:hover .site-header__logo-text {
    color: var(--color-gold-light);
}

/* Logo image — height controls the size in the header bar.
   Width is set to auto so the aspect ratio is preserved.
   Adjust the height value here to make the logo larger or smaller. */
.site-header__logo-img {
    height: 56px;
    width: auto;
    display: block;
}


/* =====================================================
   7. NAVIGATION MENU
   Desktop: horizontal inline menu on the right.
   Mobile: collapses into a hamburger/drawer toggled by main.js.
   Active page link is highlighted with a gold underline.
   ===================================================== */

.site-nav {
    display: flex;
    align-items: center;
}

/* The <ul> list of nav links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-menu__link {
    display: block;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 0.8rem;
    border-radius: 3px;
    transition: color var(--transition), background-color var(--transition);
    text-decoration: none;
    position: relative;
}

/* Gold underline on hover */
.nav-menu__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0.8rem;
    right: 0.8rem;
    height: 2px;
    background-color: var(--color-gold);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

.nav-menu__link:hover,
.nav-menu__link:focus-visible {
    color: var(--color-gold-light);
    outline: none;
}

.nav-menu__link:hover::after,
.nav-menu__link:focus-visible::after {
    transform: scaleX(1);
}

/* Active page link — permanently underlined in gold */
.nav-menu__link.active {
    color: var(--color-gold);
    font-weight: 600;
}

.nav-menu__link.active::after {
    transform: scaleX(1);
}

/* Hamburger toggle button — hidden on desktop, visible on mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-gold);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Animate the hamburger bars into an X when nav is open */
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =====================================================
   8. HERO SECTION
   Full-width banner on the home page.

   BACKGROUND IMAGE:
   Replace the gradient below with a real image by adding:
     background-image: url('../../assets/images/hero-banner.jpg');
   and adjusting the overlay opacity if needed for text readability.
   ===================================================== */

.hero {
    position: relative;
    /* Solid deep green gradient — replace with a real banner image when available */
    background: linear-gradient(135deg, var(--color-green-darkest) 0%, var(--color-green) 50%, var(--color-green-mid) 100%);
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Subtle texture overlay to add depth */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 70% 50%, rgba(200, 168, 75, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

/* Dark overlay — sits between the background and the text */
.hero__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 26, 16, 0.45);
    pointer-events: none;
}

.hero__content {
    position: relative; /* Sits above the overlay */
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero__text {
    /* text column */
}

/* Logo column in the hero banner */
.hero__logo-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__logo-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 40px rgba(200, 168, 75, 0.3));
}

/* Small label above the headline */
.hero__eyebrow {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

/* Main headline */
.hero__heading {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

/* Intro paragraph */
.hero__intro {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.5rem;
    max-width: 560px;
}

/* CTA button group */
.hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}


/* =====================================================
   9. ABOUT SECTION & FEATURE CARDS
   ===================================================== */

/* About block — centred text area on the home page */
.about-block {
    max-width: 760px;
}

.about-block__body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.about-block__body p + p {
    margin-top: 1rem;
}

.about-block__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Feature cards grid — three columns on desktop */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-top: 3px solid var(--color-gold);
    border-radius: var(--card-radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-card);
}

/* Icon character at the top of each feature card */
.feature-card__icon {
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.feature-card__heading {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--color-green-dark);
}

.feature-card__body {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0;
}


/* =====================================================
   10. PAGE HEADER BANNER
   The green title strip at the top of interior pages
   (Stud Dogs, Brood Bitches, Contact Us).
   ===================================================== */

.page-header {
    background-color: var(--color-green-dark);
    /* Subtle gold glow from the right */
    background-image: radial-gradient(ellipse at 90% 50%, rgba(200, 168, 75, 0.15) 0%, transparent 60%);
    border-bottom: 3px solid var(--color-gold);
    padding: 3rem 0 2.5rem;
}

.page-header__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.page-header__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 0.02em;
}


/* =====================================================
   11. DOG PROFILE CARDS
   Used on both stud-dogs.php and brood-bitches.php.

   Layout: Horizontal on desktop (image left, details right)
   On mobile: Stacks vertically (image top, details below)
   ===================================================== */

/* Wrapper for the list of all dog cards */
.dog-listing {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Individual dog profile card */
.dog-card {
    display: grid;
    /* Desktop: 300px image column, then the rest for details */
    grid-template-columns: 300px 1fr;
    background-color: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-left: 4px solid var(--color-gold);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}

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

/* ---- Image column ---- */
.dog-card__image-wrap {
    /* Fixed-height container — image fills it without distortion */
    height: 100%;
    min-height: 280px;
    overflow: hidden;
    background-color: var(--color-green-dark);
}

.dog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop to fill — no stretching */
    object-position: center top; /* Focus on the top (where the dog's head is) */
    display: block;
    transition: transform 0.4s ease;
}

.dog-card:hover .dog-card__image {
    transform: scale(1.03); /* Subtle zoom on card hover */
}

/* ---- Details column ---- */
.dog-card__body {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Card header row: name on the left, GD badge on the right */
.dog-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
}

/* Dog name */
.dog-card__name {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--color-green-dark);
    margin: 0;
    line-height: 1.15;
}

/* GD (Greyhound Data) Rating badge */
.dog-card__gd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: var(--color-green-dark);
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dog-card__gd-badge strong {
    font-size: 1.05rem;
    letter-spacing: 0;
}

/* Achievements line */
.dog-card__achievements {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Bold label prefix in the achievements line */
.dog-card__label {
    font-style: normal;
    font-weight: 600;
    color: var(--color-text);
    margin-right: 0.25rem;
}

/* Stats grid — 2 columns of label/value pairs */
.dog-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}

.dog-card__stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

/* Highlight the stud fee stat */
.dog-card__stat--fee {
    background-color: var(--color-gold-pale);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border-left: 3px solid var(--color-gold);
}

.dog-card__stat-label {
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.dog-card__stat-value {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 500;
}

/* Stud fee value — larger and bolder */
.dog-card__stat-value--fee {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-green);
}

/* "Straws Only" or other note badge — shown next to the Standing value */
.dog-card__note-badge {
    display: inline-block;
    background-color: var(--color-green);
    color: var(--color-gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Contact section at the bottom of each card */
.dog-card__contacts {
    margin-top: auto; /* Pushes contacts to the bottom of the card */
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-light);
}

.dog-card__contacts-heading {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.dog-card__contacts-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dog-card__contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.dog-card__contact-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-text);
}

/* Phone number — gold colour, clickable on mobile */
.dog-card__contact-phone {
    font-size: 0.92rem;
    color: var(--color-green-mid);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}

.dog-card__contact-phone:hover {
    color: var(--color-green);
    text-decoration: underline;
}


/* =====================================================
   12. EMPTY STATE
   Shown on brood-bitches.php when the array is empty.
   ===================================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Large icon character at the top */
.empty-state__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state__heading {
    margin-bottom: 1rem;
    color: var(--color-green-dark);
}

.empty-state__body {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}


/* =====================================================
   13. CONTACT PAGE LAYOUT
   Two-column layout: address info left, form right.
   Stacks on mobile.
   ===================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

/* Left column: address and notes */
.contact-info {
    background-color: var(--color-green-dark);
    color: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--card-radius);
    border-top: 3px solid var(--color-gold);
}

.contact-info__heading {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.contact-info__address {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.contact-info__address a {
    color: var(--color-gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-info__phone {
    margin-top: 1.25rem;
}

.contact-info__phone a {
    color: var(--color-gold-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-info__phone a:hover {
    text-decoration: underline;
}

.contact-info__note {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.contact-info__note a {
    color: var(--color-gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =====================================================
   14. CONTACT FORM
   ===================================================== */

.contact-form-wrap {
    /* No additional wrapper styling needed — form fills this column */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Each label + input pair */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group--submit {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* Field labels */
.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-text);
}

/* Required asterisk */
.form-required {
    color: var(--color-gold);
    margin-left: 2px;
}

/* Optional label */
.form-optional {
    color: var(--color-text-light);
    font-weight: 400;
    font-size: 0.82rem;
}

/* Input and textarea shared styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--btn-radius);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-green-mid);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.15);
}

/* Mark invalid fields (applied by JS after submission attempt) */
.form-input.is-invalid {
    border-color: var(--color-error-border);
    box-shadow: 0 0 0 3px rgba(176, 48, 48, 0.1);
}

/* Textarea */
.form-textarea {
    resize: vertical;  /* Allow vertical resizing only */
    min-height: 140px;
    line-height: 1.65;
}

/* Inline validation error message below a field */
.form-error {
    font-size: 0.82rem;
    color: #b03030;
    font-weight: 500;
    min-height: 1.2em; /* Reserve space so layout doesn't jump */
}

/* 'Required fields' note next to submit button */
.form-note {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin: 0;
}

/* Submit button — full width on small screens via .btn--submit */
.btn--submit {
    flex-shrink: 0;
}


/* =====================================================
   15. FORM STATUS MESSAGES (Success / Error)
   Shown at the top of the contact form after submission.
   ===================================================== */

.form-status {
    padding: 1rem 1.25rem;
    border-radius: var(--card-radius);
    border-left: 4px solid;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.form-status--success {
    background-color: #e8f5ee;
    border-color: var(--color-success-border);
    color: var(--color-success);
}

.form-status--error {
    background-color: #fdf0f0;
    border-color: var(--color-error-border);
    color: var(--color-error);
}


/* =====================================================
   16. SITE FOOTER
   Three-column layout: branding, address, quick links.
   Dark green background with gold accent text.
   ===================================================== */

.site-footer {
    background-color: var(--color-green-darkest);
    color: rgba(255, 255, 255, 0.75);
    border-top: 3px solid var(--color-gold);
    margin-top: auto;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

/* Column heading in the footer */
.site-footer__col-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

/* Site name in the footer */
.site-footer__site-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.site-footer__tagline {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin: 0;
}

/* Address column */
.site-footer__contact-details {
    font-size: 0.88rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer__phone {
    color: var(--color-gold-light);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-footer__phone:hover {
    text-decoration: underline;
}

/* Quick links column */
.site-footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__nav-list a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* Bottom copyright bar */
.site-footer__bottom {
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1rem 0;
}

.site-footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin: 0;
}


/* =====================================================
   17. RESPONSIVE — TABLET (max-width: 1024px)
   ===================================================== */
@media (max-width: 1024px) {

    /* Reduce section padding slightly */
    :root {
        --section-padding: 4rem;
    }

    /* Feature grid: 2 columns + 1 centred on tablet */
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Dog card: reduce image column width */
    .dog-card {
        grid-template-columns: 240px 1fr;
    }

    /* Contact layout: stack to single column */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Footer: 2 columns */
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__brand {
        grid-column: 1 / -1; /* Brand row spans full width */
    }
}


/* =====================================================
   18. RESPONSIVE — MOBILE (max-width: 768px)
   ===================================================== */
@media (max-width: 768px) {

    :root {
        --section-padding: 3rem;
        --container-padding: 1rem;
    }

    /* ---- Navigation: mobile drawer ---- */

    /* Show the hamburger button */
    .nav-toggle {
        display: flex;
    }

    /* The nav wrapper becomes a flex-column so the button stacks above the menu */
    .site-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    /* The header inner switches to a row: logo left, toggle right */
    .site-header__inner {
        flex-wrap: wrap;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    /* Hamburger sits in the top-right of the header */
    .nav-toggle {
        order: 2;
        margin-left: auto;
    }

    /* Nav menu: hidden by default, shown when .is-open is toggled by JS */
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        background-color: var(--color-green);
        margin-top: 0.5rem;
        border-radius: var(--card-radius);
        overflow: hidden;
    }

    /* Show the menu when JS adds is-open */
    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu__item {
        width: 100%;
    }

    .nav-menu__link {
        padding: 0.85rem 1.25rem;
        font-size: 0.92rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu__link::after {
        display: none; /* Hide underline animation on mobile */
    }

    .nav-menu__link.active,
    .nav-menu__link:hover {
        background-color: var(--color-green-mid);
    }

    /* ---- Hero section ---- */
    .hero {
        min-height: 420px;
    }

    .hero__content {
        padding-top: 3rem;
        padding-bottom: 3rem;
        grid-template-columns: 1fr;
    }

    .hero__logo-col {
        display: none; /* hide logo on mobile — keeps hero compact */
    }

    .hero__cta-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__cta-group .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    /* ---- Feature grid: single column ---- */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* ---- Dog cards: stack vertically ---- */
    .dog-card {
        grid-template-columns: 1fr;  /* Single column */
    }

    .dog-card__image-wrap {
        height: 240px;
        min-height: 0;
    }

    .dog-card__body {
        padding: 1.25rem;
    }

    /* Stats: single column on mobile */
    .dog-card__stats {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

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

    /* ---- Footer: single column ---- */
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .site-footer__brand {
        grid-column: auto;
    }

    /* ---- Form submit row ---- */
    .form-group--submit {
        flex-direction: column;
        align-items: stretch;
    }

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


/* =====================================================
   19. RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ===================================================== */
@media (max-width: 480px) {

    .dog-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .about-block__links {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-block__links .btn {
        width: 100%;
        text-align: center;
    }
}


/* =====================================================
   20. PRINT STYLES
   Hides non-essential elements and ensures clean printing.
   ===================================================== */
@media print {
    .site-header,
    .site-footer,
    .hero__cta-group,
    .about-block__links,
    .nav-toggle,
    .contact-form-wrap {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .dog-card {
        border: 1pt solid #ccc;
        page-break-inside: avoid;
        box-shadow: none;
    }

    a::after {
        content: none;
    }
}
