/* =========================================================
   Valley Web Design — shared stylesheet
   Style: Modern Gradient / Glassmorphism
   Palette: Indigo (#6366F1) + Emerald (#059669)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --indigo-50:  #F5F3FF;
  --indigo-100: #EBEAFE;
  --indigo-200: #E0E7FF;
  --indigo-400: #818CF8;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --indigo-700: #4338CA;

  --emerald-400: #34D399;
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-700: #047857;

  /* Semantic */
  --primary: var(--indigo-600);
  --primary-hover: var(--indigo-700);
  --accent: var(--emerald-600);
  --accent-hover: var(--emerald-700);

  --bg: #E7E6F2;
  --bg-tint: #EEEDF8;
  --fg: #1E1B4B;          /* deep indigo ink */
  --fg-soft: #475569;
  --muted: #64748B;
  --border: #E4E4F4;
  --ring: var(--indigo-500);

  /* Glass surfaces */
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 18px 40px -18px rgba(67, 56, 202, 0.28);
  --card-shadow: 0 10px 30px -16px rgba(30, 27, 75, 0.20);

  /* Type */
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing rhythm (4/8) */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --maxw: 1180px;

  --t-fast: 160ms;
  --t-med: 240ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient gradient backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(99,102,241,0.18), transparent 60%),
    radial-gradient(800px 620px at 92% 4%, rgba(16,185,129,0.14), transparent 55%),
    radial-gradient(700px 700px at 78% 96%, rgba(129,140,248,0.12), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; color: var(--fg); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section-tint { background: linear-gradient(180deg, transparent, rgba(245,243,255,0.7) 30%, rgba(245,243,255,0.7) 70%, transparent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary);
  background: var(--indigo-50);
  border: 1px solid var(--indigo-200);
  padding: 6px 14px; border-radius: 999px;
}
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-top: 18px; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-top: 14px; }

.grad-text {
  background: linear-gradient(100deg, var(--indigo-600), var(--emerald-600));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  padding: 13px 24px; border-radius: var(--r-md); border: 1px solid transparent;
  min-height: 48px; line-height: 1;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), background var(--t-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--indigo-600), var(--indigo-500));
  box-shadow: 0 12px 24px -10px rgba(79,70,229,0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -10px rgba(79,70,229,0.65); }
.btn-accent {
  color: #fff;
  background: linear-gradient(120deg, var(--emerald-600), var(--emerald-500));
  box-shadow: 0 12px 24px -10px rgba(5,150,105,0.55);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -10px rgba(5,150,105,0.6); }
.btn-ghost {
  background: var(--glass-bg-strong); color: var(--fg);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--indigo-200); box-shadow: var(--card-shadow); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; min-height: 54px; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

/* ---------- Glass card ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--glass-shadow);
  border-radius: var(--r-lg);
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: 12px 0;
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.nav.scrolled { background: rgba(231,230,242,0.82); backdrop-filter: blur(16px); box-shadow: 0 1px 0 rgba(210,208,228,0.9); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; }
.brand .logo {
  width: 48px; height: 36px; display: grid; place-items: center; flex: none;
}
.brand .logo svg { width: 48px; height: 36px; }
.brand small { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.62rem; color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-weight: 500; font-size: 0.95rem; color: var(--fg-soft);
  padding: 9px 14px; border-radius: 10px; transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--primary); background: var(--indigo-50); }
.nav-links a.active { color: var(--primary); background: var(--indigo-50); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; background: var(--glass-bg-strong); border: 1px solid var(--border); border-radius: 11px; width: 46px; height: 46px; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(231,230,242,0.97); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 12px; box-shadow: var(--glass-shadow);
    transform-origin: top; transform: scaleY(0.6); opacity: 0; pointer-events: none;
    transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
  }
  .nav-links.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; }
  .nav-toggle { display: grid; }
  .nav-cta .btn:not(.nav-toggle) { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 9vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--fg-soft); margin-top: 22px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; }
.hero-trust .stat .num { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--fg); }
.hero-trust .stat .lbl { font-size: 0.86rem; color: var(--muted); }

.hero-visual { position: relative; min-height: 360px; }
.hero-card { padding: 24px; position: absolute; }
.hero-card .row { display: flex; align-items: center; gap: 12px; }
.hero-card .dot { width: 11px; height: 11px; border-radius: 50%; }
.hero-card.main { inset: 24px 0 24px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.browser-bar { display: flex; gap: 7px; margin-bottom: 18px; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.bar { height: 11px; border-radius: 6px; background: var(--indigo-100); }
.bar.lg { width: 78%; background: linear-gradient(90deg, var(--indigo-400), var(--emerald-400)); height: 16px; }
.bar.md { width: 60%; }
.bar.sm { width: 42%; }
.metric-pill {
  position: absolute; right: -6px; bottom: 28px;
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.metric-pill .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700)); color: #fff; }
.metric-pill .ic svg { width: 22px; height: 22px; }
.metric-pill .big { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.metric-pill .small { font-size: 0.78rem; color: var(--muted); }
.float-pill {
  position: absolute; top: 8px; right: 4px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem;
}
.float-pill .dotg { width: 10px; height: 10px; border-radius: 50%; background: var(--emerald-500); box-shadow: 0 0 0 4px rgba(16,185,129,0.18); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; order: -1; }
}

/* ---------- Logo strip ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 54px); opacity: 0.8; }
.logos span { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--muted); letter-spacing: -0.01em; }

/* ---------- Service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  padding: 30px; position: relative; overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(67,56,202,0.4); }
.card .ic-box {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--indigo-50), #fff); border: 1px solid var(--indigo-200);
}
.card .ic-box svg { width: 27px; height: 27px; color: var(--primary); }
.card.accent .ic-box { background: linear-gradient(135deg, #ECFDF5, #fff); border-color: #A7F3D0; }
.card.accent .ic-box svg { color: var(--accent); }
.card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .feat { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; }
.card .feat li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: var(--fg-soft); }
.card .feat li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.card .link { margin-top: 22px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; color: var(--primary); }
.card .link svg { width: 17px; height: 17px; transition: transform var(--t-fast); }
.card:hover .link svg { transform: translateX(4px); }

/* ---------- Competitive price statement ---------- */
.price-statement { position: relative; }
.price-statement .panel {
  padding: clamp(34px, 5vw, 60px);
  background: linear-gradient(125deg, var(--indigo-700), var(--indigo-600) 45%, var(--emerald-600));
  border-radius: var(--r-xl); color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(67,56,202,0.6);
}
.price-statement .panel::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% -20%, rgba(255,255,255,0.22), transparent 60%);
  pointer-events: none;
}
.price-statement .eyebrow { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.3); color: #fff; }
.price-statement h2 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); position: relative; }
.price-statement p { color: rgba(255,255,255,0.86); font-size: 1.1rem; max-width: 620px; margin-top: 18px; position: relative; }
.price-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; position: relative; }
.price-points .pt { padding: 22px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-md); backdrop-filter: blur(6px); }
.price-points .pt svg { width: 26px; height: 26px; color: #fff; margin-bottom: 12px; }
.price-points .pt h4 { color: #fff; font-size: 1.08rem; margin-bottom: 6px; }
.price-points .pt p { color: rgba(255,255,255,0.82); font-size: 0.93rem; margin-top: 0; }
@media (max-width: 760px) { .price-points { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.t-card { padding: 28px; display: flex; flex-direction: column; gap: 18px; height: 100%; }
.t-card .quote-mark { font-family: var(--font-head); font-size: 3rem; line-height: 0.6; color: var(--indigo-200); height: 24px; }
.t-card .stars { display: flex; gap: 3px; }
.t-card .stars svg { width: 18px; height: 18px; color: #F59E0B; }
.t-card blockquote { font-size: 1.04rem; color: var(--fg-soft); line-height: 1.65; }
.t-card .who { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.t-card .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; }
.t-card .who .name { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; }
.t-card .who .role { display: block; font-size: 0.84rem; color: var(--muted); }

/* ---------- CTA band (request a quote) ---------- */
.cta-band .inner {
  padding: clamp(34px, 5vw, 56px); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.cta-band p { color: var(--muted); font-size: 1.08rem; max-width: 560px; }
.cta-band .hero-actions { justify-content: center; margin-top: 6px; }

/* ---------- Pricing tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 940px) { .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.tier { padding: 32px; display: flex; flex-direction: column; position: relative; }
.tier.featured { border: 1.5px solid var(--indigo-400); box-shadow: 0 30px 60px -26px rgba(79,70,229,0.5); }
.tier .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(120deg, var(--indigo-600), var(--emerald-600)); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.tier h3 { font-size: 1.3rem; }
.tier .tagline { color: var(--muted); font-size: 0.92rem; margin-top: 4px; min-height: 40px; }
.tier .price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.tier .price .amt { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; }
.tier .price .per { color: var(--muted); font-size: 0.95rem; }
.tier .setup { font-size: 0.85rem; color: var(--muted); }
.tier .feat { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.tier .feat li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--fg-soft); }
.tier .feat li svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 1px; }
.tier .btn { margin-top: auto; width: 100%; }

/* ---------- Forms (schedule / quote) ---------- */
.form-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
@media (max-width: 940px) { .form-grid { grid-template-columns: 1fr; } }
.form-card { padding: clamp(26px, 4vw, 40px); }
.field { margin-bottom: 20px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
@media (max-width: 560px) { .field.row2 { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--fg);
  background: rgba(255,255,255,0.85); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 13px 14px; min-height: 48px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--indigo-400); box-shadow: 0 0 0 4px rgba(99,102,241,0.16);
}
.field .help { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.field .err { font-size: 0.82rem; color: #DC2626; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #DC2626; }
.field.invalid .err { display: block; }
.form-aside { padding: clamp(26px, 4vw, 36px); }
.form-aside h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form-aside > p { color: var(--muted); font-size: 0.97rem; margin-bottom: 22px; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--indigo-50); border: 1px solid var(--indigo-200); flex: none; }
.contact-list .ic svg { width: 21px; height: 21px; color: var(--primary); }
.contact-list .k { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }
.contact-list .v { color: var(--muted); font-size: 0.92rem; }

/* Form success */
.form-success { display: none; text-align: center; padding: clamp(30px, 5vw, 50px); }
.form-success.show { display: block; animation: pop var(--t-med) var(--ease); }
.form-success .check { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700)); box-shadow: 0 16px 30px -12px rgba(5,150,105,0.6); }
.form-success .check svg { width: 40px; height: 40px; color: #fff; }
.form-success h3 { font-size: 1.6rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); max-width: 420px; margin: 0 auto 22px; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

/* Page header (interior pages) */
.page-head { padding-block: clamp(48px, 7vw, 80px) clamp(8px, 3vw, 24px); text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 16px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin: 16px auto 0; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(40px, 7vw, 80px); padding-block: 54px 30px; background: linear-gradient(180deg, transparent, rgba(67,56,202,0.05)); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer h4 { font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer .col p { color: var(--muted); font-size: 0.92rem; margin-top: 14px; max-width: 280px; }
.footer .col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer .col a { color: var(--fg-soft); font-size: 0.93rem; }
.footer .col a:hover { color: var(--primary); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.86rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
