/* Mama Pan Possibilities — css/styles.css */

/* ── Reset & Base ───────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,svg{display:block;max-width:100%}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}

/* ── Custom Properties ──────────────────────────────────── */
:root{
  --bg:#FAF8F5;--bg-alt:#F0ECE5;--bg-card:#FFFFFF;--bg-dark:#3A3228;
  --text:#2A2520;--text-muted:#5A5448;--text-faint:#8A847A;
  --primary:#5A7A60;--primary-rgb:90,122,96;--primary-light:#E5EFE8;
  --accent:#C4885A;--accent-light:#F8EDD8;--border:#DDD5C8;--border-light:#F0ECE5;
  --font-heading:'Lora',Georgia,'Times New Roman',serif;
  --font-body:'Source Sans 3','Source Sans Pro',system-ui,sans-serif;
  --radius:0.5rem;--radius-lg:0.75rem;
  --shadow-sm:0 1px 3px rgba(0,0,0,.06);
  --shadow:0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:0 8px 24px rgba(0,0,0,.1);
  --nav-h:4rem;
  --transition:0.3s ease;
}

html.dark{
  --bg:#1A1C18;--bg-alt:#222520;--bg-card:#2A2D28;--bg-dark:#0F110E;
  --text:#E5E2D8;--text-muted:#A8A298;--text-faint:#686258;
  --primary:#7AA080;--primary-rgb:122,160,128;--primary-light:#1A2A1C;
  --accent:#D4A870;--accent-light:#2A2218;--border:#353228;--border-light:#222520;
  --shadow-sm:0 1px 3px rgba(0,0,0,.2);
  --shadow:0 4px 12px rgba(0,0,0,.25);
  --shadow-lg:0 8px 24px rgba(0,0,0,.3);
}

body{
  font-family:var(--font-body);font-size:1.0625rem;line-height:1.65;
  color:var(--text);background:var(--bg);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  padding-bottom:2.25rem;
}

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4{font-family:var(--font-heading);font-weight:700;line-height:1.2;color:var(--text)}
h1{font-size:clamp(2rem,3.5vw,3rem)}
h2{font-size:clamp(1.5rem,2.5vw,2rem)}
h3{font-size:clamp(1.125rem,2vw,1.375rem)}
p{margin-bottom:1rem}
.text-muted{color:var(--text-muted)}
.text-faint{color:var(--text-faint)}

/* ── Layout ─────────────────────────────────────────────── */
.container{width:100%;max-width:1120px;margin:0 auto;padding:0 1.25rem}
.section{padding:4.5rem 0}
.section-alt{background:var(--bg-alt)}

/* ── Navigation ─────────────────────────────────────────── */
.nav{
  position:sticky;top:0;z-index:50;background:var(--bg);
  border-bottom:1px solid var(--border-light);
  height:var(--nav-h);
  transition:box-shadow var(--transition);
}
.nav.scrolled{box-shadow:var(--shadow-sm)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:100%}
.nav-brand{font-family:var(--font-heading);font-weight:700;font-size:1.25rem;color:var(--primary)}
.nav-links{display:flex;align-items:center;gap:1.75rem}
.nav-links a{font-size:0.9375rem;font-weight:600;color:var(--text-muted);transition:color var(--transition)}
.nav-links a:hover,.nav-links a[aria-current="page"]{color:var(--primary)}

/* Hamburger */
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:0.25rem;color:var(--text)}
.nav-toggle svg{width:1.5rem;height:1.5rem}

/* Mobile menu */
.nav-mobile{
  display:none;position:absolute;top:var(--nav-h);left:0;right:0;
  background:var(--bg);border-bottom:1px solid var(--border-light);
  padding:1rem 1.25rem;box-shadow:var(--shadow);z-index:49;
}
.nav-mobile.open{display:flex;flex-direction:column;gap:0.75rem}
.nav-mobile a{font-size:1rem;font-weight:600;color:var(--text-muted);padding:0.5rem 0}
.nav-mobile a:hover{color:var(--primary)}

@media(max-width:767px){
  .nav-links{display:none}
  .nav-toggle{display:flex}
}

/* ── Buttons ────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:0.5rem;
  padding:0.75rem 1.75rem;border-radius:var(--radius);font-weight:600;
  font-size:0.9375rem;transition:all var(--transition);border:none;cursor:pointer;
  text-decoration:none;
}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:color-mix(in srgb,var(--primary) 85%,#000);transform:translateY(-1px);box-shadow:var(--shadow)}
.btn-outline{background:transparent;color:var(--primary);border:2px solid var(--primary)}
.btn-outline:hover{background:var(--primary-light)}
.btn-accent{background:var(--accent);color:#fff}
.btn-accent:hover{background:color-mix(in srgb,var(--accent) 85%,#000)}

/* ── Hero ───────────────────────────────────────────────── */
.hero{
  position:relative;min-height:75vh;display:flex;align-items:center;
  overflow:hidden;
}
.hero-bg{
  position:absolute;inset:0;z-index:0;
  background-size:cover;background-position:center;
}
.hero-bg::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(42,37,32,.72) 0%,rgba(90,122,96,.45) 100%);
}
.hero-content{position:relative;z-index:1;max-width:640px}
.hero h1{color:#fff;margin-bottom:1rem}
.hero p{color:rgba(255,255,255,.88);font-size:1.125rem;margin-bottom:1.75rem}

/* ── Cards ──────────────────────────────────────────────── */
.card{
  background:var(--bg-card);border:1px solid var(--border-light);
  border-radius:var(--radius-lg);padding:2rem;
  box-shadow:var(--shadow-sm);transition:box-shadow var(--transition),transform var(--transition);
}
.card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.card-icon{
  width:3rem;height:3rem;border-radius:var(--radius);
  background:var(--primary-light);color:var(--primary);
  display:flex;align-items:center;justify-content:center;margin-bottom:1rem;
}
.card-icon svg{width:1.5rem;height:1.5rem}

/* ── Services Grid ──────────────────────────────────────── */
.services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}

/* ── About Split ────────────────────────────────────────── */
.about-split{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
.about-img{border-radius:var(--radius-lg);overflow:hidden;aspect-ratio:4/5;object-fit:cover;width:100%}
@media(max-width:767px){
  .about-split{grid-template-columns:1fr;gap:2rem}
}

/* ── Values Grid ─────────────────────────────────────────── */
.values-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem;margin-top:2.5rem}
.value-card{text-align:center;padding:2rem 1.5rem}
.value-icon{
  width:3.5rem;height:3.5rem;border-radius:50%;
  background:var(--primary-light);color:var(--primary);
  display:flex;align-items:center;justify-content:center;margin:0 auto 1rem;
}
.value-icon svg{width:1.5rem;height:1.5rem}

/* ── Testimonials ───────────────────────────────────────── */
.testimonials-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}
.testimonial{background:var(--bg-card);border:1px solid var(--border-light);border-radius:var(--radius-lg);padding:2rem;position:relative}
.testimonial::before{
  content:'\201C';font-family:var(--font-heading);font-size:3.5rem;
  color:var(--primary);opacity:.25;position:absolute;top:0.5rem;left:1.25rem;line-height:1;
}
.testimonial blockquote{font-style:italic;color:var(--text-muted);margin-bottom:1rem;padding-top:1.5rem}
.testimonial cite{font-style:normal;font-weight:600;font-size:0.875rem;color:var(--text-faint)}

/* ── CTA Section ────────────────────────────────────────── */
.cta-section{background:var(--primary);color:#fff;text-align:center;padding:4rem 0}
.cta-section h2{color:#fff;margin-bottom:0.75rem}
.cta-section p{color:rgba(255,255,255,.85);margin-bottom:1.75rem;max-width:540px;margin-left:auto;margin-right:auto}
.cta-section .btn{background:#fff;color:var(--primary)}
.cta-section .btn:hover{background:rgba(255,255,255,.92);transform:translateY(-1px)}

/* ── Contact Form ───────────────────────────────────────── */
.form-group{margin-bottom:1.25rem}
.form-group label{display:block;font-weight:600;font-size:0.875rem;margin-bottom:0.375rem;color:var(--text)}
.form-group input,.form-group select,.form-group textarea{
  width:100%;padding:0.75rem 1rem;border:1px solid var(--border);
  border-radius:var(--radius);background:var(--bg-card);color:var(--text);
  font-size:1rem;transition:border-color var(--transition),box-shadow var(--transition);
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{
  outline:none;border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(var(--primary-rgb),.15);
}
.form-group textarea{resize:vertical;min-height:120px}

.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem}
.contact-info-card{display:flex;align-items:flex-start;gap:0.75rem;margin-bottom:1.5rem}
.contact-info-icon{
  flex-shrink:0;width:2.5rem;height:2.5rem;border-radius:var(--radius);
  background:var(--primary-light);color:var(--primary);
  display:flex;align-items:center;justify-content:center;
}
.contact-info-icon svg{width:1.25rem;height:1.25rem}
@media(max-width:767px){
  .contact-grid{grid-template-columns:1fr}
}

/* Form messages */
.form-success,.form-error{
  padding:1rem;border-radius:var(--radius);margin-bottom:1rem;
  font-weight:600;font-size:0.9375rem;display:none;
}
.form-success{background:#E5EFE8;color:#2A5A30}
.form-error{background:#FDECEA;color:#8B2020}
html.dark .form-success{background:#1A2A1C;color:#7AA080}
html.dark .form-error{background:#2A1818;color:#D48080}
.form-success.show,.form-error.show{display:block}

/* Honeypot */
.ohnohoney{position:absolute;left:-9999px;opacity:0;height:0;width:0;overflow:hidden}

/* ── Footer ─────────────────────────────────────────────── */
.footer{background:var(--bg-dark);color:rgba(255,255,255,.7);padding:3rem 0 1.5rem}
.footer-inner{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:2rem}
.footer-brand{font-family:var(--font-heading);font-weight:700;font-size:1.125rem;color:#fff;margin-bottom:0.5rem}
.footer-links{display:flex;gap:1.5rem;flex-wrap:wrap}
.footer-links a{font-size:0.875rem;transition:color var(--transition)}
.footer-links a:hover{color:#fff}
.footer-bottom{
  margin-top:2rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.1);
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;
  font-size:0.8125rem;
}
.footer-credit{opacity:0.5;transition:opacity var(--transition)}
.footer-credit:hover{opacity:0.8}
.footer-credit a{text-decoration:underline;text-underline-offset:2px}

/* ── Disclaimer Bar ─────────────────────────────────────── */
.zg-disclaimer{
  position:fixed;bottom:0;left:0;right:0;z-index:101;
  background:var(--bg-dark);color:rgba(255,255,255,.6);
  font-size:0.6875rem;text-align:center;padding:0.5rem 1rem;
  border-top:1px solid rgba(255,255,255,.08);
}
.zg-disclaimer a{color:rgba(255,255,255,.8);text-decoration:underline;text-underline-offset:2px}

/* ── Dark Mode Toggle ───────────────────────────────────── */
.theme-toggle{
  background:none;border:1px solid var(--border);border-radius:9999px;
  padding:0.375rem 0.75rem;cursor:pointer;display:inline-flex;align-items:center;gap:0.375rem;
  font-size:0.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;
  color:var(--text-muted);transition:all var(--transition);
}
.theme-toggle:hover{border-color:var(--primary);color:var(--primary)}
.theme-toggle svg{width:0.875rem;height:0.875rem}
.footer .theme-toggle{border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.5)}
.footer .theme-toggle:hover{border-color:rgba(255,255,255,.4);color:rgba(255,255,255,.8)}

/* ── Section Headings ───────────────────────────────────── */
.section-heading{text-align:center;margin-bottom:2.5rem}
.section-heading h2{margin-bottom:0.5rem}
.section-heading p{color:var(--text-muted);max-width:560px;margin:0 auto}
.section-eyebrow{
  font-size:0.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0.1em;
  color:var(--primary);margin-bottom:0.5rem;
}

/* ── 404 Page ───────────────────────────────────────────── */
.page-404{min-height:calc(100vh - var(--nav-h));display:flex;align-items:center;justify-content:center;text-align:center}
.page-404 h1{margin-bottom:0.75rem}
.page-404 p{color:var(--text-muted);margin-bottom:1.75rem;max-width:420px;margin-left:auto;margin-right:auto}

/* ── Page Header ────────────────────────────────────────── */
.page-header{background:var(--bg-alt);padding:3.5rem 0 3rem;text-align:center}
.page-header h1{margin-bottom:0.5rem}
.page-header p{color:var(--text-muted);max-width:560px;margin:0 auto}

/* ── About Story ─────────────────────────────────────────── */
.about-story{max-width:720px;margin:0 auto}
.about-story p{font-size:1.0625rem;color:var(--text-muted);margin-bottom:1.25rem}
.about-story p:first-of-type{font-size:1.125rem;color:var(--text)}

/* ── Utilities ──────────────────────────────────────────── */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}
.text-center{text-align:center}
.mt-2{margin-top:2rem}

/* ── Animations ─────────────────────────────────────────── */
.fade-up{opacity:0;transform:translateY(24px);transition:opacity 0.6s ease,transform 0.6s ease}
.fade-up.visible{opacity:1;transform:translateY(0)}

/* ── Print ──────────────────────────────────────────────── */
@media print{
  .nav,.footer,.zg-disclaimer,.theme-toggle{display:none}
  body{padding-bottom:0}
  .hero{min-height:auto;padding:2rem 0}
}
