/* ==========================================================================
   WebEz — styles.css
   Mobile-first, lightweight, easy to edit.
   Brand colours and spacing live in the :root variables below.
   ========================================================================== */

:root {
  /* WebEz brand palette — the approachable teal-green from the original site */
  --brand-950: #0f403c;
  --brand-900: #14544f;
  --brand-700: #177d74;
  --brand-600: #2a9d92;
  --brand-100: #ddf0ee;
  --brand-50:  #f0f8f7;

  /* Restrained supporting accents */
  --gold-700:  #9a6215;
  --gold-500:  #e0a43a;
  --gold-100:  #fbf0d8;
  --sky-700:   #2477a8;
  --sky-100:   #e2f1fa;
  --coral-700: #b5523a;
  --coral-100: #fbe9e5;

  /* Cool, airy neutrals */
  --ink:       #111c33;
  --ink-soft:  #46536a;
  --ink-faint: #68758b;
  --line:      #e2e8e6;
  --paper:     #ffffff;
  --paper-tint:#f5f8f7;

  /* Type */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 72rem;
  --header-height: 4rem;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 64, 60, 0.05), 0 8px 24px rgba(15, 64, 60, 0.08);
  --shadow-lift: 0 2px 4px rgba(15, 64, 60, 0.06), 0 16px 40px rgba(15, 64, 60, 0.14);
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  /* Align anchored sections directly beneath the sticky header. */
  scroll-padding-top: calc(var(--header-height) + 1px);
}

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

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

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-700); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow { max-width: 52rem; }

/* ---------- Legal / policy pages ---------- */

.legal-page { padding-top: 2.5rem; }

.legal-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--brand-700);
}
.legal-back:hover { text-decoration: underline; }

.legal-page h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin-bottom: 0.4rem;
}

.legal-updated {
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.6rem;
}

.legal-page p,
.legal-page li { color: var(--ink-soft); }

.legal-page ul {
  padding-left: 1.2rem;
  margin: 0 0 1em;
}
.legal-page li { margin-bottom: 0.5rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-lg { padding: 0.9rem 1.9rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

.btn-primary {
  background: var(--brand-700);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-900);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--brand-700);
  border-color: var(--brand-700);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--brand-50);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-900);
  border-color: #c3d4d1;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--brand-700);
  background: #fff;
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--brand-900);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.65rem;
  filter: drop-shadow(0 4px 8px rgba(23, 125, 116, 0.18));
}

.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-name span { color: var(--brand-700); }

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Click-to-call pill, visible in the header on every screen */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand-700);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.header-phone:hover,
.header-phone:focus-visible { background: var(--brand-100); color: var(--brand-900); }
.header-phone svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }

/* On small phones collapse to a compact icon-only call button */
@media (max-width: 30rem) {
  .header-phone-num { display: none; }
  .header-phone { padding: 0.5rem; }
}

.site-nav {
  display: none; /* shown when toggled on mobile; row on desktop */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  padding: 0.75rem 1.25rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.site-nav a {
  padding: 0.6rem 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--brand-700); }

.site-nav .nav-cta {
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--brand-700);
  color: #fff;
  text-align: center;
}
.site-nav .nav-cta:hover { background: var(--brand-900); color: #fff; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.6rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

/* The hero artwork is intentionally right-weighted; a cool white scrim keeps
   the message crisp while allowing the new devices and studio scene to show. */
.hero {
  background:
    linear-gradient(180deg, rgba(250, 253, 252, 0.96), rgba(250, 253, 252, 0.91)),
    url("assets/webez-hero.jpg") 72% center / cover no-repeat;
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0 5rem;
}

.hero-copy { max-width: 41rem; }

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-700);
  margin-bottom: 1rem;
}

.hero h1 { color: var(--ink); }

.hero-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

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

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-points li::before {
  content: "";
  width: 0.72rem;
  height: 0.38rem;
  border-left: 2px solid var(--gold-500);
  border-bottom: 2px solid var(--gold-500);
  transform: translateY(-0.08rem) rotate(-45deg);
  flex-shrink: 0;
}

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }
.section-tint { background: var(--paper-tint); }

.section-head {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}

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

.section-sub { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-100);
  color: var(--brand-700);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }

/* Accent tints for icons — apply alongside .card-icon / .benefit-icon */
.icon-gold  { background: var(--gold-100); color: var(--gold-700); }
.icon-sky   { background: var(--sky-100); color: var(--sky-700); }
.icon-coral { background: var(--coral-100); color: var(--coral-700); }

.card-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.card-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-600);
  font-weight: 700;
}

/* ---------- Why choose us ---------- */

.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

/* Small colour bar above each feature heading, cycling through the palette */
.feature::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 1rem;
  background: var(--brand-600);
}
.feature:nth-child(4n+2)::before { background: var(--gold-500); }
.feature:nth-child(4n+3)::before { background: var(--sky-700); }
.feature:nth-child(4n+4)::before { background: var(--coral-700); }

/* ---------- Pricing ---------- */

.price-card { display: flex; flex-direction: column; }

.price-card .btn { margin-top: auto; }

.price-card-featured {
  border-color: var(--brand-600);
  box-shadow: var(--shadow-lift);
  position: relative;
}

.price-badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-700);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-range {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
}

.price-figure {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-900);
  margin-bottom: 0.6rem;
}

.price-period {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0;
}

/* Secondary heading within a section (e.g. plans below the build estimates) */
.section-head-sub {
  margin-top: 4rem;
}

.price-desc { color: var(--ink-soft); font-size: 0.95rem; }

.price-card .card-list { margin-bottom: 1.5rem; }

.pricing-note {
  max-width: 44rem;
  margin: 2.25rem auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  background: var(--gold-100);
  border: 1px solid #ecd9ad;
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
}

/* ---------- Process ---------- */

.process-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.process-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--brand-700);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.process-step:nth-child(2) .step-number { background: var(--gold-700); }
.process-step:nth-child(3) .step-number { background: var(--sky-700); }
.process-step:nth-child(4) .step-number { background: var(--coral-700); }
.process-step:nth-child(5) .step-number { background: var(--brand-900); }

.process-step h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.process-step p { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Benefits ---------- */

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

.benefit {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-100);
  color: var(--brand-700);
}
.benefit-icon svg { width: 1.35rem; height: 1.35rem; }

.benefit:nth-child(6n+2) .benefit-icon { background: var(--gold-100); color: var(--gold-700); }
.benefit:nth-child(6n+3) .benefit-icon { background: var(--sky-100);  color: var(--sky-700); }
.benefit:nth-child(6n+4) .benefit-icon { background: var(--coral-100); color: var(--coral-700); }
.benefit:nth-child(6n+5) .benefit-icon { background: var(--sky-100);  color: var(--sky-700); }
.benefit:nth-child(6n+6) .benefit-icon { background: var(--gold-100); color: var(--gold-700); }

.benefit h3 { font-size: 1.02rem; margin-bottom: 0.3em; }
.benefit p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 0.75rem; }

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-700);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item summary:hover { background: var(--brand-50); }

.faq-item p {
  padding: 0 1.4rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- Contact form ---------- */

.section-contact { background: var(--paper); }

.contact-phone {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.contact-phone a {
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.contact-phone a:hover { text-decoration: underline; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.1rem;
}

.form-field { display: flex; flex-direction: column; }
.form-field + .form-field { margin-top: 0; }
.contact-form > .form-field { margin-bottom: 1.1rem; }

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.form-field label span { color: var(--brand-700); }

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea { resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(42, 157, 146, 0.16);
}

.form-field .field-error { border-color: #c0392b; }

.form-status {
  min-height: 1.4em;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.form-status.is-error { color: #c0392b; }
.form-status.is-success { color: var(--brand-700); }

.form-note {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brand-950);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--brand-100);
}
.footer-brand .brand-mark { width: 2rem; height: 2rem; margin-top: 0.15rem; }

.footer-name { font-weight: 800; color: #fff; margin-bottom: 0.15rem; }
.footer-tagline { font-size: 0.92rem; color: rgba(255, 255, 255, 0.7); }

.footer-contact {
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.footer-contact a:hover { text-decoration: underline; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.footer-nav a:hover { color: #fff; }

.footer-legal {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================================
   Larger screens
   ========================================================================== */

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(5, 1fr); }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { align-items: stretch; }

  .hero {
    padding: 8rem 0 9rem;
    background:
      linear-gradient(90deg,
        rgba(250, 253, 252, 0.98) 0%,
        rgba(250, 253, 252, 0.94) 43%,
        rgba(250, 253, 252, 0.6) 62%,
        rgba(250, 253, 252, 0.08) 100%),
      url("assets/webez-hero.jpg") center / cover no-repeat;
  }

  /* Desktop navigation: inline row, hide hamburger */
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }
  .site-nav a { padding: 0; }
  .site-nav .nav-cta { margin-top: 0; padding: 0.55rem 1.2rem; }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .footer-legal { width: 100%; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.25rem; margin: 0; }
}
