/* ==========================================================================
   Caleb & Co. — Website Styles
   Elegant, timeless, minimal. Soft ivory + antique gold + deep black.
   ========================================================================== */

:root {
  /* Brand colors */
  --ivory: #F6F2E9;
  --ivory-soft: #F9F6F0;
  --black: #171615;
  --black-soft: #2A2826;
  --gold: #856832;
  --gold-light: #A68B4B;
  --gold-muted: #B8AA91;
  --beige: #E8DFCE;
  --taupe: #B8AA91;
  --line: #D9D0C0;
  --line-soft: #E8DFCE;
  --text: #171615;
  --text-2: #4A4540;
  --text-muted: #7A7268;

  /* Type */
  --f-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;

  /* Layout */
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 80px;
  --radius: 4px;
  --radius-lg: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html, body { overflow-x: clip; }
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; font-weight: 500; }
p, li { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  margin: 0;
  padding: 0;
}
button { cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.lead {
  font-size: clamp(18px, 2.1vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 38em;
}
.meta {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}
.section {
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: calc(var(--section-y) * 0.7);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head--center {
  text-align: center;
  margin-inline: auto;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--black);
}
.section-head p {
  color: var(--text-2);
  font-size: 18px;
  max-width: 36em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 560;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--black);
  color: var(--ivory);
}
.btn--primary:hover {
  background: var(--gold);
  color: var(--ivory);
}

.btn--gold {
  background: var(--gold);
  color: var(--ivory);
}
.btn--gold:hover {
  background: var(--black);
  color: var(--ivory);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--black);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--outline-light {
  border-color: rgba(246, 242, 233, 0.35);
  color: var(--ivory);
}
.btn--outline-light:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.btn--sm { min-height: 42px; padding: 10px 22px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 16px 36px; font-size: 16px; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-row--center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 233, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 242, 233, 0.97);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--black);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--black);
  position: relative;
  transition: background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--black);
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.menu-open .nav-toggle span { background: transparent; }
.menu-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--gutter) 40px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.45s var(--ease), opacity 0.35s, visibility 0.35s;
}
.menu-open .mobile-menu {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu a {
  font-family: var(--f-display);
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 500;
  padding: 12px 0;
  color: var(--black);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn-row {
  margin-top: 32px;
  flex-direction: column;
}
.mobile-menu .btn { width: 100%; }

@media (max-width: 900px) {
  .nav-links, .nav-actions .btn--ghost { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Intro splash ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}
.intro__logo {
  opacity: 0;
  transform: translateY(12px);
  animation: introLogo 1.1s var(--ease-out) 0.3s forwards;
}

.intro__line {
  width: 0;
  height: 1px;
  background: var(--gold);
  animation: introLine 0.9s var(--ease-out) 1.1s forwards;
}
.intro__tag {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: introFade 0.7s var(--ease) 1.6s forwards;
}
@keyframes introLogo {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes introLine {
  to { width: 80px; }
}
@keyframes introFade {
  to { opacity: 1; }
}
.has-intro body { overflow: hidden; }
.intro.is-done {
  animation: introExit 0.7s var(--ease) forwards;
}
@keyframes introExit {
  to { opacity: 0; visibility: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 40px) 80px;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero .eyebrow {
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(42px, 8.5vw, 78px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero .lead {
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
}
.hero .hero-note {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(16px);
}
.hero .btn-row {
  opacity: 0;
  transform: translateY(16px);
}
.is-loaded .hero .eyebrow,
.is-loaded .hero h1,
.is-loaded .hero .lead,
.is-loaded .hero .hero-note,
.is-loaded .hero .btn-row {
  animation: heroIn 0.9s var(--ease-out) forwards;
}
.is-loaded .hero .eyebrow { animation-delay: 0.05s; }
.is-loaded .hero h1 { animation-delay: 0.15s; }
.is-loaded .hero .lead { animation-delay: 0.28s; }
.is-loaded .hero .hero-note { animation-delay: 0.38s; }
.is-loaded .hero .btn-row { animation-delay: 0.48s; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero__accent {
  position: absolute;
  right: -5%;
  bottom: 8%;
  width: min(42vw, 480px);
  height: min(42vw, 480px);
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}
.hero__accent::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid var(--gold-muted);
  border-radius: 50%;
  opacity: 0.5;
}

/* ---------- Portfolio / Work grid ---------- */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.25s var(--ease);
}
.filter-btn:hover,
.filter-btn.is-active {
  background: var(--black);
  border-color: var(--black);
  color: var(--ivory);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 28px;
}
.work-card {
  group: true;
  display: block;
  background: var(--beige);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(23, 22, 21, 0.18);
}
.work-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--taupe);
  position: relative;
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.work-card:hover .work-card__media img {
  transform: scale(1.04);
}
.work-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  background: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border-radius: 999px;
}
.work-card__body {
  padding: 22px 24px 26px;
}
.work-card__tag {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.work-card h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
}
.work-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Value / Problem section ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 800px) {
  .problem-grid { grid-template-columns: 1fr; }
}
.problem-card {
  padding: 32px 28px;
  background: var(--beige);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: border-color 0.3s;
}
.problem-card:hover { border-color: var(--line); }
.problem-card__num {
  font-family: var(--f-display);
  font-size: 42px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}
.problem-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.problem-card p {
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- Trades / industries ---------- */
.trades {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.trade-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--beige);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.trade-item:hover {
  border-color: var(--gold-muted);
  background: var(--ivory);
}
.trade-item__num {
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--gold);
  min-width: 28px;
}
.trade-item span {
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Comparison table ---------- */
.compare {
  overflow-x: auto;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.compare th,
.compare td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}
.compare th {
  background: var(--beige);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.compare th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.compare th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
.compare tr:last-child td { border-bottom: none; }
.compare td:nth-child(2) {
  color: var(--gold);
  font-weight: 560;
}
.compare .check { color: var(--gold); }
.compare .cross { color: var(--text-muted); }

/* ---------- Pricing cards ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}
.price-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  position: relative;
}
.price-card:hover {
  border-color: var(--gold-muted);
  transform: translateY(-3px);
}
.price-card--featured {
  border-color: var(--gold);
  background: var(--beige);
}
.price-card--featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-card__name {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 8px;
}
.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.price-card__amount {
  font-family: var(--f-display);
  font-size: 42px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.02em;
}
.price-card__was {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-card__host {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.price-card ul {
  flex: 1;
  margin-bottom: 28px;
}
.price-card li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 10px;
  line-height: 1.45;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}
.price-card .btn { margin-top: auto; }

.preview-card {
  background: var(--black);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 800px) {
  .preview-card { grid-template-columns: 1fr; }
}
.preview-card h3 {
  font-family: var(--f-display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 500;
  margin-bottom: 12px;
}
.preview-card p {
  color: rgba(246, 242, 233, 0.75);
  margin-bottom: 20px;
  font-size: 16px;
}
.preview-card ul {
  display: grid;
  gap: 8px;
}
.preview-card li {
  font-size: 14px;
  color: rgba(246, 242, 233, 0.85);
  padding-left: 18px;
  position: relative;
}
.preview-card li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gold-light);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--black);
  color: var(--ivory);
  text-align: center;
  padding-block: clamp(72px, 10vw, 120px);
}
.cta-band .eyebrow { color: var(--gold-light); margin-bottom: 16px; }
.cta-band h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 500;
  margin-bottom: 18px;
  max-width: 16em;
  margin-inline: auto;
}
.cta-band p {
  color: rgba(246, 242, 233, 0.72);
  max-width: 32em;
  margin-inline: auto;
  margin-bottom: 36px;
  font-size: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--ivory);
  padding-block: 64px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
  filter: invert(1) brightness(0.95);
}
.footer-brand p {
  font-size: 14px;
  color: rgba(246, 242, 233, 0.65);
  max-width: 26em;
  line-height: 1.55;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(246, 242, 233, 0.75);
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ivory); }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(246, 242, 233, 0.12);
  font-size: 13px;
  color: rgba(246, 242, 233, 0.5);
}
.footer-bottom a { color: rgba(246, 242, 233, 0.55); }
.footer-bottom a:hover { color: var(--ivory); }

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}
.contact-info h1 {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 500;
  margin-bottom: 16px;
}
.contact-info .lead { margin-bottom: 32px; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.contact-detail {
  margin-bottom: 20px;
}
.contact-detail dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-detail dd {
  font-size: 17px;
}
.contact-detail a:hover { color: var(--gold); }

.form-card {
  background: var(--beige);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.form-card h2 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-card .form-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--text-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea {
  min-height: 110px;
  resize: vertical;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23856832' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-status {
  margin-top: 16px;
  font-size: 14px;
  color: var(--gold);
  display: none;
}
.form-status.is-visible { display: block; }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 720px;
  margin-inline: auto;
  padding-block: calc(var(--header-h) + 48px) 80px;
}
.legal h1 {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 500;
  margin-bottom: 12px;
}
.legal .effective {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.legal h2 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 500;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--black);
}
.legal p, .legal li {
  color: var(--text-2);
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.7;
}
.legal ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 16px;
}
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .intro, .hero .eyebrow, .hero h1, .hero .lead, .hero .hero-note, .hero .btn-row {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

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

/* Page hero (inner pages) */
.page-hero {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 48px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 500;
  margin-bottom: 14px;
}
.page-hero p {
  color: var(--text-2);
  max-width: 32em;
  margin-inline: auto;
  font-size: 18px;
}

/* ==========================================================================
   Enhanced components matching reference patterns (brand colors)
   ========================================================================== */

/* Hero waves (animated, gold-tinted on ivory) */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero__waves svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero__inner { position: relative; z-index: 2; }

/* Problem flow cards (search / website / competitor) */
.flow-card {
  background: var(--beige);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  max-width: 420px;
  margin-inline: auto;
  box-shadow: 0 12px 40px -16px rgba(23,22,21,0.12);
}
.flow-step {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 18px 16px;
  border-radius: 12px;
  position: relative;
}
.flow-step + .flow-step {
  margin-top: 4px;
}
.flow-step__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ivory);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gold);
}
.flow-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}
.flow-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.flow-step__status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.flow-step--ok .flow-step__status {
  background: #E8F0E4;
  color: #3D6B35;
}
.flow-step--warn .flow-step__status {
  background: #F5EDE0;
  color: #856832;
}
.flow-step--bad {
  background: #F5E8E6;
  border: 1px solid #E8C8C4;
}
.flow-step--bad .flow-step__icon {
  background: #F0D8D4;
  border-color: #E0B0A8;
  color: #A84840;
}
.flow-step--bad h3 { color: #8B3A34; }
.flow-step--bad .flow-step__status {
  background: #E8C0BA;
  color: #8B3A34;
}
.flow-connector {
  width: 2px;
  height: 12px;
  background: var(--line);
  margin-left: 35px;
}

/* Auto-scrolling portfolio strip */
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  margin-block: 32px;
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-card {
  width: min(78vw, 340px);
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--beige);
  box-shadow: 0 8px 28px -12px rgba(23,22,21,0.15);
}
.marquee-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.marquee-card__label {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Comparison metric cards (price / time / hosting) */
.metric-grid {
  display: grid;
  gap: 20px;
  max-width: 520px;
  margin-inline: auto;
}
.metric-card {
  background: var(--beige);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px 20px;
}
.metric-card--us {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.metric-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}
.metric-card__label--muted {
  color: var(--text-muted);
  font-weight: 500;
}
.metric-card__value {
  font-family: var(--f-display);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.metric-card__sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.metric-bar {
  height: 6px;
  background: var(--line-soft);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.metric-bar__fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
}
.metric-bar__fill--agency {
  background: var(--taupe);
}
.metric-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}
.metric-section-title {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 36px 0 16px;
}

/* Free preview highlight card */
.preview-highlight {
  background: var(--black);
  color: var(--ivory);
  border-radius: 20px;
  padding: 36px 28px;
  max-width: 420px;
  margin-inline: auto;
  text-align: center;
}
.preview-highlight h3 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 8px;
}
.preview-highlight > p {
  color: rgba(246,242,233,0.7);
  font-size: 15px;
  margin-bottom: 16px;
}
.preview-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(166,139,75,0.5);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.preview-list {
  text-align: left;
  margin: 0 auto 28px;
  max-width: 280px;
}
.preview-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(246,242,233,0.9);
  margin-bottom: 12px;
}
.preview-list li::before {
  content: "✓";
  color: var(--gold-light);
  font-weight: 700;
  flex-shrink: 0;
}
.preview-note {
  font-size: 12px;
  color: rgba(246,242,233,0.5);
  margin-top: 16px;
}

/* Horizontal scrolling price packages */
.price-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 24px;
  margin: 0 calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
}
.price-scroll .price-card {
  min-width: min(300px, 85vw);
  scroll-snap-align: center;
  flex-shrink: 0;
}
.price-scroll::-webkit-scrollbar { height: 4px; }
.price-scroll::-webkit-scrollbar-thumb { background: var(--gold-muted); border-radius: 4px; }

/* Contact action list (phone / text / email) */
.contact-actions-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 28px;
}
.contact-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  color: var(--black);
  transition: color 0.2s;
}
.contact-action:last-child { border-bottom: none; }
.contact-action:hover { color: var(--gold); }
.contact-action__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--beige);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.contact-action span { font-weight: 500; }

/* Mobile menu contact block */
.mobile-menu__contact {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.mobile-menu__contact p {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.mobile-menu__contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: none;
  color: var(--black);
}

/* Portfolio cards uniform size */
.marquee-card {
  width: min(82vw, 360px);
}
.marquee-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
}

/* Footer logo — never invert */
.footer-brand img {
  filter: none !important;
  height: 36px;
  background: var(--ivory);
  padding: 8px 12px;
  border-radius: 4px;
}

/* Professional contact icons (SVG-friendly) */
.icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.contact-action__icon,
.mobile-menu__contact a .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--beige);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.mobile-menu__contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-body) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  padding: 12px 0 !important;
  border-bottom: none !important;
  color: var(--black) !important;
}


/* hero mobile tighten */
@media (max-width: 700px) {
  .hero {
    min-height: auto;
    padding-block: calc(var(--header-h) + 12px) 48px;
  }
  .hero h1 {
    font-size: clamp(34px, 9vw, 48px);
  }
  .hero__waves {
    opacity: 0.7;
  }
}

/* Bigger, more visible waves */
.hero__waves {
  opacity: 0.85;
}
.hero__waves svg {
  height: 55%;
  min-height: 280px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}


/* intro logo larger */

@media (min-width: 700px) {
  
}

/* Tighter homepage top — kill extra space */
.hero {
  min-height: auto !important;
  padding-top: calc(var(--header-h) + 8px) !important;
  padding-bottom: 40px !important;
}
@media (min-width: 900px) {
  .hero {
    min-height: calc(100svh - var(--header-h)) !important;
    padding-top: calc(var(--header-h) + 24px) !important;
    padding-bottom: 64px !important;
    display: flex;
    align-items: center;
  }
  .hero__inner {
    padding-top: 0;
  }
}
@media (max-width: 700px) {
  .hero {
    padding-top: calc(var(--header-h) + 4px) !important;
    padding-bottom: 36px !important;
  }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero h1 { margin-bottom: 12px; }
  .hero .lead { margin-bottom: 12px; }
  .hero-note { margin-bottom: 20px; }
}

/* Desktop nav — keep buttons clean, not cramped */
@media (min-width: 900px) {
  .nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
  }
  .nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .nav-toggle { display: none; }
  .nav {
    gap: 24px;
  }
}
@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
}


/* ========== LOGO SIZES (final, do not override) ========== */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.brand img {
  height: 56px !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
  object-fit: contain !important;
}
@media (min-width: 900px) {
  .brand img {
    height: 64px !important;
  }
}

/* Header height must fit the larger logo */
:root {
  --header-h: 72px;
}
@media (min-width: 900px) {
  :root {
    --header-h: 80px;
  }
}
.site-header .nav {
  min-height: var(--header-h);
  padding-block: 10px;
}

/* Intro / startup logo — much larger */
.intro__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro__logo img {
  height: 110px !important;
  width: auto !important;
  max-width: 90vw !important;
  display: block !important;
  object-fit: contain !important;
}
@media (min-width: 700px) {
  .intro__logo img {
    height: 140px !important;
    max-width: 520px !important;
  }
}
