/* ============================================================================
   PT. JIWANA KARYA MANDIRI — Design System
   Mobile-first responsive stylesheet. Brand colors: Tosca green + Navy blue.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---------------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --tosca:        #0F9B8E;
  --tosca-dark:   #0B7A70;
  --tosca-darker: #075E56;
  --tosca-light:  #E4F5F3;
  --tosca-tint:   #F0FAF9;

  --navy:         #0B2C4D;
  --navy-dark:    #071D33;
  --navy-light:   #123A63;
  --navy-tint:    #EBF1F7;

  --white:        #FFFFFF;
  --offwhite:     #F7FAF9;
  --ink:          #1B2A33;
  --ink-muted:    #5C6B74;
  --border:       #E1EAE8;

  --whatsapp:     #25D366;
  --whatsapp-dark:#1DA851;
  --warn:         #E8B339;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 45%, var(--tosca-dark) 100%);
  --gradient-tosca: linear-gradient(135deg, var(--tosca) 0%, var(--tosca-dark) 100%);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(11, 44, 77, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 44, 77, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 44, 77, 0.16);
  --header-height: 76px;
}

/* ---------------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.2; font-weight: 700; }
input, textarea, select { font: inherit; color: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--navy); color: var(--white); padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

section { padding-block: 64px; }
@media (min-width: 1024px) { section { padding-block: 96px; } }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tosca-dark); background: var(--tosca-light);
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.section-title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 14px; }
.section-desc { color: var(--ink-muted); font-size: 1.05rem; }

/* ---------------------------------------------------------------------------
   3. Buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--tosca); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--tosca-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------------------------------------------------------------------------
   4. Header / Navigation
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 0.95rem; color: var(--navy); }
.brand-tagline { font-size: 0.68rem; color: var(--tosca-dark); font-weight: 600; letter-spacing: 0.02em; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .2s ease; margin-inline: auto; }
.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); }

/* Mobile: compact "slide down" popup card anchored under the header, with a
   dimmed backdrop — not a full-screen takeover. Reset back to a normal
   horizontal inline nav at desktop widths (see media query below). */
.primary-nav {
  position: fixed; top: calc(var(--header-height) + 8px); left: 12px; right: 12px;
  max-height: calc(100vh - var(--header-height) - 24px);
  background: var(--white);
  padding: 14px; overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transform: translateY(-14px) scale(0.98);
  opacity: 0; visibility: hidden;
  transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s;
  display: flex; flex-direction: column; gap: 14px;
  z-index: 600;
}
.primary-nav.is-open {
  transform: translateY(0) scale(1);
  opacity: 1; visibility: visible;
  transition: transform .22s ease, opacity .22s ease, visibility 0s;
}
.primary-nav ul { display: flex; flex-direction: column; gap: 2px; }
.primary-nav a { display: block; padding: 14px 12px; border-radius: var(--radius-sm); font-weight: 600; color: var(--navy); }
.primary-nav a.is-active { color: var(--tosca-dark); background: var(--tosca-tint); }
.nav-cta { justify-content: center; }

.nav-backdrop {
  position: fixed; inset: 0; background: rgba(7,29,51,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
  z-index: 590;
}
.nav-backdrop.is-open {
  opacity: 1; visibility: visible;
  transition: opacity .22s ease, visibility 0s;
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-backdrop { display: none !important; }
  /* Also override .is-open explicitly — belt-and-braces in case the mobile
     popup was left open right as the viewport crosses this breakpoint
     (e.g. rotating a tablet), so desktop nav is never stuck invisible. */
  .primary-nav, .primary-nav.is-open {
    position: static; top: auto; left: auto; right: auto; max-height: none;
    transform: none; opacity: 1; visibility: visible; transition: none;
    padding: 0; border: none; box-shadow: none; border-radius: 0;
    flex-direction: row; align-items: center; gap: 28px; background: transparent;
  }
  .primary-nav ul { flex-direction: row; gap: 4px; }
  .primary-nav a { padding: 8px 4px; border-radius: 0; position: relative; }
  .primary-nav a::after {
    content: ''; position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px;
    background: var(--tosca); transform: scaleX(0); transition: transform .2s ease; transform-origin: left;
  }
  .primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
  .primary-nav a.is-active { color: var(--tosca-dark); background: transparent; }
}

/* ---------------------------------------------------------------------------
   5. Hero
   --------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient-brand); color: var(--white);
  padding-block: 56px 72px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08) 0, transparent 40%),
                     radial-gradient(circle at 85% 80%, rgba(15,155,142,0.35) 0, transparent 45%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--tosca-light);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: 7px 16px; border-radius: var(--radius-pill); margin-bottom: 20px;
}
.hero-title { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.4rem); color: var(--white); margin-bottom: 18px; }
.hero-title em { font-style: normal; color: var(--tosca-light); }
.hero-desc { font-size: 1.08rem; color: rgba(255,255,255,0.85); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 480px; }
.hero-stat-num { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.hero-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 968px) {
  .hero { padding-block: 96px; }
  .hero-grid { grid-template-columns: 0.92fr 1.08fr; gap: 56px; }
}

/* ---------------------------------------------------------------------------
   6. Client logo strip
   --------------------------------------------------------------------------- */
.trust-strip { padding-block: 32px; border-bottom: 1px solid var(--border); }
.trust-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; }
.trust-strip p { width: 100%; text-align: center; font-size: 0.82rem; color: var(--ink-muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.trust-logo { opacity: 0.55; filter: grayscale(1); height: 26px; }

/* ---------------------------------------------------------------------------
   7. About / Feature blocks
   --------------------------------------------------------------------------- */
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-list { display: grid; gap: 16px; margin-top: 24px; }
.about-list-item { display: flex; gap: 14px; align-items: flex-start; }
.check-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--tosca-light);
  color: var(--tosca-dark); display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.about-list-item strong { display: block; color: var(--navy); margin-bottom: 2px; }
.about-list-item span { color: var(--ink-muted); font-size: 0.94rem; }

@media (min-width: 968px) {
  .about-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
}

/* ---------------------------------------------------------------------------
   7b. Team slider — scroll/slide-triggered photo reveal (About page)
   --------------------------------------------------------------------------- */
.team-slider { max-width: 920px; margin-inline: auto; }
.team-slider-viewport { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.team-slide-track { display: flex; transition: transform .55s cubic-bezier(.65,0,.35,1); }
.team-slide { flex: 0 0 100%; display: grid; grid-template-columns: 1fr; }

.team-slide-photo-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--navy-dark); }
.team-slide-photo-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.55) contrast(1.05);
  transition: filter 1.1s ease;
}
.team-slide-shade {
  position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 55%, var(--tosca-darker) 100%);
  transform: scaleY(1); transform-origin: bottom; transition: transform 1s cubic-bezier(.65,0,.35,1);
}
.team-slide.is-revealed .team-slide-photo-wrap img { filter: grayscale(0) brightness(1) contrast(1); }
.team-slide.is-revealed .team-slide-shade { transform: scaleY(0); }

.team-slide-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 28px 24px;
  background: linear-gradient(0deg, rgba(7,29,51,0.92) 0%, rgba(7,29,51,0) 100%);
  opacity: 0; transform: translateY(18px); transition: opacity .6s ease .5s, transform .6s ease .5s;
}
.team-slide.is-revealed .team-slide-info { opacity: 1; transform: translateY(0); }
.team-slide-name { color: var(--white); font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 4px; }
.team-slide-role { display: inline-block; background: var(--tosca); color: var(--white); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--radius-pill); }

.team-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 22px; }
.team-nav-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--border); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s ease, transform .15s ease;
}
.team-nav-btn:hover { background: var(--tosca-light); border-color: var(--tosca); transform: scale(1.05); }
.team-dots { display: flex; gap: 8px; }
.team-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); transition: background .2s ease, transform .2s ease; }
.team-dot.is-active { background: var(--tosca); transform: scale(1.3); }

@media (min-width: 768px) {
  .team-slide-photo-wrap { aspect-ratio: 16/9; }
  .team-slide-info { padding: 40px 48px 34px; }
  .team-slide-name { font-size: 1.7rem; }
}

/* ---------------------------------------------------------------------------
   8. Services
   --------------------------------------------------------------------------- */
.services-section { background: var(--offwhite); }
.services-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease; scroll-margin-top: calc(var(--header-height) + 16px);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 58px; height: 58px; border-radius: var(--radius-md); background: var(--gradient-tosca);
  color: var(--white); display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-muted); margin-bottom: 18px; font-size: 0.96rem; }
.service-link { color: var(--tosca-dark); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.service-link:hover { gap: 10px; }

/* ---------------------------------------------------------------------------
   9. Process steps
   --------------------------------------------------------------------------- */
.process-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.process-step { position: relative; padding-top: 8px; }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800;
  color: var(--tosca-light); -webkit-text-stroke: 1.5px var(--tosca); display: block; margin-bottom: 12px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { color: var(--ink-muted); font-size: 0.92rem; }

/* ---------------------------------------------------------------------------
   10. Portfolio
   --------------------------------------------------------------------------- */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-pill {
  padding: 9px 18px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  font-size: 0.88rem; font-weight: 600; color: var(--ink-muted);
}
.filter-pill.is-active, .filter-pill:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.portfolio-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.portfolio-card {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--white);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
}
.portfolio-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.portfolio-thumb { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--tosca-tint); }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.06); }
.portfolio-tag {
  position: absolute; top: 14px; left: 14px; background: rgba(11,44,77,0.85); color: var(--white);
  font-size: 0.72rem; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: 0.04em;
}
.portfolio-body { padding: 20px 22px 22px; }
.portfolio-body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.portfolio-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 10px; }
.portfolio-body p { font-size: 0.92rem; color: var(--ink-muted); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-muted); }
a.portfolio-card { display: block; }

/* ---------------------------------------------------------------------------
   10b. Project progress timeline (portfolio-detail.php)
   --------------------------------------------------------------------------- */
.update-timeline { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.update-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.update-media { aspect-ratio: 4/3; background: #0B2C4D; }
.update-media img, .update-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.update-caption { padding: 14px 18px 4px; font-size: 0.92rem; color: var(--ink); }
.update-date { padding: 4px 18px 16px; font-size: 0.78rem; color: var(--ink-muted); }

/* ---------------------------------------------------------------------------
   11. Testimonials
   --------------------------------------------------------------------------- */
.testimonial-section { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.testimonial-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(15,155,142,0.25) 0, transparent 45%);
}
.testimonial-grid { position: relative; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.testimonial-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 28px;
}
.testimonial-stars { color: var(--warn); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-quote { font-size: 0.98rem; color: rgba(255,255,255,0.88); margin-bottom: 20px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-tosca);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.testimonial-person strong { display: block; font-size: 0.92rem; }
.testimonial-person span { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* ---------------------------------------------------------------------------
   12. CTA band
   --------------------------------------------------------------------------- */
.cta-band { background: var(--gradient-tosca); color: var(--white); }
.cta-band-inner { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; justify-content: space-between; }
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 480px; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (min-width: 900px) { .cta-band-inner { flex-direction: row; align-items: center; } }

/* ---------------------------------------------------------------------------
   13. Contact page
   --------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: 40px; }
.contact-info-card {
  background: var(--navy); color: var(--white); border-radius: var(--radius-lg);
  padding: 32px 28px; height: fit-content;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 20px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info-item .icon-badge {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.contact-info-item span, .contact-info-item a { font-size: 0.88rem; color: rgba(255,255,255,0.75); }
.map-embed { border-radius: var(--radius-md); overflow: hidden; margin-top: 20px; border: 1px solid rgba(255,255,255,0.15); aspect-ratio: 16/10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; gap: 18px; margin-bottom: 18px; }
@media (min-width: 640px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }
.form-field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--offwhite); transition: border-color .15s ease, background .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--tosca); background: var(--white);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--ink-muted); margin-top: 14px; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; }
.form-alert.success { background: var(--tosca-light); color: var(--tosca-darker); border: 1px solid var(--tosca); }
.form-alert.error { background: #FDECEC; color: #B42318; border: 1px solid #F1AAAA; }

@media (min-width: 968px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }

/* ---------------------------------------------------------------------------
   14. Footer
   --------------------------------------------------------------------------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); }
.footer-grid { display: grid; gap: 40px; padding-block: 64px 40px; grid-template-columns: 1fr; }
.footer-brand img { margin-bottom: 16px; }
.footer-company { font-family: var(--font-heading); font-weight: 700; color: var(--white); margin-bottom: 10px; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700;
}
.footer-col h3 { color: var(--white); font-size: 0.98rem; margin-bottom: 18px; }
.footer-links li, .footer-contact li { margin-bottom: 12px; font-size: 0.88rem; }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-block: 20px; font-size: 0.8rem; }
.footer-admin-link { opacity: 0.5; }
.footer-admin-link:hover { opacity: 1; }

@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ---------------------------------------------------------------------------
   15. WhatsApp floating widget
   --------------------------------------------------------------------------- */
.wa-widget { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.wa-fab {
  width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  position: relative; transition: transform .2s ease;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab-pulse {
  position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp);
  animation: wa-pulse 2.2s ease-out infinite; z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wa-fab-pulse { animation: none; } }

.wa-popup {
  width: min(340px, calc(100vw - 40px)); background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; transform-origin: bottom right;
  animation: wa-pop-in .18s ease-out;
}
.wa-popup[hidden] { display: none; }
@keyframes wa-pop-in { from { opacity: 0; transform: scale(0.9) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.wa-popup-header { background: var(--gradient-tosca); color: var(--white); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.wa-popup-header img { border-radius: 50%; background: rgba(255,255,255,0.15); padding: 4px; flex-shrink: 0; }
.wa-popup-title { font-weight: 700; font-size: 0.95rem; }
.wa-popup-status { font-size: 0.76rem; color: rgba(255,255,255,0.85); display: flex; align-items: center; gap: 6px; }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; display: inline-block; }
.wa-popup-close { margin-left: auto; font-size: 1.4rem; line-height: 1; color: var(--white); opacity: 0.85; padding: 4px; }
.wa-popup-close:hover { opacity: 1; }
.wa-popup-body { padding: 18px; background: #ECF7F5; }
.wa-bubble { background: var(--white); border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 2px; padding: 14px 16px; font-size: 0.88rem; box-shadow: var(--shadow-sm); }
.wa-popup-footer { padding: 16px 18px 20px; text-align: center; }
.wa-popup-cta { width: 100%; }
.wa-popup-number { margin-top: 10px; font-size: 0.78rem; color: var(--ink-muted); }

/* ---------------------------------------------------------------------------
   16. Page header (interior pages)
   --------------------------------------------------------------------------- */
.page-header { background: var(--gradient-brand); color: var(--white); padding-block: 52px; position: relative; overflow: hidden; }
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 20%, rgba(15,155,142,0.3) 0, transparent 45%);
}
.page-header .container { position: relative; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,0.9); }
.page-header h1 { color: var(--white); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.82); max-width: 560px; }

/* ---------------------------------------------------------------------------
   17. Misc utilities
   --------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.grid-2 { display: grid; gap: 24px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.badge-navy { display: inline-block; background: var(--navy-tint); color: var(--navy); font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); }

[data-aos] { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
[data-aos].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-aos] { opacity: 1; transform: none; transition: none; } }
