/* =========================================================
   Optimed Consult — styles.css
   ========================================================= */

:root {
  /* Brand palette — sampled from the original Optimed Consult logo */
  --purple-900: #3E0669;   /* deepest plum (footer, dark accents) */
  --purple-800: #481572;
  --purple-700: #5B2B7F;   /* PRIMARY brand — wordmark, buttons */
  --purple-600: #6B408C;   /* hover */
  --purple-500: #8a6aa8;
  --purple-400: #A483BC;   /* SECONDARY brand — "consult" subtext, accents */
  --lilac-300: #c4b3d4;
  --lilac-200: #d9cfe2;
  --lilac-100: #ece5f0;
  --lilac-50:  #f7f3f9;
  --cream:     #fbf9fc;
  --white:     #ffffff;
  --text:      #1f1b2e;
  --text-muted:#6b6781;
  --border:    #ece9f3;

  --radius-card: 16px;
  --radius-lg:   24px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 20px rgba(91, 43, 127, 0.10);
  --shadow-soft: 0 10px 40px rgba(91, 43, 127, 0.16);

  --max-w: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
h4 { font-size: .95rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--text); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple-600);
  margin: 0 0 12px;
}
.eyebrow.center { text-align: center; }
.eyebrow.accent { color: var(--purple-700); }

.section { padding: 72px 0; }
.section-title { margin-bottom: 36px; }
.section-title.center { text-align: center; }

.muted { color: var(--text-muted); }
.accent { color: var(--purple-600); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--purple-700);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(91, 43, 127, .35);
}
.btn-primary:hover { background: var(--purple-800); }

.btn-outline {
  background: var(--white);
  color: var(--purple-700);
  border-color: var(--lilac-200);
}
.btn-outline:hover { background: var(--lilac-100); }

.btn-light {
  background: var(--white);
  color: var(--purple-700);
}

.btn-pill { padding: 10px 18px; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 88px;
}
.logo img { height: 60px; width: auto; }

.primary-nav {
  display: flex;
  gap: 28px;
}
.primary-nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  position: relative;
}
.primary-nav a:hover { color: var(--purple-700); }

.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  isolation: isolate;
  background-color: var(--cream);
  background-image:
    linear-gradient(
      to right,
      var(--cream) 0%,
      var(--cream) 28%,
      rgba(251, 249, 252, 0.85) 45%,
      rgba(251, 249, 252, 0) 70%
    ),
    url("assets/hero.jpg");
  background-size: 100% 100%, auto 100%;
  background-position: 0 0, right center;
  background-repeat: no-repeat, no-repeat;
  padding: 80px 0 96px;
  min-height: 620px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: 1fr auto;
  column-gap: 56px;
  row-gap: 32px;
  align-items: start;
  min-height: 460px;
}
.hero-text   { grid-column: 1; grid-row: 1; }
.hero-card   { grid-column: 2; grid-row: 2; justify-self: end; align-self: start; }
.hero-badges { grid-column: 1; grid-row: 2; }
.hero-text h1 {
  color: var(--text);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.1;
}
.hero-lede {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 700;
  margin: 8px 0 14px;
}
.hero-sub { color: var(--text-muted); margin-bottom: 24px; }
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0; padding: 0;
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--lilac-100);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.25;
}
.hb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--white);
  color: var(--purple-700);
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-card {
  background: var(--purple-700);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow-soft);
  max-width: 360px;
}
.hcr {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  line-height: 1.4;
}
.hcr-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}

/* ---------------- Services ---------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.card {
  background: var(--lilac-50);
  border: 1px solid var(--lilac-200);
  border-radius: var(--radius-card);
  padding: 22px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--white);
  color: var(--purple-700);
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ---------------- Offer banner ---------------- */

.offer {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 28px;
  align-items: center;
  background: var(--lilac-100);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.offer-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.offer-body h2 { margin-bottom: 12px; }
.offer-body p { color: var(--text-muted); }
.offer-price {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--lilac-300);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}
.op-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--purple-700);
  line-height: 1;
}
.op-cur { font-size: 1rem; color: var(--text-muted); }

/* ---------------- Gallery ---------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.bullets-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  list-style: none;
  margin: 0; padding: 16px;
  background: var(--lilac-50);
  border: 1px solid var(--lilac-200);
  border-radius: var(--radius-card);
  font-size: .9rem;
}
.bullets-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bullet-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lilac-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bullet-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple-700);
}

/* ---------------- Why us + Steps ---------------- */

.why-grid {
  display: grid;
  grid-template-columns: 1.15fr auto 1.15fr;
  gap: 32px;
  align-items: center;
  background: var(--lilac-50);
  border: 1px solid var(--lilac-200);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.why-left .section-title {
  font-size: clamp(1.4rem, 1.9vw, 1.7rem);
  margin-bottom: 24px;
}
.check-list {
  list-style: none;
  margin: 0 0 28px; padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
}
.check-list li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--purple-700) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='m9 16.2-3.5-3.5L4 14.2 9 19l11-11-1.5-1.4z'/></svg>") center/14px no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}
.stat-circle {
  width: 210px; height: 210px;
  margin: 0;
  border-radius: 50%;
  background: var(--purple-700);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}
.stat-circle strong {
  display: block;
  font-size: 1.1rem;
  margin-top: 8px;
}
.stat-circle span { font-size: .85rem; opacity: .9; }

.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.steps li {
  position: relative;
  text-align: center;
  padding: 10px 4px;
}
.steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -6px;
  top: 24px;
  color: var(--purple-400);
  font-size: 1.1rem;
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--lilac-100);
  color: var(--purple-700);
  margin-bottom: 12px;
  border: 1px solid var(--lilac-200);
}
.step-num {
  display: block;
  font-weight: 800;
  color: var(--purple-700);
  font-size: .9rem;
  margin-bottom: 4px;
}
.steps h4 {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

/* ---------------- Warranty banner ---------------- */

.warranty {
  background: var(--purple-700);
  color: var(--white);
  padding: 36px 0;
}
.warranty-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.warranty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}
.warranty-text { flex: 1; }
.warranty-text h3 { font-size: 1.3rem; margin-bottom: 4px; }
.warranty-text p { color: rgba(255,255,255,.85); margin: 0; font-size: .92rem; }

/* ---------------- Contact ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr;
  gap: 28px;
  align-items: stretch;
}
.contact-col { min-width: 0; }

.form { display: grid; gap: 14px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.form label,
.form .form-field {
  display: grid;
  gap: 6px;
  font-size: .85rem;
  font-weight: 500;
  min-width: 0;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px var(--lilac-200);
}
.form textarea { resize: vertical; min-height: 88px; font-family: inherit; }
.form input::placeholder,
.form textarea::placeholder { color: #b8b3c5; }
.form button { justify-self: start; margin-top: 6px; }
.form .req { color: var(--purple-700); margin-left: 2px; }
.form-note {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}
.form-status {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 500;
}
.form-status.is-success {
  background: #e7f8ec;
  color: #1e7a3a;
  border: 1px solid #b8e6c5;
}
.form-status.is-error {
  background: #fdecec;
  color: #b3261e;
  border: 1px solid #f3c3c0;
}
/* honeypot: visible to bots, invisible to humans (off-screen + zero size) */
.hp-trap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------------- Legal page ---------------- */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple-700);
  margin: 32px 0 12px;
}
.legal p, .legal li { color: var(--text); line-height: 1.65; }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--purple-700); text-decoration: underline; }
.legal a:hover { color: var(--purple-800); }
.legal code {
  background: var(--lilac-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .9em;
}

/* ---------------- Map consent placeholder ---------------- */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 32px;
  height: 100%;
  min-height: 360px;
  background: var(--lilac-50);
  color: var(--text-muted);
}
.map-placeholder svg { color: var(--purple-500); }
.map-placeholder strong { color: var(--text); display: block; margin-bottom: 4px; }
.map-placeholder a { color: var(--purple-700); font-weight: 600; }
.map-placeholder a:hover { text-decoration: underline; }

/* ---------------- Cookie banner ---------------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--lilac-200);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 40px rgba(91, 43, 127, 0.18);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 20px;
  align-items: center;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
}
.cookie-banner a {
  color: var(--purple-700);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-actions .btn {
  padding: 9px 16px;
  font-size: .85rem;
}
.cookie-actions .btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.cookie-actions .btn-ghost:hover { background: var(--lilac-50); color: var(--text); }

@media (max-width: 640px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

.contact-info { display: grid; gap: 18px; align-content: start; padding-top: 12px; }
.ci-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--lilac-50);
  border: 1px solid var(--lilac-200);
  border-radius: var(--radius-card);
  padding: 14px 16px;
}
.ci-row strong {
  display: block;
  font-size: .92rem;
  margin-bottom: 2px;
}
.ci-row a, .ci-row span {
  font-size: .9rem;
  color: var(--text-muted);
}
.ci-row a:hover { color: var(--purple-700); }
.ci-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--white);
  color: var(--purple-700);
  flex-shrink: 0;
}

.contact-map {
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--lilac-200);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--purple-900);
  color: rgba(255,255,255,.85);
  padding: 56px 0 24px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: .9rem;
  letter-spacing: .04em;
}
.footer-tag {
  font-size: .9rem;
  margin: 14px 0 0;
  color: rgba(255,255,255,.75);
}
.footer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 8px;
}
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.78);
}
.footer-links a:hover { color: var(--white); }
.socials { display: flex; gap: 10px; }
.soc {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.soc:hover { background: var(--purple-600); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .hero {
    background-image:
      linear-gradient(
        180deg,
        rgba(251, 249, 252, 0.96) 0%,
        rgba(251, 249, 252, 0.88) 45%,
        rgba(251, 249, 252, 0.55) 100%
      ),
      url("assets/hero.jpg");
    background-size: 100% 100%, cover;
    background-position: 0 0, center;
    padding: 56px 0 64px;
    min-height: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 24px;
    min-height: auto;
  }
  .hero-text   { grid-column: 1; grid-row: auto; }
  .hero-card   { grid-column: 1; grid-row: auto; justify-self: stretch; max-width: 100%; }
  .hero-badges { grid-column: 1; grid-row: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .offer { grid-template-columns: 1fr; text-align: left; }
  .offer-price { margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; padding: 24px; }
  .why-grid .stat-circle { justify-self: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:not(:last-child)::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 88px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .primary-nav a:last-child { border-bottom: 0; }
  .header-cta { display: none; }
  .hero-badges { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img { height: 140px; }
  .footer-grid { grid-template-columns: 1fr; }
  .warranty-row { flex-wrap: wrap; }
  .warranty-row .btn { width: 100%; justify-content: center; }
}
