/* =========================================================
   Omnibill — Editorial, warm, trustworthy.
   Fraunces (display) + Outfit (body). Navy + amber on cream.
   ========================================================= */

:root {
  --bg: #F7F3EC;           /* warm cream (paper) */
  --bg-alt: #EFE8DB;       /* slightly deeper paper */
  --surface: #FFFFFF;
  --surface-soft: #FBF7F0;
  --text: #14253D;         /* deep ink navy */
  --text-soft: #2A3A53;
  --muted: #5E6B7E;
  --line: #E5DDD0;         /* subtle warm border */
  --line-strong: #D3C6AE;
  --primary: #14253D;      /* navy ink */
  --primary-hover: #0D1A2C;
  --accent: #C67F4B;       /* warm amber/terracotta */
  --accent-soft: #E8B878;
  --accent-tint: #FBEFE0;
  --success: #2F7D4A;
  --error: #B03A2E;
  --shadow-sm: 0 1px 2px rgba(20, 37, 61, 0.04), 0 2px 6px rgba(20, 37, 61, 0.04);
  --shadow: 0 4px 12px rgba(20, 37, 61, 0.06), 0 12px 28px rgba(20, 37, 61, 0.07);
  --shadow-lg: 0 20px 50px rgba(20, 37, 61, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle paper texture via dot grid */
  background-image:
    radial-gradient(circle at 25% 15%, rgba(200, 127, 75, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(20, 37, 61, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-mark { flex-shrink: 0; }

nav[aria-label="Primary"] {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav[aria-label="Primary"] a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
}
nav[aria-label="Primary"] a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
nav[aria-label="Primary"] a:not(.btn):hover::after { transform: scaleX(1); }
nav[aria-label="Primary"] a:not(.btn):hover { color: var(--text); }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.02;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  font-variation-settings: "opsz" 100;
}
h2 em {
  font-style: italic;
  color: var(--accent);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 600;
  font-variation-settings: "opsz" 36;
}

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--text); }

.eyebrow, .section-tag {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  font-family: var(--font-body);
}

.lead {
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 640px;
  line-height: 1.55;
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}
.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 640px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.btn:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--line-strong);
  box-shadow: none;
}
.btn-secondary:hover {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-small {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-submit { width: 100%; padding: 17px 28px; font-size: 1.02rem; }

/* ===== Hero ===== */
.hero {
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232, 184, 120, 0.22) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 22px; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.hero-visual {
  margin: 0;
  position: relative;
  animation: floaty 6s ease-in-out infinite;
}
.hero-visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(20, 37, 61, 0.15));
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual { animation: none; }
}

/* ===== Trust strip ===== */
.trust {
  padding-bottom: 32px;
  margin-top: -20px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.trust-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.trust-item .ti-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  color: var(--accent);
}
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.trust-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== Sections ===== */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(200, 127, 75, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(20, 37, 61, 0.04) 0%, transparent 40%);
  pointer-events: none;
}
.section-alt > .container { position: relative; }

.grid {
  display: grid;
  gap: 22px;
}
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card {
  position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.service-card .svc-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-tint);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 18px;
}
.service-card .svc-icon svg {
  width: 28px; height: 28px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.98rem; }

.why-card {
  padding: 36px;
}
.why-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.why-card p { color: var(--muted); }

/* ===== Steps ===== */
.steps .step {
  position: relative;
  padding: 34px 28px 28px;
}
.step-number {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 18px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-soft);
}
.steps .step h3 { font-size: 1.3rem; }
.steps .step p { color: var(--muted); }

/* ===== Story ===== */
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.story-side { position: sticky; top: 110px; }
.story-side h2 { margin-bottom: 28px; }
.story-visual {
  margin-top: 20px;
  opacity: 0.95;
}
.story-copy p {
  color: var(--text-soft);
  font-size: 1.04rem;
  margin-bottom: 18px;
  line-height: 1.72;
}
.story-copy p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  margin: 4px 8px 0 0;
  color: var(--accent);
}

/* ===== FAQ ===== */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.faq summary {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform .2s ease;
  flex-shrink: 0;
  line-height: 1;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--muted);
  padding: 0 0 18px;
  font-size: 1rem;
  line-height: 1.65;
}

/* ===== Contact ===== */
.section-contact {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: start;
}
.contact-copy .lead { font-size: 1.12rem; }
.contact-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 28px;
}
.contact-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 1.02rem;
  color: var(--text-soft);
}
.contact-points li svg {
  width: 22px; height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  background: var(--accent-tint);
  border-radius: 50%;
  padding: 4px;
}
.note {
  color: var(--muted);
  font-size: 0.96rem;
  padding: 14px 18px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}

/* ===== Form ===== */
.form-card {
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 0.95rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row label { margin-bottom: 18px; }

input, select, textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
  background: var(--surface-soft);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  font-weight: 400;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-tint);
}
input::placeholder, textarea::placeholder { color: #9aa4b2; }
textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314253D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}

.consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  font-size: 0.92rem !important;
  color: var(--muted);
  margin-top: 6px !important;
  margin-bottom: 18px !important;
}
.consent input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

/* Form validation messages */
.form-message {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.96rem;
}
.form-message.error {
  background: #FCEAE7;
  color: var(--error);
  border: 1px solid #F0C0B9;
}
.form-message.success {
  background: #E7F5EC;
  color: var(--success);
  border: 1px solid #BFDFCB;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, #102034 0%, #0A1828 100%);
  color: #D5DFEE;
  padding: 72px 0 32px;
  margin-top: 0;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
}
.site-footer p { color: #9FAFC5; font-size: 0.95rem; }
.site-footer a {
  display: block;
  color: #D5DFEE;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.site-footer a:hover { color: var(--accent-soft); }
.logo-footer { color: #FFFFFF; margin-bottom: 14px; }
.logo-footer span { color: #FFFFFF; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.88rem;
  color: #8090A5;
}
.footer-bottom p { margin: 0; color: #8090A5; }
.muted-small { font-size: 0.85rem; color: #8090A5; }

/* ===== Thank-you page ===== */
.ty-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}
.ty-card {
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  box-shadow: var(--shadow-lg);
}
.ty-card .ty-icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  background: var(--accent-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.ty-card h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.ty-card p { color: var(--text-soft); font-size: 1.08rem; margin-bottom: 16px; line-height: 1.65; }
.ty-next {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
  text-align: left;
}
.ty-next h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-weight: 600;
}
.ty-next ol { padding-left: 22px; margin: 0; color: var(--text-soft); }
.ty-next li { margin-bottom: 8px; }

/* ===== 404 page ===== */
.nf-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.nf-card { max-width: 520px; }
.nf-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 12px;
  font-style: italic;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .story-side { position: static; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 60px 0 50px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { padding: 14px 0; }
  nav[aria-label="Primary"] {
    gap: 16px;
    font-size: 0.88rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  nav[aria-label="Primary"] a:not(.btn) { font-size: 0.88rem; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card, .why-card, .card { padding: 24px; }
  .ty-card { padding: 40px 24px; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 28px, 1140px); }
  .nav { flex-direction: column; align-items: flex-start; }
  nav[aria-label="Primary"] { width: 100%; }
  .btn, .btn-small { width: 100%; text-align: center; }
  nav[aria-label="Primary"] .btn-small { width: auto; }
  .hero-actions .btn { flex: 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
