/* styles.css */
/* ===== VARIABLES ===== */
:root {
  --bg: #fcfdff;
  --bg-alt: #f2efe9;
  --panel: #ded9cc;
  --panel-hover: #f7f5f2;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: rgba(0, 0, 0, .08);
  --accent: #3d3d3d;
  --accent-hover: #2a2a2a;
  --accent-glow: rgba(0, 0, 0, .08);
  --shadow: 0 8px 32px rgba(0, 0, 0, .06);
  --radius: 16px;
}


/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; }

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

/* Ensure anchor links land below the sticky header */
#services, #stack, #testimonials, #contact { scroll-margin-top: 96px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 20px;
  top: 20px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  z-index: 9999;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f2efe9;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 52px;
  height: 52px;
}

.brand-name {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .1px;
}
.brand-tag {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .25s, background .25s;
}
.nav a:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, .04);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  transition: background .2s;
}
.menu-toggle:hover {
  background: rgba(0, 0, 0, .04);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: all .3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .2);
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ===== SECTIONS ===== */
.section {
  padding: 52px 0;
}
.section.alt{
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}


.section-head {
  margin-bottom: 16px;
}
.section-head.center {
  text-align: center;
}
.section-sub {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.7;
}
.section-head.center .section-sub {
  margin: 0 auto;
}

/* ===== HERO ===== */
.hero {
  padding: 86px 0 38px;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .03) 0%, transparent 70%);
  pointer-events: none;
  opacity: .5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 54ch;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 32px;
}

/* Feature chips */
.quick-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.qp {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  transition: border-color .3s, transform .3s;
}
.qp:hover {
  border-color: rgba(0, 0, 0, .15);
  transform: translateY(-2px);
}
.qp-title {
  font-weight: 700;
  font-size: 14px;
}
.qp-text {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

/* Hero card */
.hero-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.card-title {
  font-size: 18px;
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--ink);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.checklist li {
  margin: 12px 0;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
}
.checklist li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 13px;
}

.card-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.mini {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ===== SERVICE CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.card:hover::before {
  transform: scaleX(1);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, .12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .08);
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
}
.card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.bullets li {
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== STACK GRID ===== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.stack-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, .12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.stack-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .08);
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quote {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform .3s, border-color .3s;
}
.quote:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 0, 0, .12);
}
.quote-icon {
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 14px;
  opacity: .6;
}
blockquote {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
figcaption {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
figcaption span {
  color: var(--muted);
  font-weight: 400;
}

/* ===== CONTACT + FORM ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 16px;
  align-items: start;
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.contact-line {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}
.contact-line a {
  color: var(--ink);
  font-weight: 500;
  transition: opacity .2s;
}
.contact-line a:hover {
  opacity: .8;
}

.small-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.mini-card {
  margin-top: 16px;
  background: rgba(0, 0, 0, .03);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  padding: 16px;
}

.mini-title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 14px;
}
.mini-text {
  color: var(--muted);
  font-size: 13px;
}

/* Zoho form embed */
.form-embed{
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.form-embed iframe{
  width: 100%;
  height: 780px;
  border: 0;
  display: block;
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 0 48px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.footer-brand {
  font-weight: 700;
  font-size: 15px;
}
.footer-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color .2s;
}
.footer-links a:hover {
  color: var(--ink);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal-group.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-group.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-group.visible > *:nth-child(2) { transition-delay: .1s; }
.reveal-group.visible > *:nth-child(3) { transition-delay: .2s; }
.reveal-group.visible > *:nth-child(4) { transition-delay: .3s; }
.reveal-group.visible > *:nth-child(5) { transition-delay: .4s; }
.reveal-group.visible > *:nth-child(6) { transition-delay: .5s; }
.reveal-group.visible > *:nth-child(7) { transition-delay: .6s; }
.reveal-group.visible > *:nth-child(8) { transition-delay: .7s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .quick-points { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    gap: 4px;
  }
  .nav.open a {
    padding: 12px 16px;
    font-size: 16px;
  }
  .menu-toggle { display: block; }

  /* keep the Request support button visible on mobile */
  .header-inner .btn { display: inline-flex; }

  .hero { padding: 60px 0 40px; }
  .section { padding: 60px 0; }
  .cards { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .brand { min-width: auto; }
  .quick-points { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
  .stack-grid { grid-template-columns: 1fr; }
}
.inline-link{
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s ease;
}

.inline-link:hover{
  opacity: .75;
}
