/* ============================================
   Castlewoods Nutrition — Custom Styles
   Palette: Midnight Blue (#0A1F3F) + Mint (#7FBFA8)
   Fonts: Playfair Display + Inter
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #1a1a2e;
    background-color: #faf9f7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Custom Properties --- */
:root {
    --color-midnight: #0A1F3F;
    --color-midnight-light: #132d54;
    --color-mint: #7FBFA8;
    --color-mint-light: #a3d4be;
    --color-mint-pale: #e8f4ef;
    --color-cream: #faf9f7;
    --color-warm-gray: #6b6b7b;
    --color-dark: #1a1a2e;
    --color-border: #e8e6e1;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --container-max: 1200px;
    --section-padding: clamp(80px, 12vw, 140px);
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* --- Typography --- */
.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-mint);
    margin-bottom: 16px;
}

.section-label--light {
    color: var(--color-mint-light);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-midnight);
    margin-bottom: 24px;
}

.section-title em {
    font-style: italic;
    color: var(--color-mint);
}

.section-title--light {
    color: #ffffff;
}

.section-title--light em {
    color: var(--color-mint-light);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-warm-gray);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-header--center {
    text-align: center;
    margin-bottom: 64px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-mint);
    color: #ffffff;
    border-color: var(--color-mint);
}

.btn--primary:hover {
    background-color: var(--color-mint-light);
    border-color: var(--color-mint-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(127, 191, 168, 0.3);
}

.btn--outline {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

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

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.site-header.scrolled {
    background-color: rgba(10, 31, 63, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 500;
    z-index: 1001;
}

.logo em {
    font-style: italic;
    color: var(--color-mint-light);
}

.logo--light {
    color: #ffffff;
}

.logo-icon {
    color: var(--color-mint);
    flex-shrink: 0;
}

.logo-text {
    letter-spacing: 0.02em;
}

/* Desktop Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all var(--transition);
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-link--cta {
    background-color: var(--color-mint);
    color: #ffffff;
    margin-left: 8px;
}

.nav-link--cta:hover {
    background-color: var(--color-mint-light);
    color: #ffffff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: all var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--color-midnight);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    text-align: center;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: clamp(20px, 4vw, 48px);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px;
    transition: color var(--transition);
}

.mobile-menu-close:hover {
    color: #ffffff;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    border-radius: 4px;
    transition: all var(--transition);
}

.mobile-nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-nav-link--cta {
    display: inline-block;
    margin-top: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background-color: var(--color-mint);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 4px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 31, 63, 0.82) 0%,
        rgba(10, 31, 63, 0.65) 50%,
        rgba(10, 31, 63, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding: 0 24px;
    padding-top: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-mint-light);
    margin-bottom: 32px;
    padding: 8px 20px;
    border: 1px solid rgba(127, 191, 168, 0.3);
    border-radius: 100px;
    background-color: rgba(127, 191, 168, 0.08);
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 500;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-headline em {
    font-style: italic;
    color: var(--color-mint-light);
}

.hero-subheadline {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* --- Section Base --- */
.section {
    padding: var(--section-padding) 0;
}

/* --- About Section --- */
.about {
    background-color: var(--color-cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 31, 63, 0.12);
}

.about-image-main img {
    width: 100%;
    height: clamp(400px, 50vw, 600px);
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(10, 31, 63, 0.15);
    border: 4px solid var(--color-cream);
}

.about-image-accent img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-stat {
    position: absolute;
    top: -20px;
    left: -20px;
    background-color: var(--color-midnight);
    color: #ffffff;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(10, 31, 63, 0.2);
}

.about-stat .stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-mint-light);
}

.about-stat .stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.about-content {
    padding: clamp(20px, 4vw, 40px) 0;
}

.about-content > p {
    color: var(--color-warm-gray);
    margin-bottom: 16px;
    font-size: 1.025rem;
}

.about-values {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-midnight);
}

.value-icon {
    color: var(--color-mint);
    flex-shrink: 0;
}

/* --- Products Section --- */
.products {
    background-color: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card {
    background-color: var(--color-cream);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(10, 31, 63, 0.1);
    border-color: var(--color-mint);
}

.product-card-image {
    position: relative;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--color-midnight);
    color: var(--color-mint-light);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
}

.product-card-body {
    padding: 28px;
}

.product-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-midnight);
    margin-bottom: 10px;
}

.product-card-desc {
    font-size: 0.925rem;
    color: var(--color-warm-gray);
    line-height: 1.7;
}

/* --- Philosophy Section --- */
.philosophy {
    position: relative;
    padding: clamp(80px, 14vw, 160px) 0;
    overflow: hidden;
}

.philosophy-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.philosophy-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.philosophy-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 31, 63, 0.9) 0%,
        rgba(10, 31, 63, 0.8) 100%
    );
}

.philosophy-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    max-width: 680px;
    margin: 0 auto 64px;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}

.philosophy-item {
    padding: 32px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all var(--transition);
}

.philosophy-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(127, 191, 168, 0.3);
    transform: translateY(-4px);
}

.philosophy-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-mint);
    line-height: 1;
    margin-bottom: 16px;
}

.philosophy-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 12px;
}

.philosophy-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* --- Visit Section --- */
.visit {
    background-color: var(--color-cream);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.visit-content {
    padding: clamp(20px, 4vw, 40px) 0;
}

.visit-text {
    font-size: 1.025rem;
    color: var(--color-warm-gray);
    line-height: 1.8;
    margin-bottom: 40px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.visit-detail {
    display: flex;
    gap: 16px;
}

.visit-icon {
    color: var(--color-mint);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-midnight);
    margin-bottom: 4px;
}

.visit-detail p {
    font-size: 0.9rem;
    color: var(--color-warm-gray);
    line-height: 1.7;
}

.visit-detail a {
    color: var(--color-mint);
}

.visit-detail a:hover {
    color: var(--color-midnight);
}

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 31, 63, 0.1);
}

.map-placeholder {
    border-radius: 8px;
    overflow: hidden;
}

.map-placeholder iframe {
    width: 100%;
    height: 550px;
    display: block;
}

/* --- CTA / Contact Section --- */
.cta {
    background-color: var(--color-midnight);
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.cta-text {
    font-size: 1.025rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-top: 20px;
}

/* Form */
.cta-form-wrap {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: clamp(28px, 4vw, 40px);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    border-color: var(--color-mint);
    background-color: rgba(127, 191, 168, 0.06);
    box-shadow: 0 0 0 3px rgba(127, 191, 168, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    background-color: rgba(127, 191, 168, 0.12);
    border: 1px solid rgba(127, 191, 168, 0.3);
    border-radius: 6px;
    color: var(--color-mint-light);
    font-size: 0.9rem;
}

/* --- Footer --- */
.site-footer {
    background-color: #060f1f;
    color: rgba(255, 255, 255, 0.6);
    padding: clamp(60px, 8vw, 80px) 0 clamp(24px, 4vw, 40px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: clamp(32px, 4vw, 60px);
    padding-bottom: clamp(40px, 6vw, 60px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
    max-width: 280px;
}

.footer-tagline {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-hours ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-hours a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-hours a:hover {
    color: var(--color-mint-light);
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    gap: 16px;
}

.footer-hours span:first-child {
    color: rgba(255, 255, 255, 0.55);
}

.footer-hours span:last-child {
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-location {
    color: rgba(127, 191, 168, 0.5) !important;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .visit-grid,
    .cta-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image-accent {
        right: 20px;
        bottom: -20px;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-headline {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .about-image-accent {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 16px;
    }
    
    .about-stat {
        position: relative;
        top: auto;
        left: auto;
        display: inline-block;
        margin-bottom: 16px;
    }
}
