/*
  Nuthurst Grange Customer Theme overrides
  Theme: Warm Ivory, Champagne, Charcoal & Rich Gold
  Applied exclusively to index.html (Private Functions)
*/

:root {
    --color-bg: #FCFAF6;             /* Warm ivory / soft white background */
    --color-card-bg: #FFFFFF;        /* Rich white cards */
    --color-card-hover: #F8F5EE;     /* Soft warm beige hover state */
    --color-text: #4E4C46;           /* Charcoal text for primary body readability */
    --color-text-muted: #7D7A72;     /* Soft taupe muted text */
    --color-ivory: #1C1B19;          /* Deep charcoal/black for primary titles */
    --color-ivory-muted: #4E4C46;    /* Dark charcoal for subheadings */
    --color-gold: #B8934C;           /* Champagne / rich antique gold accents */
    --color-gold-hover: #9E7D3E;     /* Antique gold hover state */
    --color-border: rgba(28, 27, 25, 0.08);  /* Light warm borders */
    --color-border-active: rgba(28, 27, 25, 0.16);
    --color-overlay: rgba(252, 250, 246, 0.4);
    
    /* Tighter luxury spacing overrides */
    --spacing-lg: 5.5rem;            /* Reduced from 8rem for cleaner section flows */
    --spacing-md: 3.2rem;            /* Reduced from 4.5rem */
}

/* --- Core Layout Background Overrides --- */
/* Remove all hardcoded dark backgrounds from index.html sections */
.categories,
.signature-feature,
.spaces-grid-section,
.experience,
.process,
.testimonials,
.downloads,
.enquiry {
    background-color: var(--color-bg) !important;
}

/* --- Card Background & Styling Overrides --- */
.category-card, 
.space-editorial-card, 
.exp-card, 
.download-card, 
.testimonial-card, 
.ghl-placeholder-container, 
.enquiry-contact-box {
    background-color: var(--color-card-bg) !important;
    border-color: var(--color-border) !important;
    box-shadow: 0 10px 35px rgba(78, 76, 70, 0.04) !important;
}

/* Card Hover States */
.category-card:hover, 
.space-editorial-card:hover, 
.exp-card:hover, 
.download-card:hover, 
.testimonial-card:hover {
    background-color: var(--color-card-hover) !important;
    border-color: rgba(184, 147, 76, 0.25) !important;
    transform: translateY(-5px) !important;
}

/* --- Section Spacing Polish --- */
.spaces-cta-block {
    margin-top: 3rem !important; /* Override inline margin-top */
}

/* Tighten spaces between section headings and their grids */
.section-padding .text-center[style*="margin"] {
    margin-bottom: 3rem !important;
}

/* --- Hero Image Polish --- */
/* Warmer luxury gradient allowing the venue image to show through more clearly */
.hero-overlay {
    background: 
        /* Radial overlay behind text to maintain high contrast readability */
        radial-gradient(circle at center, rgba(28, 22, 15, 0.45) 0%, transparent 65%),
        /* Warm linear gradient transitioning to a clean ivory fade at the very bottom */
        linear-gradient(
            to bottom, 
            rgba(28, 22, 15, 0.35) 0%, 
            rgba(28, 22, 15, 0.12) 60%, 
            rgba(252, 250, 246, 0.8) 92%, 
            rgba(252, 250, 246, 1) 100%
        ) !important;
    opacity: 1 !important;
}

/* Move hero content slightly higher to improve visual entry impact */
.hero-content {
    margin-top: 2.2rem !important;
}

/* Enhance text legibility with premium soft shadows */
.hero h1 {
    color: #FAF9F6 !important;
    text-shadow: 0 2px 14px rgba(28, 22, 15, 0.28) !important;
}

.hero p {
    color: #FAF9F6 !important;
    opacity: 0.95 !important;
    text-shadow: 0 1px 8px rgba(28, 22, 15, 0.22) !important;
}

.hero .label-uppercase {
    color: #FAF9F6 !important;
    text-shadow: 0 1px 5px rgba(28, 22, 15, 0.2) !important;
}

/* Refined supporting Occasion Line underneath hero text */
.hero-occasion-line {
    font-size: 0.82rem !important;
    font-family: var(--font-sans) !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: rgba(254, 253, 250, 0.85) !important;
    margin: -1.2rem auto 2.8rem auto !important;
    max-width: 820px !important;
    text-shadow: 0 1px 6px rgba(28, 22, 15, 0.25) !important;
    line-height: 1.6 !important;
}

/* Primary and Secondary CTA Button contrast polish */
.hero .btn-primary {
    background-color: var(--color-gold) !important;
    color: #1C1B19 !important;
    font-weight: 600 !important;
    border: 1px solid var(--color-gold) !important;
}

.hero .btn-primary:hover {
    background-color: var(--color-gold-hover) !important;
    border-color: var(--color-gold-hover) !important;
    box-shadow: 0 12px 30px rgba(184, 147, 76, 0.25) !important;
}

.hero .btn-secondary {
    background-color: rgba(252, 250, 246, 0.06) !important; /* Elegant subtle transparent white tint */
    border: 1px solid rgba(254, 253, 250, 0.45) !important; /* Stronger outline contrast */
    color: #FAF9F6 !important;
    text-shadow: 0 1px 4px rgba(28, 22, 15, 0.2) !important;
}

.hero .btn-secondary:hover {
    background-color: #FAF9F6 !important; /* Solid background on hover */
    color: #1C1B19 !important; /* Dark text on hover */
    border-color: #FAF9F6 !important;
}

/* --- Navigation & Menu Customizations --- */
/* Transparent state overlaying the dark hero background */
nav:not(.sticky) .nav-links > li > a:not(.btn) {
    color: #FAF9F6 !important;
}
nav:not(.sticky) .nav-links > li > a:not(.btn):hover, 
nav:not(.sticky) .nav-links > li > a:not(.btn).active {
    color: var(--color-gold) !important;
}

/* Sticky state after scrolling (light theme background) */
nav.sticky {
    background: rgba(252, 250, 246, 0.96) !important;
    border-bottom: 1px solid rgba(28, 27, 25, 0.08) !important;
    box-shadow: 0 4px 20px rgba(28, 27, 25, 0.04) !important;
}
nav.sticky .nav-links > li > a:not(.btn) {
    color: #4E4C46 !important;
}
nav.sticky .nav-links > li > a:not(.btn):hover, 
nav.sticky .nav-links > li > a:not(.btn).active {
    color: var(--color-gold) !important;
}

/* Hamburger Mobile menu lines active/sticky coloring */
nav:not(.sticky) .mobile-nav-toggle span {
    background-color: #FAF9F6 !important;
}
nav.sticky .mobile-nav-toggle span {
    background-color: #1C1B19 !important;
}

/* Mobile slide-in panel light styling */
.mobile-menu {
    background-color: #FCFAF6 !important;
}
.mobile-menu-links a {
    color: #1C1B19 !important;
}
.mobile-menu-links a:hover, 
.mobile-menu-links a.active {
    color: var(--color-gold) !important;
}

/* --- Event Category Cards Spacing & Polish (Image-led) --- */
.categories-grid {
    gap: 0.9rem !important; /* Slightly reduced card gaps to give more horizontal width to cards */
}

.category-card {
    min-height: 500px !important; /* Consistent aligned height */
    padding: 1.8rem 1rem 1rem 1rem !important; /* Reduced card padding to maximize image area */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border-radius: 4px !important;
}

.category-image-wrapper {
    width: 100% !important;
    aspect-ratio: 1 / 1.22 !important; /* Portrait aspect ratio makes image significantly taller and dominant */
    margin-top: 1.2rem !important;
    border-radius: 2px !important;
    overflow: hidden !important;
}

.category-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Prevents distortion, crops neatly */
    object-position: center !important;
}

/* Responsive adjustments for category cards */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.2rem !important;
    }
    .category-card {
        min-height: 480px !important;
    }
    .category-image-wrapper {
        aspect-ratio: 1 / 1 !important; /* Square images on tablet to keep them key */
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .category-card {
        min-height: auto !important; /* Variable height on mobile */
    }
    .category-image-wrapper {
        aspect-ratio: 1.15 / 1 !important; /* Generous landscape-square on mobile */
    }
}

/* --- Planning Journey (Process Section) Polish --- */
.process-grid::before {
    background: none !important;
    border-top: 1px dashed rgba(184, 147, 76, 0.35) !important; /* Premium dashed gold timeline line */
    height: 0 !important;
    top: 40px !important;
}

.step-number {
    background-color: #FCFAF6 !important;
    border: 1px solid rgba(184, 147, 76, 0.3) !important;
    color: var(--color-gold) !important;
    box-shadow: 0 8px 25px rgba(78, 76, 70, 0.04), inset 0 0 0 4px #FFFFFF !important; /* Elegant double-ring detail */
    font-size: 1.45rem !important;
    font-weight: 500 !important;
    width: 80px !important;
    height: 80px !important;
}

.process-step:hover .step-number {
    border-color: var(--color-gold) !important;
    color: #FFFFFF !important;
    background-color: var(--color-gold) !important;
    box-shadow: 0 10px 30px rgba(184, 147, 76, 0.2), inset 0 0 0 4px rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05) !important;
}

.process-step h3 {
    color: var(--color-ivory) !important;
}

.process-step p {
    color: var(--color-text-muted) !important;
}

/* --- Testimonials Polish --- */
.testimonial-card {
    border-top: 2px solid var(--color-gold) !important; /* Tasteful signature gold top border */
    border-radius: 4px !important;
    box-shadow: 0 12px 35px rgba(78, 76, 70, 0.03) !important;
}

.testimonial-card::before {
    content: '“' !important;
    color: rgba(184, 147, 76, 0.15) !important; /* Soft gold quote marks */
    font-family: var(--font-serif) !important;
    font-size: 5.5rem !important;
    top: 1.2rem !important;
    left: 1.8rem !important;
}

/* --- Downloads Section Polish --- */
.download-card {
    border-radius: 4px !important;
    box-shadow: 0 12px 35px rgba(78, 76, 70, 0.03) !important;
    padding: 3rem 2.5rem !important;
}

.download-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 68px !important;
    height: 68px !important;
    background-color: #FCFAF6 !important; /* Circle-wrapped bg */
    border-radius: 50% !important;
    border: 1px solid rgba(184, 147, 76, 0.2) !important;
    margin-bottom: 1.8rem !important;
    transition: var(--transition-smooth) !important;
}

.download-icon svg {
    width: 26px !important;
    height: 26px !important;
    stroke: var(--color-gold) !important;
}

.download-card:hover .download-icon {
    background-color: var(--color-gold) !important;
    border-color: var(--color-gold) !important;
}

.download-card:hover .download-icon svg {
    stroke: #FFFFFF !important; /* Icon turns white on hover */
}

.download-card h3 {
    font-size: 1.5rem !important;
    margin-bottom: 0.8rem !important;
    color: var(--color-ivory) !important;
}

.download-card p {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    color: var(--color-text-muted) !important;
}

.download-card .btn {
    padding: 0.9rem 2.2rem !important; /* Premium tighter button alignment */
    font-size: 0.75rem !important;
    border-radius: 2px !important;
    margin-top: 1rem !important;
}

/* --- Enquiry Section & GHL Form Polish --- */
.ghl-placeholder-container {
    padding: 1.5rem 1.8rem !important; /* Tightened padding pulls form to the top of the panel */
    box-shadow: 0 15px 45px rgba(78, 76, 70, 0.05) !important;
    border-radius: 4px !important;
}

.ghl-form-wrapper {
    min-height: 820px !important; /* Sensible height for form fields to remove excess white space */
}

.enquiry-contact-box {
    border-radius: 4px !important;
    box-shadow: 0 10px 30px rgba(78, 76, 70, 0.03) !important;
    padding: 2.2rem !important;
}

/* --- Footer Light Mode Styling --- */
footer {
    background-color: #F6F4EE !important;
    border-top: 1px solid rgba(28, 27, 25, 0.08) !important;
    color: #4E4C46 !important;
}
footer h4 {
    color: #1C1B19 !important;
    border-bottom: 1px solid rgba(28, 27, 25, 0.06) !important;
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
}
footer .footer-desc {
    color: #7D7A72 !important;
}
footer ul a {
    color: #4E4C46 !important;
}
footer ul a:hover {
    color: var(--color-gold) !important;
}
.footer-bottom {
    border-top: 1px solid rgba(28, 27, 25, 0.06) !important;
    color: #7D7A72 !important;
}
.footer-bottom-links a {
    color: #7D7A72 !important;
}
.footer-bottom-links a:hover {
    color: var(--color-gold) !important;
}
