
/* =========================================================
   CONTACT HERO: ARCHITECTURAL COMPOSITION
   ========================================================= */

.contact-hero {
    position: relative;
    padding: 160px 0 100px 0; /* Massive top whitespace */
    background-color: #ffffff; /* Keeping it white and clean as requested */
    color: #000000;
}

.hero-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 2;
}

/* --- Top Split Section --- */
/* --- Top Split Section --- */
.hero-top-split {
    display: flex;
    justify-content: space-between;
    align-items: center; /* This centers the paragraph vertically against the title */
    gap: 100px;
    margin-bottom: 100px;
}

.hero-title-area {
    flex: 1;
}

.brand-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 11px;
    margin-bottom: 20px;
    color: #b5935b; /* Hancox Gold */
}

.hero-main-title {
    font-family: 'Noto Serif Display', serif;
    font-weight: 300;
    font-size: 72px;
    line-height: 1.05;
    color: #000000;
}

.hero-text-area {
    flex: 0 0 500px; /* Limits paragraph width for readability */
}

.hero-para {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    color: #000000;
}

/* --- 3 Column Action Links --- */
.hero-contact-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #eeeeee;
    padding-top: 60px;
}

.contact-link-item {
    display: block;
    transition: transform 0.3s ease;
}

.link-label {
    display: block;
    font-family: 'Noto Serif Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 20px;
    color: #000000;
    margin-bottom: 10px;
}

.link-value {
    display: block;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #000000;
    letter-spacing: 1px;
}

.contact-link-item:hover {
    transform: translateY(-5px);
}

.contact-link-item:hover .link-label {
    color: #b5935b; /* Gold hover state */
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-top-split { flex-direction: column; gap: 40px; }
    .hero-main-title { font-size: 52px; }
    .hero-text-area { flex: 1; width: 100%; }
    .hero-contact-links { grid-template-columns: 1fr; gap: 40px; }
}

/* =========================================================
   INQUIRY SECTION: THE WHITE MONOLITH
   ========================================================= */

.inquiry-section {
    background-color: #f9f9f9; /* Subtle contrast to make the white box pop */
    padding: 120px 0;
}

.inquiry-white-box {
    background: #ffffff;
    max-width: 1290px;
    margin: 0 auto;
    padding: 100px; /* Massive expensive whitespace */
    border: 1px solid #eeeeee;
    box-shadow: 0 30px 60px rgba(0,0,0,0.03); /* Very soft professional depth */
}

/* --- Form Header --- */
.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 80px;
    border-bottom: 1px solid #000000;
    padding-bottom: 60px;
}

.inquiry-title {
    font-family: 'Noto Serif Display', serif;
    font-weight: 300;
    font-size: 48px;
    color: #000000;
    flex: 1;
}

.inquiry-details {
    flex: 1;
    max-width: 500px;
}

.inquiry-details p {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    color: #000000;
}

/* --- Form Styling --- */
.hancox-luxury-form .form-row-split {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.field-group.full-width {
    margin-top: 20px;
}

.field-group label {
    font-family: 'Noto Serif Display', serif;
    font-weight: 400;
    font-size: 18px;
    color: #000000;
    margin-bottom: 15px;
}

/* The Architectural Input (Underline only) */
.field-group input, 
.field-group textarea {
    border: none;
    border-bottom: 1px solid #000000;
    padding: 15px 0;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: #000000;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.field-group input:focus {
    border-bottom-width: 2px;
}

.form-submit {
    margin-top: 60px;
    text-align: right;
}

.form-submit input[type="submit"] {
    background: #000000;
    color: #ffffff;
    padding: 22px 80px;
    border: none;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.form-submit input[type="submit"]:hover {
    background: #b5935b; /* Hancox Gold */
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .inquiry-white-box { padding: 60px 30px; }
    .inquiry-header { flex-direction: column; gap: 30px; }
    .hancox-luxury-form .form-row-split { flex-direction: column; gap: 30px; }
    .form-submit { text-align: left; }
    .form-submit input[type="submit"] { width: 100%; }
}
/* =========================================================
   CONTACT PAGE: THE FULL-WIDTH LUXURY FORM
   ========================================================= */

/* 1. Section & Main Container Spacing */
.inquiry-section {
    background-color: #f9f9f9;
    padding: 140px 0;
}

.inquiry-white-box {
    background: #ffffff;
    max-width: 1290px;
    margin: 0 auto;
    padding: 100px; /* Expansive internal whitespace */
    border: 1px solid #eeeeee;
}

/* 2. Header Style */
.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    margin-bottom: 80px;
    border-bottom: 1px solid #000000;
    padding-bottom: 60px;
}

.inquiry-title {
    font-family: 'Noto Serif Display', serif;
    font-weight: 300;
    font-size: 52px;
    color: #000000;
}

/* 3. The Full-Width Form Module */

/* Fix CF7 default span wrappers */
.hancox-luxury-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.field-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px; /* Spacing between rows */
}

/* Labels: Lato Bold (Matching Nav) */
.field-group label {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 13px; /* Slightly smaller for that sharp, tactical feel */
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000000;
    display: block;
    margin-bottom: 5px;
}

/* Input Boxes: Light Bordered Style */
.hancox-luxury-form input:not([type="submit"]),
.hancox-luxury-form textarea {
    width: 100% !important;
    border: 1px solid #e5e5e5 !important; /* Light, elegant border */
    background: #ffffff !important;
    border-radius: 0 !important; /* Sharp corners */
    padding: 20px 25px !important; /* Generous internal breathing room */
    font-family: 'Lato', sans-serif !important;
    font-weight: 300 !important;
    font-size: 16px !important;
    color: #000000 !important;
    outline: none !important;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Hover/Focus State */
.hancox-luxury-form input:hover,
.hancox-luxury-form textarea:hover {
    border-color: #cccccc !important;
}

.hancox-luxury-form input:focus,
.hancox-luxury-form textarea:focus {
    border-color: #000000 !important; /* Becomes sharp on focus */
    box-shadow: 0 10px 30px rgba(0,0,0,0.02) !important;
}

.hancox-luxury-form textarea {
    height: 150px;
    resize: none;
}

/* 4. The Submit Button */
.form-submit {
    margin-top: 15px;
    text-align: right;
}

.wpcf7-submit {
    background: #000000 !important;
    color: #ffffff !important;
    padding: 24px 80px !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: 'Lato', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.4s ease !important;
    width:100%;
}

.wpcf7-submit:hover {
    background: #b5935b !important; /* Hancox Gold */
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .inquiry-white-box { padding: 60px 30px; }
    .inquiry-header { flex-direction: column; align-items: flex-start; gap: 30px; }
    .form-submit { text-align: left; }
    .wpcf7-submit { width: 100%; }
}

/* =========================================================
   MAP SECTION: CLEAN & CENTERED
   ========================================================= */

.contact-map-section {
    padding-bottom: 120px; /* Spacing at the bottom of the page */
    background-color: #f9f9f9; /* Matching the background of the form section */
}

.map-wrapper {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
    line-height: 0; /* Prevents a small gap at the bottom of the iframe */
    border: 1px solid #eeeeee; /* Light border to match the form box */
}

/* Ensure the iframe itself is responsive */
.map-wrapper iframe {
    display: block;
}

@media (max-width: 1024px) {
    .contact-map-section {
        padding-bottom: 60px;
    }
}



    /* =========================================================
   TECHNICAL ANATOMY SECTION
   ========================================================= */

.stables-anatomy {
    padding: 80px 0;
    background-color: #fcfcfc; /* Very light grey for a "technical" feel */
}

.anatomy-intro, .journey-header {
    max-width: 850px;
    margin-bottom: 40px;
}

.anatomy-subtitle {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

/* The Grid */
.anatomy-technical-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    border-top: 1px solid #000000; /* Bold anchor line */
    padding-top: 50px;
}

.anatomy-card {
    display: flex;
    flex-direction: column;
}

.anatomy-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.anatomy-id {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #b5935b; /* Hancox Gold */
}

.anatomy-cat {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    color: #999;
}

.anatomy-card h4 {
    font-family: 'Noto Serif Display', serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #1a223a;
    line-height: 1.3;
}

.anatomy-card p {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.anatomy-card p strong {
    font-weight: 700;
    color: #000;
}

/* Responsive */
@media (max-width: 1100px) {
    .anatomy-technical-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}

@media (max-width: 600px) {
    .anatomy-technical-grid { grid-template-columns: 1fr; }
}



/* =========================================================
   LUXURY MASONRY GALLERY
   ========================================================= */

.hancox-gallery-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.gallery-intro {
    margin-bottom: 60px;
}

/* Creating the Grid Layout */
.hancox-grid-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Effect */
.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 34, 58, 0.4); /* Hancox Navy with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay span {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 11px;
    border: 1px solid #ffffff;
    padding: 12px 25px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Masonry Logic */
.item-large { grid-column: span 2; grid-row: span 2; }
.item-tall { grid-row: span 2; }

/* Responsive Grid */
@media (max-width: 1024px) {
    .hancox-grid-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hancox-grid-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 400px;
    }
    .item-large { grid-column: span 1; grid-row: span 1; }
}
    /* =========================================================
   GALLERY BUTTON STYLING
   ========================================================= */

.gallery-footer-action {
    margin-top: 80px;
    text-align: center;
    border-top: 1px solid #eeeeee;
    padding-top: 60px;
}

.hancox-outline-button {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 3px;
    color: #1a223a; /* Hancox Navy */
    border: 1px solid #1a223a;
    padding: 20px 50px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.hancox-outline-button:hover {
    color: #ffffff;
    background-color: #1a223a; /* Fills the button on hover */
    border-color: #1a223a;
    box-shadow: 0 10px 30px rgba(26, 34, 58, 0.15);
}

/* Optional: Gold version if you prefer */
.hancox-outline-button.gold {
    color: #b5935b;
    border-color: #b5935b;
}

.hancox-outline-button.gold:hover {
    background-color: #b5935b;
}

@media (max-width: 768px) {
    .hancox-outline-button {
        width: 100%; /* Full width for easier tapping on mobile */
        padding: 20px 20px;
    }
}



    /* =========================================================
   LUXURY FAQ ACCORDION STYLING
   ========================================================= */

.hancox-faq-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.faq-master-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr; /* Asymmetrical for modern look */
    gap: 100px;
    align-items: flex-start;
}

/* --- Left Side: Prompt --- */
.faq-header-side {
    position: sticky;
    top: 120px;
}

.faq-intro {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 50px;
}

.ask-question-cta {
    background: #f9f9f9;
    padding: 40px;
    border: 1px solid #eeeeee;
}

.ask-question-cta h3 {
    font-family: 'Noto Serif Display', serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.ask-question-cta p {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    margin-bottom: 25px;
}

/* --- Right Side: Accordion --- */
.faq-accordion {
    border-top: 1px solid #000000;
}

.faq-item {
    border-bottom: 1px solid #eeeeee;
}

.faq-question {
    width: 100%;
    padding: 35px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question span {
    font-family: 'Noto Serif Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: #1a223a;
}

/* Custom Plus/Minus Icon */
.faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: #b5935b; /* Hancox Gold */
    transition: transform 0.4s ease;
}

/* Horizontal Line */
.faq-icon::before {
    top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%);
}

/* Vertical Line */
.faq-icon::after {
    left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%);
}

/* Active State (Minus sign) */
.faq-item.active .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* --- Answer Reveal --- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 1s ease-in-out;
}

.faq-answer p {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    padding-bottom: 40px;
    max-width: 90%;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .faq-master-grid { grid-template-columns: 1fr; gap: 60px; }
    .faq-header-side { position: relative; top: 0; }
    .faq-question span { font-size: 19px; }
}



    /* =========================================================
   GLOBAL SUB-PAGE HERO & NAVY BAR
   ========================================================= */

/* --- 1. The Hero --- */
.global-hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.hero-image-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-text-block {
    position: relative;
    z-index: 5;
    max-width: 750px;
}
.hero-text-block .hancox-button-solid{
    margin-top:30px;
    display: inline-block;
}

.since-label, .split-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 11px;
    color: #ffffff;
    margin-bottom: 25px;
}
.split-label{color:black;}

.hero-title {
    font-family: 'Noto Serif Display', serif;
    font-weight: 300;
    font-size: 82px;
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 30px;
}

.hero-description {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.9;
    color: #ffffff;
    opacity: 0.9;
}

/* =========================================================
   MODERN ASYMMETRICAL BENEFIT BAR
   ========================================================= */

.benefit-bar {
    background-color: #1a223a; /* Hancox Navy */
    padding: 40px 0;
    color: #ffffff;
}

.benefit-flex-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Left: Heritage (Icons) --- */
.heritage-side {
    display: flex;
    gap: 60px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefit-icon {
    height: auto;
}

.benefit-icon img {
    width: 75px; /* Slightly larger for impact */
    height: auto;
    display: block;
}
/* Ensure links within the benefit bar don't affect layout sizing */
.benefit-flex-wrapper a {
    display: inline;      /* Keeps it on the same line as surrounding text */
    text-decoration: none; /* Removes the default underline if you don't want it */
    color: inherit;       /* Inherits the white/navy color from the parent */
    line-height: inherit;  /* Forces it to match the existing text height */
    padding: 0;           /* Removes any accidental padding */
    margin: 0;            /* Removes any accidental margins */
}

/* Optional: Add a subtle hover effect since it's now a link */
.benefit-flex-wrapper a:hover {
    color: #b5935b; /* Hancox Gold */
    transition: color 0.3s ease;
}

/* --- Right: Service Stack (Modern Vertical) --- */
.service-stack {
    display: flex;
    gap: 50px; /* Gap between the two vertical items */
    border-left: 1px solid rgba(255, 255, 255, 0.15); /* Thin vertical divider */
    padding-left: 50px;
}

.stack-item {
    display: flex;
    flex-direction: column; /* This puts one on top of the other */
    justify-content: center;
}

.stack-label {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 3px;
    color: #b5935b; /* Hancox Gold for the small label */
    margin-bottom: 4px;
}

.stack-value {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* --- Global B-Title Refinement --- */
.b-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
}

/* =========================================================
   TABLET RESPONSIVENESS: BENEFIT BAR 2x2 GRID
   ========================================================= */

@media (max-width: 1024px) {
    
    .benefit-flex-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr; /* Two even columns */
        /* We remove the flex gap and use borders for spacing instead */
        gap: 0; 
    }

    /* Reset the desktop side-specific styling */
    .heritage-side, 
    .service-stack {
        display: contents; /* This 'unwraps' the divs so the children follow the 2x2 grid */
    }

    /* Style each individual item in the 2x2 grid */
    .benefit-item, 
    .stack-item {
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center for a clean tablet look */
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Add a vertical divider between columns 1 and 2 */
    .benefit-item:nth-child(odd),
    .stack-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Remove bottom border on the last two items */
    .benefit-item:nth-child(3),
    .benefit-item:nth-child(4),
    .stack-item {
        border-bottom: none;
    }

    /* Adjusting the icons for the 2x2 layout */
    .benefit-icon {
        margin-bottom: 0px;
    }

    /* Aligning the service stack labels for the grid */
    .service-stack {
        border-left: none !important; /* Remove the desktop vertical line */
        padding-left: 0 !important;
    }

    .stack-item {
        justify-content: flex-start;
    }
}

/* Mobile Tweak: Go to 1 column on small phones */
/* =========================================================
   MOBILE HYBRID GRID: 2x2 TOP + FULL WIDTH BOTTOM
   ========================================================= */

@media (max-width: 768px) {
    .benefit-flex-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr; /* Two even columns */
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Target each item specifically */
    .benefit-item, .stack-item {
        padding: 25px 15px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Item 1 & 2: The "Table" Side-by-Side row */
    .benefit-item:nth-child(1),
    .benefit-item:nth-child(2) {
        grid-column: span 1; 
    }

    /* Add the vertical divider between Item 1 and 2 only */
    .benefit-item:nth-child(1) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Item 3 & 4: Full width rows */
    .benefit-item:nth-child(3),
    .benefit-item:nth-child(4),
    .stack-item {
        grid-column: span 2; /* Forces these to take the full width */
    }

    /* Icon Adjustment for tight mobile spaces */
    .benefit-icon {
        margin-bottom: 0;
    }

    .benefit-item h4 {
        font-size: 13px;
        letter-spacing: 1px;
    }
    /* Force full-width items to hide their right border */
    .benefit-item:nth-child(3),
    .benefit-item:nth-child(4),
    .stack-item {
        grid-column: span 2;
        border-right: none !important; /* This removes the stray line */
    }

    /* Ensure only the very first item has the vertical divider */
    .benefit-item:nth-child(1) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Double check that the second item doesn't have one either */
    .benefit-item:nth-child(2) {
        border-right: none;
    }
}

.b-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    white-space: nowrap;
}

/* --- 3. Stables Grid Layout --- */
.section-spacing { padding: 120px 0; }

.intro-centered {
    max-width: 800px;
    margin: 0 auto 80px auto;
    text-align: center;
}

.section-serif-title {
    font-family: 'Noto Serif Display', serif;
    font-size: 48px;
    margin-bottom: 25px;
}

.section-para-light {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #000000;
    line-height: 1.8;
    max-width:800px;
}

.stables-range-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.range-card {
    display: block;
    background: #ffffff;
    text-decoration: none;
    color: #000;
    transition: transform 0.4s ease;
}

.range-img-wrap {
    overflow: hidden;
    margin-bottom: 30px;
}

.range-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.range-card h3 {
    font-family: 'Noto Serif Display', serif;
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 15px;
}

.view-range {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
}

.range-card:hover .range-img-wrap img { transform: scale(1.05); }

/* Mobile */
@media (max-width: 1024px) {
    .benefit-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
    .hero-title { font-size: 40px; }
    .stables-range-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   GLOBAL PAGE CTA: SPLIT LINKS & FORM
   ========================================================= */

.page-cta-section {
    background-color: #fcfcfc; /* Very subtle off-white */
    padding: 80px 0;
    border-top: 1px solid #eeeeee;
}

.cta-master-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* 60/40 Split */
    gap: 100px;
    align-items: flex-start;
}

/* --- Left Side: Links --- */
.brand-label {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 11px;
    color: #b5935b;
    margin-bottom: 20px;
    display: block;
}

.cta-title-serif {
    font-family: 'Noto Serif Display', serif;
    font-size: 62px;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 300;
}

.cta-para-light {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 60px;
}

.cta-link-block {
    display: block;
    padding: 30px 0;
    border-top: 1px solid #eeeeee;
    transition: all 0.3s ease;
}

.cta-link-block:last-child { border-bottom: 1px solid #eeeeee; }

.link-label-bold {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
    color: #000;
}

.link-value-serif {
    font-family: 'Noto Serif Display', serif;
    font-size: 24px;
    color: #000;
}

.cta-link-block:hover { padding-left: 15px; }

/* --- Right Side: The Boxed Form --- */
.cta-form-box {
    background: #ffffff;
    padding: 60px;
    border: 1px solid #eeeeee;
    box-shadow: 0 40px 100px rgba(0,0,0,0.04);
}

.form-box-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #000;
    padding-bottom: 25px;
}

.form-box-header h3 {
    font-family: 'Noto Serif Display', serif;
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 5px;
}

.form-box-header p {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    color: #b5935b;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .cta-master-grid { grid-template-columns: 1fr; gap: 80px; }
    .cta-form-box { padding: 40px 30px; }
    .cta-title-serif { font-size: 48px; }
}
/* =========================================================
   STABLES SLIDER: SWIPER CUSTOMIZATION
   ========================================================= */

.stables-slider-section {
    padding: 80px 0;
    overflow: hidden; /* Important for the slide effect */
}

.slider-header { margin-bottom: 60px !important; }

.section-title-serif {
    font-family: 'Noto Serif Display', serif;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 10px;
    line-height:50px;
}

/* Card Styling */
.stable-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: grab;
}

.stable-card:active { cursor: grabbing; }

.stable-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.stable-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.stable-info {
    padding: 40px;
}
@media (max-width: 1290px){
    .stable-info{
        padding:20px;
    }
}

.stable-info h3 {
    font-family: 'Noto Serif Display', serif;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 400;
}

.stable-info p {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 15px;
    margin-bottom: 30px;
    min-height: 50px;
}

/* Range Button (Luxury Minimalist) */
.range-btn {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    color: #000;
}

.range-btn:hover { color: #b5935b; border-color: #b5935b; }

/* Swiper Pagination */
.swiper-pagination-bullet-active {
    background: #1a223a !important; /* Hancox Navy */
}

/* Overhanging effect: the slider starts at the container but bleeds off to the right */
.hancox-stables-swiper {
    padding-left: calc((100vw - 1290px) / 2 + 40px) !important;
    padding-right: 20px;
}
/* =========================================================
   FIX: SWIPER EQUAL HEIGHT & DOTS POSITION
   ========================================================= */

/* 1. Ensure the Swiper Wrapper allows children to grow to full height */
.hancox-stables-swiper .swiper-wrapper {
    display: flex !important; /* Forces all slides to the same height */
    align-items: stretch;     /* Stretches the cards to fill that height */
}

.hancox-stables-swiper .swiper-slide {
    height: auto !important; /* Allows flex to take over */
    display: flex;
}

/* 2. Make the card fill 100% of the slide height */
.stable-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #eeeeee;
    /* This ensures that if one card is taller, the others follow */
}

/* 3. Push the button to the bottom if text is shorter in some cards */
.stable-info {
    flex-grow: 1; /* Makes the text area take up all available space */
    display: flex;
    flex-direction: column;
}

.range-btn {
    margin-top: auto; /* Pushes the button to the absolute bottom of the card */
    align-self: flex-start;
}

.hancox-stables-swiper {
    padding-bottom: 50px !important; /* Space between cards and dots */
    overflow: visible !important;   /* Let shadow or pagination show outside */
}

.swiper-pagination {
    bottom: 0px !important; /* Moves dots away from card edges */
}

.swiper-pagination-bullet {
    width: 5px;
    height: 5px;
    background: #cccccc;
    opacity: 1;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #1a223a !important; /* Hancox Navy */
    transform: scale(1.2);
}

@media (max-width: 1290px) {
    .hancox-stables-swiper { padding-left: 20px !important; }
}


    /* =========================================================
   FOOTER: LUXURY NAVY STYLES (#202945)
   ========================================================= */

.site-footer {
    background-color: #202945;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
}

/* =========================================================
   REFINED CALLBACK SECTION (Split Layout)
   ========================================================= */
.wpcf7-spinner{
    display:none !important;
}
.footer-cta {
    background-color: #1a223a; /* Deep Navy Background */
    padding: 80px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cta-split-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

/* --- Left Side (Text) --- */
.cta-info-side {
    flex: 1;
    color: #ffffff;
}

.cta-heading {
    font-family: 'Noto Serif Display', serif;
    font-weight: 300;
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-subtext {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 480px;
    opacity: 0.9;
}

.cta-urgency {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-urgency span { opacity: 0.6; margin-right: 10px; }
.cta-urgency a { 
    color: #ffffff; 
    text-decoration: underline; 
    font-weight: 700;
}

/* --- Right Side (The White Form Box) --- */
.cta-form-side {
    flex: 1;
    max-width: 500px;
}

.cta-white-box {
    background: #ffffff;
    padding: 40px 40px 20px;
    border-radius: 0; /* Sharp Edges */
    box-shadow: 20px 20px 0px rgba(0,0,0,0.1); /* Subtle architectural offset shadow */
}

/* Form Spacing */
.callback-footer-form .form-row {
    margin-bottom: 15px;
}

.callback-footer-form input[type="text"],
.callback-footer-form input[type="tel"] {
    width: 100%;
    height: 55px;
    background: #f8f8f8;
    border: 1px solid #eeeeee;
    padding: 0 20px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.callback-footer-form input:focus {
    border-color: #202945;
}

/* Full Width Button */
.callback-footer-form input[type="submit"] {
    width: 100%; /* Full Width as requested */
    height: 60px;
    background: #202945;
    color: #ffffff;
    border: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.callback-footer-form input[type="submit"]:hover {
    background: #b5935b; /* Accent Gold */
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .cta-split-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .cta-subtext { margin: 0 auto 30px auto; }
    
    .cta-form-side {
        width: 100%;
        max-width: 100%;
    }
    
    .cta-white-box {
        padding: 30px 20px;
    }
}
.footer-cta h3,
.footer-col h4 {
    font-family: 'Noto Serif Display', serif;
    text-transform: none; /* Serifs usually look better in Title Case than All Caps */
    letter-spacing: 1px;
    font-weight: 700;
}

/* Footer Section Titles */
.footer-cta h3 {
    font-family: 'Noto Serif Display', serif;
    font-weight: 400;
    font-size: 42px;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.footer-col h4 {
    font-family: 'Noto Serif Display', serif;
    font-size: 21px;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: #ffffff;
    /* Keeping that sharp bottom line from earlier */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}
.footer-cta p {
    color: #b0b5c1;
    margin: 0;
    font-size: 14px;
}

/* Styling the CF7 Form inside the CTA strip */
.cta-form form {
    display: flex;
    gap: 10px;
}
.cta-form input[type="text"], 
.cta-form input[type="tel"], 
.cta-form input[type="email"] {
    background: #ffffff;
    border: none;
    padding: 12px 15px;
    font-size: 13px;
}
.cta-form input[type="submit"] {
    background-color: #ffffff;
    color: #202945;
    border: none;
    padding: 0 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cta-form input[type="submit"]:hover {
    background-color: #b5935b; /* Hancox Gold hover */
    color: #fff;
}

/* --- 2. Main Footer Columns --- */
.footer-main {
    padding: 80px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 1px;
    background-color: #b5935b;
}

.footer-logo {
    height: 100px;
    width: auto;
    margin-bottom: 20px;
}

.footer-col p, .footer-col ul li a {
    color: #b0b5c1;
    font-size: 13px;
    line-height: 1.8;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { transition: color 0.3s ease; }
.footer-col ul li a:hover { color: #ffffff; }

/* --- 3. Footer Bottom Bar --- */
.footer-bottom {
    background-color: #171e33;
    padding: 20px 0;
    font-size: 11px;
    color: #8a8f9d;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.footer-bottom a { color: #8a8f9d; }
.footer-bottom a:hover { color: #ffffff; }

/* --- 4. Responsive Footer --- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
    .footer-cta .flex-between { flex-direction: column; text-align: center; gap: 20px; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .cta-form form { flex-direction: column; }
}



    /* =========================================================
   HANCOX MASTER HEADER STYLES
   ========================================================= */
/* =========================================================
   GLOBAL RESET & BASE STYLES
   ========================================================= */

/* 1. Remove browser defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* This ensures padding doesn't break your widths */
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevents accidental horizontal scrolling */
    -webkit-font-smoothing: antialiased; /* Makes fonts look sharper on Mac/iOS */
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #ffffff;
    color: #333333;
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
}

/* 2. Image handling */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. Link handling */
a {
    color: inherit;
    text-decoration: none;
}

/* --- 0. Global Setup & FOUC Preventer --- */
.preload-transitions * { transition: none !important; }
.site-header-wrapper { padding-top: 0px; width: 100%; font-family: 'Lato', sans-serif; background: #fff; }
.site-header-wrapper a { text-decoration: none; }
.container { width: 84%; max-width: 1350px; margin: 0 auto; }
.lato-font { font-family: 'Lato', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.header-icon { display: block; fill: currentColor; }

/* --- 1. Fixed Navy Bar --- */
.fixed-navy-bar {
    top: 0; left: 0; width: 100%;
    background-color: #202945; color: #ffffff; z-index: 1000;
    padding: 10px 0; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
}
.fixed-navy-bar .flex-start { display: flex; justify-content: flex-start; align-items: center; }
.bar-contact-info { display: flex; gap: 30px; }
.bar-contact-info a { color: #ffffff; display: flex; align-items: center; gap: 8px; transition: opacity 0.3s ease; }
/* By default (Desktop & Tablet), hide the mobile text */
.mobile-text { display: none; }
.desktop-text { display: inline; }

/* --- 2. Branding Row (Desktop Grid) --- */
.branding-row {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; padding: 15px 0;
}
.center-col { text-align: center; }
.site-logo { height: 100px; width: auto; display: block; margin: 0 auto; }

/* Left Column (Socials) */
.left-col { display: flex; justify-content: flex-start; align-items: center; }

/* Right Column (Utility Menu) */
.right-col { display: flex; justify-content: flex-end; align-items: center; gap: 30px; }
.top-nav-list { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }
.top-nav-list a { color: #666; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; transition: color 0.3s; }
.top-nav-list .btn-contact a { border: 1px solid #e0e0e0; padding: 8px 22px; color: #1a1a1a; }

/* Dark Socials on White Header */
.header-socials-dark { display: flex; gap: 20px; }
.header-socials-dark a { color: #1a1a1a; transition: color 0.3s ease; }

/* Dark Socials on White Header */
.header-socials-dark { display: flex; gap: 15px; }
.header-socials-dark a { color: #1a1a1a; transition: color 0.3s ease; }

/* --- 3. Main Navigation (Desktop) --- */
.nav-wrapper { border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
.primary-navigation { position: relative; }
.menu-toggle { display: none; }

.main-nav-list { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; gap: 40px; }

/* FIX 1: Set to Block (Removes the Flexbox centering bug) */
.main-nav-list > li { position: relative; display: block; }

/* FIX 2: Pre-reserve 20px of padding on the right for the arrow, so text never shifts */
.main-nav-list > li > a {
    display: block; padding: 16px 20px 16px 0; color: #1a1a1a; font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; transition: color 0.3s ease;
}

/* FIX 3: Absolutely position the arrow over the reserved space */
.dropdown-arrow {
    position: absolute; right: 0; top: 0; height: 100%;
    background: none; border: none; cursor: pointer; color: #1a1a1a;
    padding: 0 5px; transition: transform 0.3s ease, color 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    backface-visibility: hidden; /* Stops Chrome from jittering text when arrow spins */
}

/* --- Bulletproof Sub-menu Base (Display: None Fix) --- */
.main-nav-list .sub-menu {
    position: absolute; 
    top: 100%; 
    left: 50%; 
    transform: translateX(-50%); /* Removed the translateY offset since we aren't sliding it anymore */
    background-color: #ffffff; 
    border: 1px solid #eaeaea; 
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    min-width: 260px; 
    white-space: nowrap; 
    padding: 0; 
    margin: 0; 
    list-style: none; 
    z-index: 999;
    
    /* THE NUCLEAR FIX: Completely removed from the page load */
    display: none !important; 
}

.main-nav-list .sub-menu a {
    display: block; padding: 16px 24px; color: #555; font-size: 11px; letter-spacing: 1.5px;
    text-transform: uppercase; text-align: center; font-weight: 400; border-bottom: 1px solid #f9f9f9;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.main-nav-list .sub-menu li:last-child a { border-bottom: none; }

/* Desktop Click & Hover Triggers */
@media (min-width: 1025px) {
    .mobile-only-item { display: none !important; }
    
    /* Instantly snaps the menu open */
    .main-nav-list li.menu-item-has-children:hover > .sub-menu,
    .main-nav-list li.submenu-is-open > .sub-menu {
        display: block !important; 
    }
    
    /* Rotates Arrow flawlessly */
    .main-nav-list li.menu-item-has-children:hover > .dropdown-arrow,
    .main-nav-list li.submenu-is-open > .dropdown-arrow { 
        transform: rotate(-180deg); color: #202945; 
    }
}

/* --- 4. Hover States (Only for devices with mice) --- */
@media (hover: hover) and (pointer: fine) {
    .bar-contact-info a:hover { opacity: 0.7; }
    .top-nav-list a:hover, .header-socials-dark a:hover { color: #202945; }
    .top-nav-list .btn-contact a:hover { background: #202945; color: #fff; border-color: #202945; }
    .main-nav-list > li > a:hover { color: #202945; }
    .main-nav-list .sub-menu a:hover { color: #202945; background-color: #fdfdfd; }
    .dropdown-arrow:hover { color: #b5935b; }
}

/* --- 5. Tablet & Mobile (Accordion Redesign) --- */
@media (max-width: 1024px) {
    /* Huge Right-Aligned Dropdown Arrow Button */
    .dropdown-arrow {
        position: static; /* Overrides the desktop absolute positioning */
        width: 65px; height: 100%; min-height: 55px; display: flex; align-items: center; justify-content: center;
        border-left: 1px solid #f0f0f0; background: #f8f8f8; border-radius: 0 4px 4px 0; margin: 0; padding: 0;
    }
    .header-icon { width: 18px; height: 18px; }
    .bar-contact-info { gap: 20px; }

    /* --- Compact Side-by-Side Mobile Header --- */
    /* Change branding row to a side-by-side flexbox */
    /* Change branding row to a side-by-side flexbox, add the faint line back */
    .branding-row { 
        display: flex; 
        flex-direction: row; 
        align-items: center; 
        justify-content: space-between; 
        padding: 15px 0; 
        border-bottom: 1px solid #f0f0f0; /* The clean, faint line returns */
    }
    
    .left-col, .right-col { display: none !important; }
    
    /* Bigger Logo on Mobile */
    .header-branding { width: auto; text-align: left; }
    .site-logo { height: 75px; margin: 0; } /* Increased from 60px to 75px */

    /* The Button Container */
    .menu-toggle {
        display: flex; 
        align-items: center; 
        gap: 12px; 
        background: none; 
        border: none; 
        padding: 10px 0; 
        font-size: 13px; 
        font-weight: 700; 
        letter-spacing: 2px; 
        cursor: pointer; 
        color: #202945; 
    }

    /* The Thinner CSS Hamburger */
    .hamburger-icon {
        position: relative;
        width: 24px;
        height: 14px;
    }

    .hamburger-icon .line {
        position: absolute;
        left: 0;
        width: 100%;
        height: 1.5px; /* Ultra-thin, luxury lines */
        background-color: #202945;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth, premium animation curve */
    }

    /* Position the 3 lines */
    .hamburger-icon .line:nth-child(1) { top: 0; }
    .hamburger-icon .line:nth-child(2) { top: 6px; }
    .hamburger-icon .line:nth-child(3) { bottom: 0; }

    /* THE ANIMATION: When the button has the 'is-open' class */
    .menu-toggle.is-open .hamburger-icon .line:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .menu-toggle.is-open .hamburger-icon .line:nth-child(2) {
        opacity: 0; /* Middle line fades out */
    }
    .menu-toggle.is-open .hamburger-icon .line:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    /* Remove the old nav-wrapper borders on mobile since the button moved */
    .nav-wrapper { border-top: none; border-bottom: none; }



    /* Accordion Main List (Flush to the edges, clean top border) */
    .main-nav-list { 
        display: none; 
        flex-direction: column; 
        gap: 0; /* Removed the gap so items sit flush */
        padding: 0; 
        background: #ffffff; 
        border-top: 1px solid #e5e5e5; /* Frames the top of the menu */
    }
    .main-nav-list.is-active { display: flex; }

    /* The Clean Line Items */
    .main-nav-list > li {
        width: 100%; 
        display: flex; 
        flex-wrap: wrap; 
        align-items: center;
        border: none; 
        border-bottom: 1px solid #e5e5e5; /* 1 clean horizontal line between items */
        border-radius: 0; /* Removed rounded corners */
        background: transparent; /* Removed the faint box background */
    }

    .main-nav-list > li > a { 
        flex-grow: 1; 
        text-align: left; 
        padding: 18px 20px; 
        font-weight: 700; 
        font-size: 13px; 
    }

    /* Right-Aligned Dropdown Arrow Button (With vertical line) */
    .dropdown-arrow {
        position: static; 
        width: 65px; 
        height: 100%; 
        min-height: 55px; 
        display: flex; 
        align-items: center; 
        justify-content: center;
        border-left: 1px solid #e5e5e5; /* 1 clean vertical line */
        background: transparent; /* Flat background */
        border-radius: 0; 
        margin: 0; 
        padding: 0;
    }

    /* Accordion Sub-Menu Dropdown */
    .main-nav-list .sub-menu {
        width: 100%; 
        flex-basis: 100%; 
        position: static; 
        transform: none; 
        box-shadow: none; 
        border: none;
        border-top: 1px solid #e5e5e5; /* Line separating parent link from sub-items */
        background-color: #fafafa; /* Very subtle off-white to show it's a dropdown */
        display: none !important; 
    }
    
    .main-nav-list li.submenu-is-open > .sub-menu { display: block !important; }
    
    .main-nav-list .sub-menu a { 
        text-align: left; 
        padding: 15px 20px 15px 35px; 
        border-bottom: 1px solid #e5e5e5; /* Clean lines inside the dropdown */
        font-weight: 400; 
    }
    
    .main-nav-list .sub-menu li:last-child a {
        border-bottom: none; /* Keeps the bottom edge clean without doubling up lines */
    }
    
    .main-nav-list li.submenu-is-open > .dropdown-arrow { 
        transform: rotate(-180deg); 
        color: #202945; 
        background: #f9f9f9; /* Slight active state highlight */
    }
    .mobile-only-item a[href*="contact"] { background-color: #202945; color: #ffffff !important; }
}
@media (max-width: 767px) {
        .desktop-text { display: none; }
        .mobile-text { display: inline; }
        
        /* Bring the items a bit closer together so they fit perfectly on small phones */
        .bar-contact-info { gap: 15px; justify-content: space-between; width: 100%; }
    }
    

    /* =========================================================
   DUAL RAIL SELECTION SECTION
   ========================================================= */

.dual-rail-selection {
    padding: 80px 0;
    background-color: #ffffff;
}

.dual-rail-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.dual-rail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.rail-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eeeeee;
    transition: border-color 0.4s ease;
}

.rail-card:hover {
    border-color: #b5935b; /* Hancox Gold */
}

/* Technical Info (Upper half) */
.rail-technical-info {
    padding: 50px 40px;
    text-align: center;
    flex-grow: 1;
}

.rail-icon {
    width: 150px;
    margin: 0 auto 25px auto;
}

.rail-icon img {
    width: 100%;
    height: auto;
}

.rail-name {
    font-family: 'Noto Serif Display', serif;
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 15px;
}

.rail-desc {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* Real Life Image (Lower half) */
.rail-real-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    line-height: 0;
}

.rail-real-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.rail-card:hover .rail-real-image img {
    transform: scale(1.05);
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .dual-rail-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    /* Technical Info (Upper half) */
.rail-technical-info {
    padding: 30px 20px;
    text-align: center;
    flex-grow: 1;
}
}



    /* =========================================================
   JOURNEY V3: RESTORED LINKS & FOOTER CTA
   ========================================================= */

.hancox-journey-v3 {
    padding: 80px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.journey-master-layout {
    display: grid;
    grid-template-columns: 1.8fr 0.6fr;
    gap: 80px;
    align-items: stretch;
}

/* --- Restored Bold Underline Links --- */
.journey-link-bold-under {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    color: #000000;
    border-bottom: 1px solid #b5935b; /* Hancox Gold Line */
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.journey-link-bold-under:hover {
    color: #b5935b;
    border-color: #000000;
    padding-left: 5px;
}

/* --- New Footer CTA Styling --- */
.journey-footer-cta {
    margin-top: 0;
    padding-top: 60px;
    border-top: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    gap: 40px;
}

.journey-footer-cta p {
    font-family: 'Noto Serif Display', serif;
    font-size: 24px;
    font-weight: 300;
    color: #1a223a;
    margin: 0;
}

.hancox-button-solid {
    /* 1. Layout - Use flex to keep text centered but allow growth */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* 2. Spacing - Use padding to define size, never fixed height */
    padding: 18px 40px;
    
    /* 3. Branding & Colors */
    background: #1a223a;
    color: #ffffff;
    border: 1px solid #1a223a;
    text-decoration: none;
    
    /* 4. Typography */
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    
    /* 5. THE FIX FOR LONG TEXT */
    line-height: 1.5;      /* Gives vertical space between wrapped lines */
    white-space: normal;   /* Allows text to break into multiple lines */
    word-wrap: break-word; /* Safety for very long words */
    max-width: 100%;       /* Keeps button from going off-screen */
    
    /* 6. Interaction */
    transition: all 0.3s ease;
    cursor: pointer;
}

.hancox-button-solid:hover {
    background: #b5935b; /* Gold hover for a high-end feel */
    border-color: #b5935b;
    color: #ffffff;
}

/* --- Timeline Architecture --- */
.timeline-item { display: flex; gap: 40px; }
.timeline-meta { display: flex; flex-direction: column; align-items: center; width: 60px; }
.timeline-num { font-family: 'Noto Serif Display', serif; font-size: 38px; color: #b5935b; }
.timeline-line { width: 1px; background-color: #eeeeee; flex-grow: 1; margin: 20px 0; }
.timeline-body { padding-bottom: 80px; }
.step-title { font-family: 'Noto Serif Display', serif; font-size: 24px; color: #1a223a; margin-bottom: 0px; font-weight:300; }

/* --- Accent Image Fix --- */
.journey-accent-side { position: relative; min-height: 400px; }
.slim-bleed-wrapper { position: absolute; top: 0; right: -100px; width: calc(100% + 100px); height: 100%; }
.slim-bleed-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Tablet / Mobile Fix --- */
@media (max-width: 1024px) {
    .journey-master-layout { grid-template-columns: 1fr; gap: 60px; }
    .journey-accent-side { position: relative; min-height: auto; width: 100%; }
    .slim-bleed-wrapper { position: relative; right: 0; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-top: 40px; }
    .journey-footer-cta { flex-direction: column; align-items: flex-start; gap: 30px; margin-top: 0; }
}

/* =========================================================
   REUSABLE RANGE INTRO COMPONENT
   ========================================================= */

.range-intro-section {
    padding: 140px 0;
    background-color: #ffffff;
}

.range-split-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

.range-text-col {
    flex: 1.2;
}

.range-image-col {
    flex: 0.8;
}

.range-description {
    margin: 30px 0 45px 0;
}

.range-description p {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 20px;
}

.range-description strong {
    font-weight: 700;
    color: #1a223a;
}

/* Image Framing */
.range-main-image {
    position: relative;
    box-shadow: 20px 20px 0px #f4f4f4; /* Architectural "Offset" Background */
}

.range-main-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(10%) contrast(105%); /* High-end photo feel */
}

.british-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #1a223a;
    padding: 15px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Responsive Behavior --- */
@media (max-width: 1024px) {
    .range-split-wrapper {
        flex-direction: column;
        gap: 60px;
    }
    
    .range-text-col, .range-image-col {
        width: 100%;
    }

    .range-main-image {
        box-shadow: 15px 15px 0px #f4f4f4;
    }
}


    /* =========================================================
   KEY FEATURES 2X2 GRID
   ========================================================= */

.stables-features-grid {
    padding: 120px 0;
    background-color: #fff;
}

.features-header {
    margin-bottom: 60px;
}

.hancox-features-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columns */
    gap: 80px 60px; /* Large vertical gap, tighter horizontal gap */
}

.feature-card {
    display: flex;
    flex-direction: column;
}

/* Image Styling */
.feature-image {
    width: 100%;
    aspect-ratio: 16 / 10; /* Fixed luxury widescreen ratio */
    overflow: hidden;
    margin-bottom: 30px;
    background: #f4f4f4;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

/* Typography */
.feature-content h4 {
    font-family: 'Noto Serif Display', serif;
    font-size: 24px;
    color: #1a223a;
    margin-bottom: 15px;
    font-weight: 400;
}

.feature-content p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    font-weight: 300;
}

/* --- Responsive Adjustments --- */

@media (max-width: 1024px) {
    .hancox-features-2x2 {
        gap: 60px 40px; /* Slightly tighter gaps on tablet */
    }
}

@media (max-width: 768px) {
    .hancox-features-2x2 {
        grid-template-columns: 1fr; /* 1 Column on Mobile */
        gap: 50px;
    }
    
    .feature-image {
        aspect-ratio: 16 / 9; /* Standard mobile ratio */
    }

    .feature-content h4 {
        font-size: 22px;
    }
}


            /* =========================================================
   FEATURE CARD BUTTONS (PRIMARY & SECONDARY)
   ========================================================= */

.feature-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Base Small Button Styles */
.btn-sm {
    padding: 12px 20px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    flex: 1; /* Makes both buttons equal width */
    transition: all 0.3s ease;
}

/* Primary Button: Request a Quote */
.hancox-button-solid {
    background-color: #1a223a; /* Hancox Navy */
    color: #ffffff;
    border: 1px solid #1a223a;
}

.hancox-button-solid:hover {
    background-color: #b5935b; /* Gold on hover */
    border-color: #b5935b;
    color: #ffffff;
}

/* Secondary Button: View Details */
.hancox-button-outline {
    background-color: transparent;
    color: #1a223a;
    border: 1px solid #d1d1d1;
}

.hancox-button-outline:hover {
    border-color: #1a223a;
    background-color: #f9f9f9;
}

/* --- Mobile Stack --- */

@media (max-width: 480px) {
    .feature-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-sm {
        width: 100%;
        display: block;
    }
}
                /* =========================================================
   FEATURE CONTENT - APPENDED SPEC TICKS
   ========================================================= */

.feature-specs-list {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee; /* Subtle separator */
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller tablet screens */
    gap: 15px 25px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-tick {
    width: 16px;
    height: 16px;
    color: #b5935b; /* Hancox Gold */
    flex-shrink: 0;
}

.spec-item span {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a223a;
}

/* --- Mobile Responsive Transition --- */

@media (max-width: 768px) {
    .feature-specs-list {
        flex-direction: column; /* Stacks the ticks one on top of the other */
        gap: 10px;
    }
    
    .spec-item span {
        font-size: 12px;
    }
}
