/* ────────────────────────────────────────────────────────
   SAVINRA ENTERPRISE — STYLES
   ─────────────────────────────────────────────────────── */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #142c6e;
  --blue:        #2354a8;
  --sky:         #4d90d4;
  --light-sky:   #a8d8f8;
  --coral:       #d05a5a;
  --coral-light: #e87878;

  --white:       #ffffff;
  --off-white:   #f8f8f6;
  --cream:       #f4f2ee;
  --border:      #e4e2de;
  --border-soft: #eeede9;

  --ink:         #1a1a1a;
  --ink-2:       #3a3a3a;
  --muted:       #6a6a6a;
  --lighter:     #999;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, -apple-system, sans-serif;

  --max-w: 1160px;
  --section-pad: 6rem 2rem;
  --radius: 4px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Section helpers ── */
.section { padding: var(--section-pad); }

.section-label {
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
h2 em { font-style: italic; font-weight: 400; color: var(--blue); }

.section-intro {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 3.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .22s, color .22s, border-color .22s, box-shadow .22s;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 4px 18px rgba(20,44,110,.28);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }


/* ════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border), 0 2px 16px rgba(0,0,0,.04);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Colour bar below header */
.header-bar {
  display: flex;
  height: 3px;
}
.header-bar span { flex: 1; }
.bar-navy  { background: var(--navy); }
.bar-blue  { background: var(--blue); }
.bar-sky   { background: var(--sky); }
.bar-coral { background: var(--coral); }

/* Brand */
.brand { flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; display: block; }

/* Nav */
.nav { display: flex; align-items: center; gap: 2rem; }

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
  position: relative;
  transition: color .2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: .55rem 1.25rem;
  border-radius: var(--radius);
  letter-spacing: .06em;
  font-weight: 600;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--blue); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}


/* ════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #f4f2ef 0%, #ffffff 55%, #edf4fc 100%);
  padding: 4rem 2rem 3rem;
  overflow: visible;
  min-height: 75vh;
  display: flex;
  align-items: center;
}

/* Faint watermark circle */
.hero-bg-mark {
  position: absolute;
  right: -12vw;
  top: 50%;
  transform: translateY(-50%);
  width: 65vw;
  height: 65vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  border: 1.5px solid rgba(35,84,168,.07);
  pointer-events: none;
}
.hero-bg-mark::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1.5px solid rgba(35,84,168,.06);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
}

.hero-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.25rem;
}

.hero-text h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.hero-text h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-logo-block {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.hero-logo {
  width: clamp(320px, 40vw, 520px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 6px 28px rgba(20,44,110,.12));
}


/* ════════════════════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--navy);
  padding: 2.25rem 2rem;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  color: var(--white);
}
.stat-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-num sup {
  font-size: 1.1rem;
  vertical-align: super;
  color: var(--light-sky);
}
.stat-label {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: .35rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}


/* ════════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════════ */
.about { background: var(--white); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 5rem;
  align-items: start;
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--off-white);
  transition: box-shadow .2s;
}
.pillar:hover { box-shadow: var(--shadow-md); }

.pillar-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar-icon--navy  { background: rgba(20,44,110,.08); color: var(--navy); }
.pillar-icon--blue  { background: rgba(35,84,168,.1);  color: var(--blue); }
.pillar-icon--coral { background: rgba(208,90,90,.1);  color: var(--coral); }

.pillar h3 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .35rem;
}
.pillar p { font-size: .9rem; color: var(--muted); line-height: 1.65; }


/* ════════════════════════════════════════════════════════
   PRODUCTS
   ════════════════════════════════════════════════════════ */
.products-section { background: var(--off-white); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.products-grid--3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.product-card-accent--1 { background: var(--navy); }
.product-card-accent--2 { background: var(--blue); }
.product-card-accent--3 { background: var(--sky); }
.product-card-accent--4 { background: var(--coral); }

.product-card-icon {
  width: 44px;
  height: 44px;
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.product-card-icon svg { width: 100%; height: 100%; }

.product-card h3 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .6rem;
}
.product-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
}


/* ════════════════════════════════════════════════════════
   WHY US
   ════════════════════════════════════════════════════════ */
.why-section {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: .5rem;
}
.why-list li {
  display: flex;
  gap: .9rem;
  font-size: .95rem;
  color: var(--ink-2);
  line-height: 1.7;
}
.why-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .25rem;
  font-weight: 700;
}

.why-quote {
  background: var(--cream);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
  margin-bottom: 2rem;
}
.why-quote p {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.why-quote cite {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .04em;
  font-style: normal;
}


/* ════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════ */
.contact-section { background: var(--off-white); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-text p {
  font-size: .98rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: .75rem;
}

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}
.form-field label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: .4rem;
}
.form-field input,
.form-field textarea {
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--off-white);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(35,84,168,.1);
}
.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-status {
  min-height: 1.5rem;
  font-size: .9rem;
  text-align: center;
  margin-top: .75rem;
  border-radius: var(--radius);
  padding: .25rem;
}
.form-status.success {
  background: #edf8f0;
  color: #2a7c44;
  padding: .75rem;
}
.form-status.error {
  background: #fef2f2;
  color: var(--coral);
  padding: .75rem;
}


/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
  padding: 2.5rem 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: .85rem; }


/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  /* Nav collapse */
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: .25rem;
  }
  .nav.open { display: flex; }
  .nav-link { padding: .65rem 0; color: var(--ink-2); font-size: 1rem; }
  .nav-cta { text-align: center; margin-top: .5rem; padding: .75rem; }
  .header { position: relative; }

  /* Hero */
  .hero {
    padding: 4rem 2rem;
    min-height: auto;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-logo-block { display: none; }
  .hero-text h1 { font-size: clamp(2rem, 7vw, 3rem); }

  /* Layouts */
  .about-layout,
  .why-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .stat-divider { display: none; }
}

@media (max-width: 600px) {
  :root { --section-pad: 4rem 1.5rem; }

  .container { padding: 0 1.5rem; }
  .products-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  h2 { font-size: 1.75rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }

  .stats-inner { gap: 1.5rem; justify-content: center; }
  .stat-num { font-size: 1.75rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
