/* ============================================================
   Sundae Software Solutions — design system
   Pastel "sundae" palette pulled from the logo: strawberry,
   mint, blueberry, vanilla cream, buttery yellow, ink.
   ============================================================ */
:root {
  --cream:        #FBF7F1;
  --paper:        #ffffff;
  --ink:          #201D22;
  --ink-soft:     #6b6673;
  --strawberry:   #EC6A8B;
  --strawberry-d: #E14D74;
  --mint:         #57C99A;
  --blueberry:    #5BB8DE;
  --butter:       #F5C65B;
  --line:         #efe7db;
  --radius:       20px;
  --radius-sm:    12px;
  --shadow:       0 8px 28px rgba(60,50,70,.10);
  --shadow-lg:    0 20px 50px rgba(60,50,70,.16);
  --maxw:         1120px;
  --font-head:    "Baloo 2", "Fredoka", system-ui, sans-serif;
  --font-body:    "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--strawberry-d); text-decoration: none; }
a:hover { color: var(--ink); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.28rem; }
p { color: var(--ink); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--strawberry-d); font-family: var(--font-head); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head h2 { margin: 8px 0 12px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; padding: 13px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--strawberry); color: #fff; box-shadow: 0 8px 20px rgba(236,106,139,.32); }
.btn-primary:hover { background: var(--strawberry-d); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { color: #fff; opacity: .9; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,247,241,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand b { font-family: var(--font-head); font-size: 1.12rem; color: var(--ink); font-weight: 700; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav-links a:hover, .nav-links a.active { color: var(--strawberry-d); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; text-align: center; }
.hero .lead { max-width: 640px; margin: 20px auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; z-index: 0; }
.blob.s1 { width: 320px; height: 320px; background: var(--strawberry); top: -80px; left: -60px; }
.blob.s2 { width: 300px; height: 300px; background: var(--mint); bottom: -100px; right: -40px; opacity: .4; }
.blob.s3 { width: 240px; height: 240px; background: var(--blueberry); top: 40px; right: 12%; opacity: .35; }
.hero .container { position: relative; z-index: 1; }
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .86rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow); }

/* ---------- Services ---------- */
.alt { background: var(--paper); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.ic.pink { background: #fde4ea; } .ic.mint { background: #dcf3e8; } .ic.sky { background: #dceef7; } .ic.butter { background: #fbf0d4; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Project cards ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project .top { height: 8px; }
.project .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.project .kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.project h3 { margin: 6px 0 10px; }
.project p { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.project .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.tag { font-size: .74rem; font-weight: 600; color: var(--ink-soft); background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.arrow { font-family: var(--font-head); font-weight: 600; color: var(--strawberry-d); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 40px; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 660px; margin: 16px auto 0; }

/* ---------- Case study ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 40px 0 12px; }
.prose h3 { margin: 26px 0 8px; }
.prose p { margin-bottom: 16px; color: var(--ink); }
.prose ul { margin: 0 0 16px 22px; } .prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 30px; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.fact b { font-family: var(--font-head); font-size: 1.5rem; display: block; color: var(--strawberry-d); }
.fact span { font-size: .82rem; color: var(--ink-soft); }
.callout { background: var(--paper); border-left: 4px solid var(--mint); border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0; box-shadow: var(--shadow); }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .meta { font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { margin: 8px 0 10px; }
.post-card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
article.post { max-width: 740px; margin: 0 auto; }
article.post .meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: 8px; }
article.post h1 { margin-bottom: 10px; }

/* ---------- Contact form ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; max-width: 640px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--strawberry); box-shadow: 0 0 0 3px #fde4ea; }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .95rem; min-height: 1.2em; }
.form-status.ok { color: #2f8f5b; } .form-status.err { color: var(--strawberry-d); }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(120deg, var(--strawberry), var(--blueberry)); color: #fff; text-align: center; border-radius: 28px; padding: 56px 30px; margin: 0 auto; max-width: var(--maxw); }
.cta h2 { color: #fff; } .cta p { color: #fff; opacity: .95; margin: 12px 0 24px; font-size: 1.12rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.footer-grid img { height: 44px; margin-bottom: 12px; }
.site-footer h4 { font-family: var(--font-head); color: var(--strawberry-d); margin-bottom: 12px; font-size: 1rem; }
.site-footer ul { list-style: none; } .site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: var(--ink-soft); } .site-footer a:hover { color: var(--strawberry-d); }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; color: var(--ink-soft); font-size: .88rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 24px; display: none; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; }
  .nav-toggle { display: flex; }
  .grid-3, .projects, .post-list, .facts, .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
