:root {
  --blue: #0077b5;
  /* LinkedIn Blue */
  --orange: #f97316;
  /* Accent line / buttons */
  --ink: #0f172a;
  /* Dark text */
  --muted: #6b7280;
  /* Secondary text */
  --bg: #ffffff;
  --card: #f8fafc;
  --shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 .5rem 0
}

h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem)
}

h2 {
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem)
}

h3 {
  font-weight: 700;
  font-size: 1.1rem
}

p {
  margin: .25rem 0 .75rem
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px
}

/* Section spacing */
.section {
  padding: 50px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }

  /* smaller gap on mobile */
}

.section-lead {
  color: var(--muted);
  margin-bottom: 20px
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* brand flush-left */
  gap: 40px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink)
}

.logo {
  max-height: 56px;
  width: auto
}

/* bigger logo without growing header */
.brand-text {
  font-weight: 800
}

.nav {
  margin-left: auto
}

/* push nav to far right */
.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600
}

.nav a:hover {
  color: var(--blue)
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px
}

/* Hero (image on section; hero-bg kept but hidden) */
.hero {
  position: relative;
  padding-top: 170px;
  padding-bottom: 100px;
  text-align: center;
  color: #fff;
  background: url("assets/hero.jpg") center/cover no-repeat;
}

.hero-bg {
  display: none
}

.hero-inner {
  padding-top: 170px;
}

/* move content down */

.hero .accent {
  color: #fff
}

.hero .sub {
  color: #f1f5f9
}

.hero h1,
.hero .sub {
  text-shadow: 0 2px 8px rgba(0, 0, 0, .25)
}

.cta-row {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  /* left align buttons */
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent
}

.btn.primary {
  background: var(--blue);
  color: #fff
}

.btn.primary:hover {
  filter: brightness(.95)
}

.btn.ghost {
  border-color: #fff;
  color: #fff;
  background: transparent
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, .12)
}

/* About */
.about .grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px
}

.accent-underline {
  position: relative;
  display: inline-block;
}

.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 4px;
  background: var(--orange);
  border-radius: 2px
}

.card {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

/* Stats card with full background image */
.card.stats {
  background: url("assets/stats-card-bg-1200x400.jpg") center/cover no-repeat;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  align-items: end;
  justify-items: center;
  min-height: 180px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.card.stats strong {
  font-size: 1.6rem;
  color: #fff;
  display: block
}

.card.stats span {
  color: #e2e8f0;
  font-weight: 600
}

/* Services */
.services .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.services .card h3 {
  margin-bottom: 6px
}

.services .card ul {
  margin: 8px 0 0 16px
}

/* Contact */
/* Two-column Contact layout (Map | Form) */
.contact .contact-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  /* ensures both columns equal height */
}

/* Shared card look for BOTH columns */
.card-like {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 18px;
  /* base padding (overridden below for #contact) */
  min-height: 100%;
  /* fill track height */
}

/* Map card: no inner padding so iframe touches edges cleanly */
.card-like.no-pad {
  padding: 0;
  overflow: hidden
}

/* Form as a flexible column so its button stays inside equal height */
.contact .form {
  display: flex;
  flex-direction: column;
}

/* Map wrapper and iframe */
.map-wrapper {
  position: relative;
  flex: 1;
  display: flex;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  /* disabled until click */
  border-radius: 16px;
  /* match card corners */
}

/* Overlay text on map (brand orange) */
.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: var(--orange);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .5px;
  text-align: center;
  pointer-events: none;
  border-radius: 16px;
  transition: opacity .3s ease;
}

/* Mobile: stack */
@media (max-width:900px) {
  .contact .contact-grid-2 {
    grid-template-columns: 1fr
  }

  .map-wrapper iframe {
    min-height: 300px
  }
}

/* Form styling (base) */
.contact .form label {
  display: flex;
  flex-direction: column;
  /* stack text above input */
  font-weight: 600;
  margin-bottom: 16px;
  /* base gap */
  font-size: 0.95rem;
  color: var(--ink);
}

.contact .form input,
.contact .form textarea {
  margin-top: 6px;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  line-height: 1.4;
}

.contact .form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact .form button {
  margin-top: 8px;
  align-self: flex-start;
}

/* Footer */
.footer {
  background: #111;
  color: #bbb;
  padding: 20px 0;
  font-size: 0.9rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.footer-nav a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0 6px;
  position: relative;
}

/* Separator | between links */
.footer-nav a:not(:last-child)::after {
  content: "|";
  color: #444;
  margin-left: 8px;
}

.footer-nav a:hover {
  color: var(--orange);
}

/* WhatsApp Floating Button */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* Scroll to Top Button */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 60;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  display: none;
  place-items: center;
  box-shadow: var(--shadow);
  transition: background .3s;
}

.to-top:hover {
  background: var(--orange)
}

/* Responsive */
@media (max-width: 900px) {

  .about .grid-2,
  .contact .grid-2 {
    grid-template-columns: 1fr
  }

  .services .cards {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 64px;
    right: 0;
    background: #fff;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 12px 16px;
    display: none
  }

  .nav.open {
    display: block
  }

  .nav a {
    display: block;
    margin: 10px 0
  }

  .nav-toggle {
    display: block
  }

  .services .cards {
    grid-template-columns: 1fr
  }
}

/* Legal / policy pages */
.page.legal {
  padding-top: 120px;
  /* extra space below fixed header */
  padding-bottom: 60px;
  background: var(--bg);
}

.legal-inner {
  max-width: 820px;
  margin: 0;
}

.page.legal h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--ink);
  margin: 0 0 12px 0;
}

.page.legal .legal-meta {
  color: var(--muted);
  margin-bottom: 22px;
}

.page.legal h2 {
  font-weight: 800;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--ink);
}

.page.legal p,
.page.legal li {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

.page.legal ul {
  padding-left: 1.2rem;
  margin: 10px 0 12px;
}

.page.legal strong {
  font-weight: 700;
}

/* ===== Accessibility: visually hidden labels (keep screen-reader friendly) ===== */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ===== Contact: compact + equal heights + Innovate feel ===== */

/* Tighter vertical space only for Contact */
#contact.section {
  padding: 22px 0;
}

/* Smaller gap between columns */
#contact .contact-grid-2 {
  gap: 10px;
}

/* Slimmer cards */
#contact .card-like {
  padding: 8px;
  /* was 18px */
  border-radius: 12px;
  /* was 16px */
  box-shadow: 0 6px 18px rgba(2, 6, 23, .06);
}

/* Compact form controls */
#contact .form label {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

#contact .form input,
#contact .form textarea {
  padding: 7px 9px;
  border-radius: 8px;
}

#contact .form textarea {
   min-height: 72px;               /* was 96px */
  height: 72px; 
}

/* compact but readable */
#contact .form button.btn.primary {
  padding: 10px 16px;
  cursor: pointer;
}

/* Name + Phone row */
#contact .form-row {
  display: flex;
  gap: 12px;
}

#contact .form-row>input {
  flex: 1;
}

/* 7) Mobile: also reduce map minimum height a bit */
@media (max-width: 900px) {
  #contact .map-wrapper iframe { 
    min-height: 240px;            /* was 280px */
  }
}

/* Equal-height columns on desktop */
#contact {
  --contactCardMin: 260px;
}

/* tweak 280–340px to taste */
#contact .contact-grid-2>.card-like,
#contact .contact-grid-2>.map {
  display: flex;
  flex-direction: column;
  min-height: var(--contactCardMin);
}

#contact .form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#contact .map-wrapper {
  flex: 1;
  display: flex;
}

#contact .map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 12px;
  /* match card radius above */
}

/* Mobile: stack naturally + keep comfy map height */
@media (max-width: 900px) {

  #contact .contact-grid-2>.card-like,
  #contact .contact-grid-2>.map {
    min-height: auto;
  }

  #contact .map-wrapper iframe {
    min-height: 280px;
  }

  #contact .contact-grid-2 {
    gap: 12px;
  }
}

/* Placeholders style (subtle) */
#contact .form input::placeholder,
#contact .form textarea::placeholder {
  color: #94a3b8;
}

/* Brand orange focus ring (remove black border) */
#contact .form input:focus,
#contact .form input:focus-visible,
#contact .form textarea:focus,
#contact .form textarea:focus-visible,
#contact .form button:focus,
#contact .form button:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

/* Status message (used only for errors now) */
#contact .status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 4px solid;
  font-weight: 600;
}

#contact .status.ok {
  background: #ecfdf5;
  color: #065f46;
  border-color: #10b981;
}

#contact .status.err {
  background: #fef2f2;
  color: #7f1d1d;
  border-color: #ef4444;
}

/* ===== Success popup (modal) ===== */
.contact-modal {
  position: fixed;
  inset: 0;
  display: none;
  /* hidden by default */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
}

.contact-modal.open {
  display: flex;
}

.contact-modal-card {
  background: #fff;
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 420px;
  width: 92%;
  text-align: center;
}