/* Brian Foo — one-page agency site. Mobile-first. */
:root {
  --paper: #f3eee6;
  --paper-deep: #e8e0d4;
  --ink: #1b1612;
  --ink-soft: #4f473f;
  --chili: #b33a1a;
  --chili-dark: #8c2c14;
  --sage: #3e5647;
  --rule: #d4cabe;
  --card: #fcfaf6;
  --featured: #1b1612;
  --featured-text: #f3eee6;
  --whatsapp: #146c46;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(27, 22, 18, 0.08);
  --font-sans: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --wrap: 1120px;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--chili-dark);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--chili); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--chili);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.15rem, 7vw, 3.85rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.55rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chili);
}

.section-intro {
  max-width: 40rem;
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.logo:hover { color: var(--ink); }

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.nav-toggle {
  appearance: none;
  background: none;
  border: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 1rem 1.25rem;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav.is-open { display: flex; }

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.7rem 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--chili); }

.nav-cta {
  margin-top: 0.35rem;
  text-align: center;
  background: var(--ink);
  color: var(--paper) !important;
  border-radius: 999px;
  padding: 0.75rem 1rem !important;
}

.nav-cta:hover { background: var(--chili-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  line-height: 1.3;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--chili);
  color: #fff;
  border: 1px solid var(--chili);
}

.btn-primary:hover { background: var(--chili-dark); color: #fff; border-color: var(--chili-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border: 1px solid var(--whatsapp);
}

.btn-whatsapp:hover { background: #0f5135; color: #fff; }


/* Hero */
.hero {
  padding: 3.2rem 0 3.8rem;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--chili) 12%, transparent), transparent 36%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}

.hero-inner { max-width: 44rem; margin-left: auto; margin-right: auto; }

.hero h1 { margin-bottom: 1.1rem; }

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Sections */
.section { padding: 4rem 0; }

.section-alt {
  background: var(--paper-deep);
  border-block: 1px solid var(--rule);
}

/* Services */
.service-grid {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.service-grid li {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.2rem;
}

.service-grid h3 { margin-bottom: 0.45rem; }

.service-grid p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* Steps */
.steps {
  list-style: none;
  display: grid;
  gap: 1.35rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--chili);
  line-height: 1.2;
  min-width: 2.2rem;
}

.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Packages */
.package-grid {
  display: grid;
  gap: 1rem;
}

.package {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.package-featured {
  background: var(--featured);
  color: var(--featured-text);
  border-color: var(--featured);
  position: relative;
}

.package-featured h3,
.package-featured .price,
.package-featured .amount { color: var(--featured-text); }

.package-featured li { border-color: rgba(243, 238, 230, 0.16); }

.package-tag {
  align-self: flex-start;
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--chili);
  color: #fff;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.package .price { margin: 0 0 1.15rem; }

.amount {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.period {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.package-featured .period { color: rgba(243, 238, 230, 0.7); }

.package ul { list-style: none; }

.package li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}

.package li:last-child { padding-bottom: 0; }

.addons {
  margin-top: 2rem;
  padding: 1.4rem 1.3rem;
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 70%, transparent);
}

.addons h3 { margin-bottom: 0.85rem; }

.addons ul { list-style: none; display: grid; gap: 0.65rem; }

.addons li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
}

.addons em {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.85rem;
  width: 100%;
  margin-top: -0.25rem;
}

/* Why */
.why-grid {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.why-grid li {
  padding: 0.2rem 0 0.6rem;
  border-top: 1px solid var(--rule);
}

.why-grid h3 { margin-top: 1rem; }
.why-grid p { margin: 0; color: var(--ink-soft); }

/* Contact */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 4.2rem 0;
}

.contact h2,
.contact .eyebrow { color: var(--paper); }

.contact .eyebrow { color: #e28a6c; }

.contact .section-intro { color: rgba(243, 238, 230, 0.78); }

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.contact .btn-ghost {
  color: var(--paper);
  border-color: rgba(243, 238, 230, 0.45);
}

.contact .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: #120f0c;
  color: rgba(243, 238, 230, 0.78);
  padding: 2rem 0 2.4rem;
  font-size: 0.9rem;
}

.footer-inner p { margin: 0 0 0.4rem; }
.site-footer a { color: var(--paper); }
.copyright { opacity: 0.7; margin-top: 0.8rem !important; }

@media (min-width: 700px) {
  .wrap { width: min(calc(100% - 3.5rem), var(--wrap)); }

  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem 1.15rem;
    padding: 0;
    border: 0;
    background: none;
  }

  .site-nav a { padding: 0.35rem 0; }

  .nav-cta {
    margin: 0 0 0 0.4rem;
    padding: 0.5rem 0.95rem !important;
  }

  .hero { padding: 5.5rem 0 6rem; }
  .hero-inner { margin-left: 0; }

  .section { padding: 5.25rem 0; }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
  }

  .package-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 1.1rem;
  }

  .package-featured { transform: translateY(-0.35rem); }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .why-grid li {
    border-top: 0;
    border-left: 1px solid var(--rule);
    padding: 0 0 0 1.35rem;
  }

  .why-grid li:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .why-grid h3 { margin-top: 0; }

  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .addons ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .addons li { flex-direction: column; align-items: flex-start; }
  .addons em { width: auto; }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .service-grid li {
    grid-column: span 2;
  }
  .service-grid li:nth-child(4),
  .service-grid li:nth-child(5) {
    grid-column: span 3;
  }
}

@media (min-width: 700px) and (max-width: 860px) {
  .package-grid { grid-template-columns: 1fr; }
  .package-featured { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-toggle span { transition: none; }
}
