:root {
  --bg: #f2ede5;
  --bg-elevated: rgba(245, 239, 231, 0.92);
  --surface: #f4eee7;
  --surface-strong: #f8f3ec;
  --line: rgba(17, 17, 17, 0.1);
  --line-strong: rgba(17, 17, 17, 0.18);
  --text: #111111;
  --muted: #4f4943;
  --accent: #ff644c;
  --accent-deep: #eb5a43;
  --shadow: 0 24px 60px rgba(17, 17, 17, 0.08);
  --shadow-soft: 0 14px 36px rgba(17, 17, 17, 0.05);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --container: 1180px;
  --space-section: clamp(2.5rem, 5vw, 4rem);
  --space-gap: clamp(1.5rem, 3vw, 2.5rem);
  --font-heading: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --nav-height: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

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

.narrow {
  max-width: 820px;
}

.section {
  padding: var(--space-section) 0;
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.35rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fffaf7;
  box-shadow: 0 12px 24px rgba(255, 100, 76, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-deep);
}

.button-secondary {
  background: rgba(252, 248, 242, 0.74);
  color: var(--text);
  border-color: var(--line-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(252, 248, 242, 0.96);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(17, 17, 17, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.06);
}

.nav-shell {
  min-height: var(--nav-height);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
}

.brand-logo {
  width: auto;
  height: 58px;
}

.footer-logo {
  width: auto;
  height: 42px;
}

.hero-logo {
  width: auto;
  max-height: 64px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.site-nav a,
.footer-links a,
.footer-meta a {
  color: var(--muted);
  transition: color 160ms ease;
}

.site-header .site-nav a,
.site-header .brand,
.site-header .nav-toggle {
  color: #f6f0e8;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--text);
}

.site-header .site-nav a:hover,
.site-header .site-nav a:focus-visible {
  color: #ffffff;
}

.header-cta {
  white-space: nowrap;
}

.nav-toggle,
.mobile-nav {
  display: none;
}

.hero {
  padding-top: clamp(4rem, 6vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/small-business-consulting.jpg");
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.38;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.95) 68%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.95) 68%);
  filter: saturate(0.9) contrast(0.95);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(242, 237, 229, 0.98) 0%,
    rgba(242, 237, 229, 0.62) 40%,
    rgba(242, 237, 229, 0.02) 100%
  );
  pointer-events: none;
}

.hero-layout {
  display: block;
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 1.4rem;
  max-width: 760px;
}

.hero-brand-lockup {
  margin-bottom: 0.25rem;
}

.lead {
  max-width: 42rem;
  font-size: 1.2rem;
  color: var(--text);
}

.supporting {
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.6rem;
}

.service-card,
.use-case-tile,
.offer-card,
.contact-panel,
.booking-placeholder,
.pillar {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.section-framing {
  background: linear-gradient(180deg, rgba(252, 248, 242, 0.32), rgba(255, 255, 255, 0));
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-gap);
  margin-top: 2rem;
}

.pillar {
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.pillar-mark {
  display: inline-flex;
  width: 14px;
  height: 14px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 100, 76, 0.08);
}

.card-grid,
.use-case-grid {
  display: grid;
  gap: var(--space-gap);
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255, 100, 76, 0.18);
  box-shadow: var(--shadow);
}

.card-index {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.use-case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.use-case-tile {
  min-height: 168px;
  padding: 1.8rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.use-case-tile p {
  margin-top: 0.5rem;
}

.use-case-tile:hover,
.use-case-tile:focus-within {
  transform: translateY(-2px);
  background: rgba(252, 248, 242, 0.96);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.95fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.booking-form-shell {
  max-width: 1080px;
}

.contact-intro {
  display: grid;
  gap: 1.5rem;
}

.offer-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.offer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.offer-badge {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 100, 76, 0.1);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.offer-list {
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.offer-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
}

.offer-list li + li {
  margin-top: 0.8rem;
}

.offer-list li::before {
  content: "";
  position: absolute;
  top: 0.68rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.booking-placeholder {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(252, 248, 242, 0.82);
  border: 1px solid var(--line);
}

.booking-copy {
  margin-bottom: 1rem;
}

.booking-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.booking-nav {
  min-height: 44px;
  padding: 0.7rem 1rem;
}

.booking-range {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(252, 248, 242, 0.7);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
}

.booking-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.day-button {
  width: 100%;
  min-height: 64px;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(252, 248, 242, 0.8);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.day-button:hover,
.day-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 100, 76, 0.28);
  background: rgba(252, 248, 242, 0.98);
}

.day-button.is-selected {
  border-color: rgba(255, 100, 76, 0.48);
  background: rgba(255, 100, 76, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 100, 76, 0.08);
}

.day-button.is-empty {
  opacity: 0.65;
}

.day-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.day-date {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
}

.day-count {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  min-height: 120px;
}

.slot-button {
  width: 100%;
  min-height: 60px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(252, 248, 242, 0.8);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.slot-button:hover,
.slot-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 100, 76, 0.28);
  background: rgba(252, 248, 242, 0.98);
}

.slot-button.is-selected {
  border-color: rgba(255, 100, 76, 0.48);
  background: rgba(255, 100, 76, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 100, 76, 0.08);
}

.slot-day {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.slot-time {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.booking-empty {
  grid-column: 1 / -1;
  padding: 1.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
}

.booking-meta {
  margin-top: 0.9rem;
  font-size: 0.92rem;
}

.booking-label {
  margin-bottom: 0.4rem;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel {
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: rgba(252, 248, 242, 0.82);
  border: 1px solid var(--line);
}

.closing-copy {
  margin-bottom: 1.8rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form label:nth-of-type(4),
.contact-form label:nth-of-type(5),
.form-submit,
.form-note,
.booking-placeholder {
  grid-column: 1 / -1;
}

.contact-form span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(252, 248, 242, 0.82);
  color: var(--text);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 100, 76, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 100, 76, 0.08);
  background: rgba(252, 248, 242, 0.98);
}

.form-submit {
  width: 100%;
}

.booking-status {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(252, 248, 242, 0.86);
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.5;
}

.booking-status[data-state="neutral"] {
  color: var(--muted);
}

.booking-status[data-state="loading"] {
  border-color: rgba(255, 100, 76, 0.28);
  background: rgba(255, 100, 76, 0.08);
  color: var(--text);
}

.booking-status[data-state="success"] {
  border-color: rgba(44, 122, 86, 0.26);
  background: rgba(44, 122, 86, 0.1);
  color: #214d39;
}

.booking-status[data-state="error"] {
  border-color: rgba(176, 57, 42, 0.26);
  background: rgba(176, 57, 42, 0.1);
  color: #7a2318;
}

.booking-modal[hidden] {
  display: none;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(4px);
}

.booking-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: #f8f2ea;
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.2);
}

.booking-modal-dialog[data-state="success"] {
  border-color: rgba(44, 122, 86, 0.24);
  box-shadow: 0 28px 80px rgba(44, 122, 86, 0.16);
}

.booking-modal-dialog[data-state="error"] {
  border-color: rgba(176, 57, 42, 0.24);
  box-shadow: 0 28px 80px rgba(176, 57, 42, 0.14);
}

.booking-modal-kicker {
  margin: 0 0 0.55rem;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-modal-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.booking-modal-message {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1rem;
}

.booking-modal-button {
  min-width: 140px;
}

.booking-placeholder {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0.85rem;
}

.footer-links,
.footer-meta {
  display: grid;
  gap: 0.8rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
  }

  .nav-toggle span {
    width: 18px;
    height: 1.5px;
    background: #f6f0e8;
    transition: transform 180ms ease, opacity 180ms ease;
  }

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

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

  .mobile-nav {
    display: grid;
    gap: 1rem;
    padding: 0 1rem 1rem;
    background: rgba(17, 17, 17, 0.94);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 220ms ease,
      opacity 220ms ease;
  }

  .mobile-nav.is-open {
    max-height: 380px;
    opacity: 1;
  }

  .mobile-nav a {
    color: #f6f0e8;
  }

  .mobile-cta {
    margin-top: 0.5rem;
  }

  .contact-shell,
  .footer-shell,
  .pillars,
  .services-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 13ch;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 76px;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .section {
    padding: 3.25rem 0;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .button {
    width: 100%;
  }

  .contact-form,
  .booking-toolbar,
  .booking-days,
  .booking-slots {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .service-card,
  .use-case-tile,
  .offer-card,
  .contact-panel,
  .pillar {
    padding: 1.5rem;
  }

  .offer-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}
