/* ============================================================
   DESIGN TOKENS
   These are the brand's colours and fonts stored as variables.
   If Danielle ever wants to tweak a colour, you change it
   once here and it updates everywhere on the site.
============================================================ */
:root {
    --colour-white:       #ffffff;
    --colour-light-grey:  #f2f2f0;   /* Slightly warm white, not cold */
    --colour-mid-grey:    #d0cecc;
    --colour-text:        #3a3a3a;   /* Matches the charcoal in the wordmark */

    --colour-teal:        #3a8a8a;   /* Primary teal from the horse illustration */
    --colour-teal-dark:   #2a6a6a;   /* Deeper teal for hover states & dark bg */
    --colour-teal-deep:   #1a3a3a;   /* Near-black teal for hero background */

    --colour-gold:        #c87d3a;   /* The burnt orange/gold from the accent sweep */
    --colour-gold-light:  #d4924f;   /* Slightly lighter for hover states */

    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Lato', Arial, sans-serif;
}

/* ============================================================
   RESET & BASE
   Browsers apply their own default styles — this evens
   the playing field. Every professional site does this.
============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Makes clicking nav links scroll gently */
}

body {
    font-family: var(--font-body);
    color: var(--colour-text);
    background-color: var(--colour-white);
    line-height: 1.7;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
p  { font-size: 1rem; margin-bottom: 1rem; }

/* ============================================================
   BUTTON
============================================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--colour-teal);
    color: var(--colour-white);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid var(--colour-teal);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    color: var(--colour-teal);
}

/* ============================================================
   NAVIGATION
============================================================ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--colour-white);
    border-bottom: 1px solid var(--colour-mid-grey);
    z-index: 100;
    padding: 0.6rem 2rem;   /* Less top/bottom padding — the logo will fill it */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.logo img {
    height: 75px;        /* Larger — fills the nav band more deliberately */
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--colour-text);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--colour-teal);
}

/* ============================================================
   SECTIONS (shared spacing)
============================================================ */
section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================================
   HERO
============================================================ */
#hero {
    min-height: 100vh;
    max-width: 100%;
    background: linear-gradient(
        160deg,
        #1a3a3a 0%,      /* Deep dark teal — top left */
        #2a5a5a 50%,     /* Mid teal — centre */
        #1e2e2e 100%     /* Near black with warmth — bottom right */
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;  /* Needed so child elements can position relative to this */
    overflow: hidden;    /* Keeps decorative elements from spilling outside */
}

/* A large, faint circle — purely decorative, gives depth */
#hero::before {
    content: '';           /* Required for pseudo-elements — even if empty */
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.15);   /* Gold, very faint */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);  /* Perfect centre */
}

/* A second, smaller circle inside it */
#hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    max-width: 750px;
    position: relative;  /* Sits on top of the decorative circles */
    z-index: 1;
    padding: 2rem;
}

/* The thin gold line above the main heading */
.hero-content::before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--colour-gold);
    margin: 0 auto 1.5rem auto;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    color: var(--colour-white);
    font-size: 4rem;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    font-weight: 400;      /* Lighter weight feels more refined than bold */
    font-style: italic;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--colour-mid-grey);
    letter-spacing: 0.2em;      /* Wide spacing on small caps = very elegant */
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

/* Gold-accented version of the button, just for the hero */
.btn-hero {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background-color: transparent;
    color: var(--colour-gold);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--colour-gold);
    transition: all 0.4s ease;
}

.btn-hero:hover {
    background-color: var(--colour-gold);
    color: var(--colour-white);
}

/* ============================================================
   SECTION LABEL (the small uppercase text above headings)
   Used across multiple sections for consistency
============================================================ */
.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--colour-gold);
    margin-bottom: 0.75rem;
}

/* ============================================================
   ABOUT
============================================================ */
#about {
    background-color: var(--colour-light-grey);
    max-width: 100%;
    padding: 6rem 2rem;
}

.about-grid {
    display: grid;
    /* Two columns: left takes more space than right */
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.about-text h2 {
    color: var(--colour-teal-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--colour-text);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Qualification badges */
.credentials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* Three columns */
    gap: 0.75rem;
    margin-top: 2rem;
    overflow: hidden;
}

.credential {
    border-left: 2px solid var(--colour-gold);
    padding: 0.6rem 1rem;
    background-color: var(--colour-white);
}

.credential-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--colour-teal-dark);
    font-weight: 600;
}

.credential-sub {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--colour-text);
    margin-top: 0.2rem;
}

/* The right-hand personal card */
.about-card {
    background-color: var(--colour-white);
    padding: 2.5rem;
    border-top: 3px solid var(--colour-teal);
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--colour-teal-dark);
    margin-bottom: 1.5rem;
}

.horse-entry {
    display: flex;
    flex-direction: column;    /* Stack profile row and paragraph vertically */
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--colour-mid-grey);
}

.horse-entry:last-of-type {
    border-bottom: none;
}

.horse-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--colour-gold);
    margin-bottom: 0.4rem;
}

.horse-entry p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.horse-profile {
    display: flex;
    align-items: center;   /* Vertically centres the photo and name together */
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.horse-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--colour-gold);
    flex-shrink: 0;        /* Stops the circle squashing if the name is long */
}

.about-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--colour-mid-grey);
    color: var(--colour-teal-dark);
    font-size: 0.85rem;
    font-style: italic;
}

.about-location span {
    color: var(--colour-gold);
    font-size: 1.2rem;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
    background-color: var(--colour-teal-deep);
    color: var(--colour-white);
    padding: 4rem 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.75fr 1fr 1fr 1fr;  /* Brand column wider than the rest */
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    /* The logo has a white background — this softens it against the dark footer */
    border-radius: 4px;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-top: 0.5rem;
}

.footer-heading {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--colour-gold);
    margin-bottom: 1.25rem;
}

/* Footer navigation list */
.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 0.6rem;
}

.footer-nav a,
.footer-contact a,
.social-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-contact a:hover,
.social-link:hover {
    color: var(--colour-gold);
}

.footer-location {
    display: block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.5rem;
    font-style: italic;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Bottom bar */
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0;
}

/* ============================================================
   SERVICES
============================================================ */
#services {
    background-color: var(--colour-white);
    max-width: 100%;
    padding: 6rem 2rem;
}

.services-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    color: var(--colour-teal-dark);
    margin-bottom: 1rem;
}

.section-intro {
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: var(--colour-text);
    line-height: 1.8;
}

/* The three cards in a row */
.services-grid {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;  /* Makes all cards the same height */
}

.service-card {
    flex: 1;               /* Each card takes equal share of available space */
    border: 1px solid var(--colour-mid-grey);
    display: flex;
    flex-direction: column;  /* Stack the top and body vertically inside the card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);   /* Lifts the card slightly on hover */
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.service-card-top {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--colour-teal-dark);
    background-color: var(--colour-teal);
}

.service-icon {
    display: block;
    color: var(--colour-gold-light);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.service-card-top h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--colour-white);
}

.service-card-body {
    padding: 1.5rem 2rem 2rem;
    flex: 1;               /* Pushes content to fill available height */
    display: flex;
    flex-direction: column;
}

.service-card-body p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Pricing list inside each card */
.service-list {
    list-style: none;
    border-top: 1px solid var(--colour-mid-grey);
    margin-top: auto;      /* Pushes the price list to the bottom of the card */
}

.service-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--colour-light-grey);
    font-size: 0.9rem;
}

.service-list-label {
    color: var(--colour-text);
}

.service-list-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--colour-teal-dark);
    font-weight: 600;
}

.service-list-price em {
    font-size: 0.75rem;
    color: var(--colour-text);
    font-style: normal;
}

.service-note {
    font-size: 0.75rem !important;
    color: var(--colour-gold) !important;
    font-style: italic;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

/* The featured/highlighted card */
.service-card--featured {
    border-color: var(--colour-teal);
    border-top: 3px solid var(--colour-teal);
}

/* Travel info bar */
.services-footer {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background-color: var(--colour-light-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.services-footer p {
    font-size: 0.9rem;
    color: var(--colour-text);
    margin-bottom: 0;
}

/* ============================================================
   GALLERY
============================================================ */
#gallery {
    background-color: var(--colour-light-grey);
    max-width: 100%;
    padding: 6rem 2rem;
}

.gallery-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* Always 3 equal columns */
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 4 / 3;          /* Locks proportions — landscape photo shape */
    background-size: cover;        /* When a real photo is added, fill the tile */
    background-position: center;   /* Centre the photo in the tile */
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* The label that appears on hover */
.gallery-overlay {
    position: absolute;
    inset: 0;                      /* Shorthand for top/right/bottom/left: 0 — fills the tile completely */
    background-color: rgba(26, 58, 58, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;                    /* Hidden by default */
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;                    /* Fades in on hover */
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--colour-white);
    letter-spacing: 0.1em;
}

/* ============================================================
   CONTACT
============================================================ */
#contact {
    background-color: var(--colour-white);
    max-width: 100%;
    padding: 6rem 2rem;
}

.contact-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Form */
.contact-form-wrapper {
    background-color: var(--colour-light-grey);
    padding: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--colour-text);
    margin-bottom: 0.5rem;
}

.form-optional {
    color: var(--colour-mid-grey);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--colour-mid-grey);
    background-color: var(--colour-white);
    color: var(--colour-text);
    outline: none;
    transition: border-color 0.3s ease;
    appearance: none;      /* Removes default browser styling on selects */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--colour-teal);  /* Teal border when a field is active */
}

.form-group textarea {
    resize: vertical;      /* Lets the user resize vertically only — not sideways */
}

.form-terms {
    font-size: 0.78rem !important;
    color: var(--colour-mid-grey) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.6;
}

.form-terms a {
    color: var(--colour-teal);
    text-decoration: none;
}

.form-terms a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;          /* Removes default button border */
}

/* Contact details card */
.contact-detail-card {
    padding: 2.5rem;
    border-top: 3px solid var(--colour-teal);
    background-color: var(--colour-light-grey);
}

.contact-detail-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--colour-teal-dark);
    margin-bottom: 0.75rem;
}

.contact-detail-card > p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-detail-item {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid var(--colour-mid-grey);
}

.contact-detail-item:last-child {
    border-bottom: none;
}

.contact-detail-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--colour-gold);
    margin-bottom: 0.3rem;
}

.contact-detail-item a {
    color: var(--colour-teal-dark);
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-detail-item a:hover {
    text-decoration: underline;
}

.contact-detail-item span {
    font-size: 0.9rem;
    color: var(--colour-text);
}

.contact-detail-sub {
    font-size: 0.78rem !important;
    color: var(--colour-mid-grey) !important;
    margin-top: 0.25rem;
    font-style: italic;
}

/* ============================================================
   MEDIA QUERIES — MOBILE RESPONSIVENESS
============================================================ */

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}

@media (max-width: 768px) {

    /* NAVIGATION */
    header {
        padding: 0.4rem 1rem;
    }

    nav {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 0.5rem 1rem 0.5rem 0.5rem;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--colour-teal-dark);
        transition: all 0.3s ease;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--colour-white);
        border-bottom: 1px solid var(--colour-mid-grey);
        padding: 1rem 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        padding: 0.75rem 2rem;
    }

    /* HERO */
    .hero-content h1 {
        font-size: 2.8rem;
    }

    /* ABOUT */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .credentials {
        flex-direction: column;
    }

    /* SERVICES */
    .services-grid {
        flex-direction: column;
    }

    .services-footer {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    /* GALLERY */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-overlay {
        opacity: 1;
        background-color: rgba(26, 58, 58, 0.5);
    }

    .gallery-overlay span {
        font-size: 0.85rem;
        text-align: center;
        padding: 0 0.5rem;
    }

    /* CONTACT */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

}
/* ---- END MEDIA QUERIES ---- */