/* Giru Family Businesses — Shared Design System v2 */
:root {
    --sky-blue: #5DC8F5;
    --sky-blue-dark: #3BA8DB;
    --sky-blue-light: #E8F7FC;
    --sugarcane: #4A7C59;
    --sugarcane-dark: #3A6347;
    --sugarcane-light: #E8F5EC;
    --earth: #8B6F47;
    --earth-dark: #6B5535;
    --earth-light: #F5EDE0;
    --sand: #F4E8D1;
    --cream: #FDF8F0;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --charcoal: #333333;
    --gray: #666666;
    --border: #E0D5C5;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-script: 'Caveat', cursive;
    --max-width: 1200px;
    --radius: 16px;
    --radius-lg: 28px;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    --wave-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0,35 C240,70 480,0 720,35 C960,70 1200,0 1440,35 L1440,70 L0,70 Z' fill='%23FDF8F0'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--charcoal); background: var(--cream); line-height: 1.7; font-size: 16px; overflow-x: hidden; }
/* subtle film grain over everything */
body::before { content: ''; position: fixed; inset: 0; background-image: var(--grain); opacity: 0.035; pointer-events: none; z-index: 9999; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sugarcane); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--sugarcane-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sky-blue); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--sky-blue); color: var(--black); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--black); }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.text-center { text-align: center; }

/* Buttons — with sheen sweep */
.btn {
    position: relative; overflow: hidden;
    display: inline-block; padding: 0.9rem 2.1rem; border-radius: 50px;
    font-weight: 600; font-family: var(--font-body); font-size: 0.95rem;
    cursor: pointer; transition: var(--transition); border: 2px solid transparent;
    text-transform: uppercase; letter-spacing: 0.5px; text-align: center; min-width: 150px;
}
.btn::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn:hover::after { left: 140%; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sugarcane); color: var(--white); border-color: var(--sugarcane); }
.btn-primary:hover { background: var(--sugarcane-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(74,124,89,0.4); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--sugarcane); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; border-color: var(--sugarcane); color: var(--sugarcane); }
.btn-outline-dark:hover { background: var(--sugarcane); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(74,124,89,0.3); }

.divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--sugarcane), var(--sky-blue)); margin: 1.25rem auto; border-radius: 10px; }
.eyebrow { font-size: 0.75rem; font-weight: 700; color: var(--sugarcane); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.5rem; }
.section { padding: 4.5rem 0; }
@media (min-width: 769px) { .section { padding: 6.5rem 0; } }

/* Header */
.site-header { background: var(--white); box-shadow: 0 2px 20px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: 0 8px 32px rgba(0,0,0,0.14); }
.header-top { background: var(--charcoal); color: var(--white); padding: 0.4rem 0; font-size: 0.8rem; display: none; }
@media (min-width: 769px) { .header-top { display: block; } }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top a { color: var(--white); }
.header-top a:hover { color: var(--sky-blue); }
.header-main { padding: 0.75rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-circle { width: 50px; height: 50px; background: linear-gradient(135deg, var(--sky-blue) 0%, var(--sky-blue-dark) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(93,200,245,0.4); flex-shrink: 0; transition: transform 0.3s ease; }
.site-logo:hover .logo-circle { transform: rotate(-8deg) scale(1.05); }
.logo-circle svg { width: 28px; height: 28px; fill: var(--white); }
.site-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--black); line-height: 1.1; }
.site-name span { display: block; font-size: 0.6rem; font-family: var(--font-body); font-weight: 600; color: var(--sugarcane); text-transform: uppercase; letter-spacing: 1.5px; }
@media (min-width: 769px) { .site-name { font-size: 1.5rem; } .site-name span { font-size: 0.7rem; } }

.menu-toggle { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--cream); border: none; border-radius: 50%; font-size: 1.25rem; cursor: pointer; color: var(--charcoal); transition: var(--transition); }
.menu-toggle:hover { background: var(--sand); transform: scale(1.05); }
@media (min-width: 769px) { .menu-toggle { display: none; } }

.main-nav ul { list-style: none; }
.main-nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(26,26,26,0.55); backdrop-filter: blur(4px); z-index: 999; }
.main-nav.active { display: block; }
.main-nav-inner { position: absolute; top: 0; right: 0; bottom: 0; width: 280px; max-width: 85vw; background: var(--white); padding: 5rem 1.5rem 2rem; box-shadow: -5px 0 30px rgba(0,0,0,0.2); border-radius: 30px 0 0 30px; animation: slideInRight 0.3s ease; overflow-y: auto; }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.nav-close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; background: var(--cream); border: none; font-size: 1.25rem; cursor: pointer; transition: var(--transition); }
.nav-close:hover { background: var(--sand); transform: rotate(90deg); }
.main-nav a { display: block; padding: 0.9rem 1.25rem; margin-bottom: 0.25rem; border-radius: 15px; font-weight: 600; color: var(--charcoal); }
.main-nav a:hover, .main-nav a.current { background: var(--sugarcane-light); color: var(--sugarcane); }
@media (min-width: 769px) {
    .header-inner { flex-wrap: wrap; }
    .main-nav { display: flex !important; position: static; background: none; backdrop-filter: none; flex-basis: 100%; width: 100%; border-top: 1px solid var(--border); margin-top: 0.75rem; }
    .main-nav-inner { position: static; width: 100%; max-width: none; background: none; padding: 0; box-shadow: none; border-radius: 0; animation: none; overflow-y: visible; }
    .main-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem; padding: 0.35rem 0; }
    .nav-close { display: none; }
    .main-nav a { position: relative; padding: 0.55rem 1rem; margin: 0; border-radius: 50px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; }
    .main-nav a::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px; background: var(--nav-accent, var(--sugarcane)); border-radius: 3px; transform: translateX(-50%); transition: width 0.3s ease; }
    .main-nav a:hover, .main-nav a.current { background: none; color: var(--nav-accent, var(--sugarcane)); }
    .main-nav a:hover::after, .main-nav a.current::after { width: 55%; }
    /* per-business nav accent colours */
    .main-nav li:nth-child(1) { --nav-accent: var(--sugarcane); }
    .main-nav li:nth-child(2) { --nav-accent: var(--sky-blue-dark); }
    .main-nav li:nth-child(3) { --nav-accent: var(--earth); }
    .main-nav li:nth-child(4) { --nav-accent: var(--sugarcane); }
    .main-nav li:nth-child(5) { --nav-accent: #C96F2E; }
    .main-nav li:nth-child(6) { --nav-accent: #2B7A78; }
    .main-nav li:nth-child(7) { --nav-accent: #722F37; }
}

/* Hero — gradient + floating blobs + wave */
.hero { min-height: 70vh; min-height: 70dvh; background: linear-gradient(180deg, var(--sky-blue-light) 0%, var(--cream) 100%); display: flex; align-items: center; position: relative; overflow: hidden; padding: 6rem 0 6rem; }
@media (min-width: 769px) { .hero { padding: 8rem 0 7rem; } }
.hero::before, .hero-blob::before { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 560px; height: 560px; top: -200px; right: -140px; background: radial-gradient(circle, rgba(93,200,245,0.28), transparent 70%); animation: heroFloat 14s ease-in-out infinite; }
.hero-blob::before { width: 480px; height: 480px; bottom: -160px; left: -140px; background: radial-gradient(circle, rgba(74,124,89,0.18), transparent 70%); animation: heroFloat 18s ease-in-out infinite reverse; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background-image: var(--wave-cream); background-size: 100% 100%; background-repeat: no-repeat; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
@keyframes heroFloat { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.08); } }
.hero-badge { display: inline-block; background: var(--sugarcane); color: var(--white); padding: 0.5rem 1.5rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; box-shadow: 0 6px 18px rgba(74,124,89,0.35); animation: fadeInDown 0.8s ease; }
.hero h1 { margin-bottom: 1rem; animation: fadeInUp 0.8s ease; }
.hero .tagline { font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: var(--gray); margin-bottom: 2rem; max-width: 600px; animation: fadeInUp 0.8s ease 0.15s both; }
.hero .cta-group { display: flex; gap: 0.75rem; flex-wrap: wrap; animation: fadeInUp 0.8s ease 0.3s both; }
.hero .script-text { animation: fadeInDown 0.8s ease 0.1s both; }
.hero .location { animation: fadeInUp 0.8s ease 0.45s both; }

/* Feature cards — accent bar + icon pop */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { position: relative; overflow: hidden; background: var(--white); border-radius: var(--radius-lg); padding: 2rem 1.5rem; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border); }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sugarcane), var(--sky-blue)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 56px; height: 56px; background: var(--sugarcane-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem; transition: transform 0.3s ease; }
.feature-card:hover .feature-icon { transform: scale(1.12) rotate(-6deg); }
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--gray); font-size: 0.95rem; margin: 0; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--white); padding: 4rem 0 2rem; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sugarcane), var(--sky-blue), var(--earth), var(--sugarcane)); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-section h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; position: relative; padding-bottom: 0.75rem; }
.footer-section h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 3px; background: var(--sugarcane); border-radius: 10px; }
.footer-section p, .footer-section a { color: #999; font-size: 0.9rem; line-height: 1.8; }
.footer-section a { transition: all 0.25s ease; }
.footer-section a:hover { color: var(--sky-blue); padding-left: 4px; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { font-size: 0.8rem; color: #666; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--sugarcane); color: var(--white); border-radius: 50%; transition: var(--transition); }
.social-links a:hover { background: var(--sugarcane-dark); transform: translateY(-3px) rotate(6deg); color: var(--white); }

/* SVG icons (inline sprite) */
.ic { width: 1.75rem; height: 1.75rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.feature-icon .ic, .store-icon .ic, .value-icon .ic, .service-icon .ic, .breed-icon .ic, .stay-icon .ic, .feed-icon .ic, .product-icon .ic, .cross-icon .ic { width: 1.6rem; height: 1.6rem; }
.business-icon .ic { width: 1.9rem; height: 1.9rem; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Hero photo variant */
.hero.has-photo { background: var(--hero-overlay, linear-gradient(rgba(24,28,22,0.55), rgba(24,28,22,0.6))), var(--hero-photo) center/cover no-repeat; }
.hero.has-photo::before { display: none; }
.hero.has-photo h1 { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,0.45); }
.hero.has-photo .tagline, .hero.has-photo .location { color: rgba(255,255,255,0.95); }
.hero.has-photo .script-text { color: var(--sand) !important; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero.has-photo .btn-outline-dark { border-color: var(--white); color: var(--white); }
.hero.has-photo .btn-outline-dark:hover { background: var(--white); color: var(--black); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(25px); transition: opacity 0.6s ease var(--d, 0ms), transform 0.6s ease var(--d, 0ms); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Back to top */
.back-to-top { opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; }

/* Business themed header */
body.theme-cafe .header-top { background: var(--sugarcane); }
body.theme-feed .header-top { background: var(--earth-dark); }
body.theme-chook .header-top { background: var(--chook-primary); }
body.theme-matchy .header-top { background: var(--matchy-primary); }
body.theme-rodney .header-top { background: var(--rodney-primary); }
body.theme-cafe .site-name span { color: var(--sugarcane); }
body.theme-feed .site-name span { color: var(--earth); }
body.theme-chook .site-name span { color: var(--chook-primary); }
body.theme-matchy .site-name span { color: var(--matchy-primary); }
body.theme-rodney .site-name span { color: var(--rodney-primary); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .animate-on-scroll { opacity: 1; transform: none; }
}