/* BW Services and Development
   Matches the offer sheet: ocean teal accent, Space Grotesk headings, Inter body. */

:root {
  --ground: #FAF8F3;
  --white: #FFFFFF;
  --tint: #EEF5F3;
  --ink: #13201F;
  --ink-soft: #3F4A49;
  --teal: #0E6E6A;
  --teal-dark: #0A4F4C;
  --teal-soft: #E4EFEC;
  --line: #D6DCD9;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(19, 32, 31, 0.08);

  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

section[id] { scroll-margin-top: 72px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand-sub { font-size: 0.8rem; color: var(--ink-soft); }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
}

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

.site-nav .nav-cta {
  background: var(--teal);
  color: var(--white);
  padding: 0 1.1rem;
  border-radius: 999px;
}

.site-nav .nav-cta:hover { background: var(--teal-dark); color: var(--white); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

/* Buttons */
.btn {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }

.btn-ghost { background: var(--white); color: var(--teal); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

.btn-light { background: var(--white); color: var(--teal-dark); }
.btn-light:hover { background: var(--teal-soft); color: var(--teal-dark); }

.btn-block { width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.5rem; }

/* Hero */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(55% 70% at 100% 0%, var(--teal-soft) 0%, transparent 70%),
    var(--ground);
}

.hero h1 { max-width: 50rem; }

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

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-points li { display: flex; align-items: center; gap: 0.5rem; }

.hero-points li::before,
.plan-list li::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%230E6E6A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Sections */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-tint { background: var(--tint); }

.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.section-head p:last-child { color: var(--ink-soft); }

/* Service cards */
.card-grid,
.plan-list,
.steps,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.card,
.pay-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.card p,
.pay-card p { color: var(--ink-soft); margin: 0; }

.card-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
  margin-bottom: 1rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem 1.6rem;
}

.plan-featured {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow);
}

.plan-badge {
  position: absolute;
  top: -0.85rem;
  left: 1.6rem;
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.plan-name { margin: 0; font-size: 1.4rem; }

.plan-price { margin: 0; display: flex; align-items: baseline; gap: 0.35rem; }
.plan-price .amount { font-family: var(--font-display); font-weight: 700; font-size: 2.8rem; line-height: 1; }
.plan-price .per,
.plan-price .from { color: var(--ink-soft); font-weight: 600; }
.plan-featured .plan-price .per { color: #E6F2F0; }

.plan-setup { margin: 0; font-size: 0.9rem; color: var(--ink-soft); min-height: 2.6em; }
.plan-featured .plan-setup { color: #E6F2F0; }

.plan-list {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 0 1.25rem;
  margin-bottom: auto;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
}

.plan-featured .plan-list { border-top-color: rgba(255, 255, 255, 0.3); }

.plan-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.plan-list li::before { margin-top: 0.2rem; }

.plan-featured .plan-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.fine-print { margin: 1.5rem 0 0; font-size: 0.9rem; color: var(--ink-soft); text-align: center; }

.callout {
  margin: 2rem auto 0;
  max-width: 40rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.5rem 1.75rem;
  text-align: center;
}

.callout p { margin: 0; color: var(--ink-soft); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: none;
}

.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}

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

.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

/* Payments */
.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.billing-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
  margin: 2.25rem 0 0;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.billing-details dt { font-weight: 700; margin-bottom: 0.25rem; }
.billing-details dd { margin: 0; color: var(--ink-soft); }

/* About + contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-grid > div:first-child > p { color: var(--ink-soft); }

.contact-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-card h3 { font-size: 1.5rem; }

.contact-list { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }

.contact-list li { display: flex; flex-direction: column; }

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B9C6C3;
}

.contact-list a {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.contact-card .btn-primary { background: var(--teal); }
.contact-card .btn-primary:hover { background: #128581; }

.contact-intro { color: #C9D4D1; margin-bottom: 1.25rem; }

/* Contact form */
.contact-form { display: grid; gap: 1rem; }

.field { display: grid; gap: 0.35rem; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.field label { font-weight: 600; font-size: 0.95rem; color: #E6EEEC; }
.field .optional { font-weight: 400; color: #B9C6C3; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid #3A4A48;
  border-radius: 10px;
  background: #1D2C2A;
  color: var(--white);
  font: inherit;
  font-size: 1rem; /* 16px+ stops iOS from zooming on focus */
}

.field textarea { resize: vertical; min-height: 7rem; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23C9D4D1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #5FC2BC;
  box-shadow: 0 0 0 3px rgba(95, 194, 188, 0.3);
}

.field [aria-invalid="true"] { border-color: #F2A38F; }

.hp-field { display: none; }

.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status[data-state="success"] { color: #8FE0C8; }
.form-status[data-state="error"] { color: #F7B9A9; }

.contact-form button[disabled] { opacity: 0.7; cursor: progress; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.footer-inner p { margin: 0; }

.footer-inner nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }

.footer-inner nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
  .site-nav .nav-cta { justify-content: center; margin-top: 0.75rem; border-bottom: 0; }

  .pricing-grid,
  .steps,
  .pay-grid { grid-template-columns: 1fr; }

  .pricing-grid { gap: 2rem; max-width: 30rem; margin-inline: auto; }
  .plan-setup { min-height: 0; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .card-grid,
  .billing-details,
  .field-row { grid-template-columns: 1fr; }
  .contact-card { padding: 1.5rem; }
  .actions .btn { flex: 1 1 100%; }
  .lede { font-size: 1.1rem; }
}

@media (max-width: 360px) {
  h1 { font-size: 2.1rem; }
}

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