@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ── ProDerma Shared Styles ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  color: #2C2C2C;
  background: #FAF6F0;
  line-height: 1.6;
  padding-top: 116px; /* topbar (34px) + nav card margin-top (42px) + nav height (68px) - overlap (28px) */
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:root {
  --green:       #7B9E70;
  --green-dark:  #3D6133;
  --green-light: #EEF3EB;
  --green-banner:#496843;
  --cream:       #FAF6F0;
  --cream-dark:  #F0E9DF;
  --beige:       #DDD5C8;
  --text:        #2C2C2C;
  --text-muted:  #7A7672;
  --white:       #FFFFFF;
  --max-w:       1200px;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg:   0 4px 24px rgba(0,0,0,0.10);
}

/* ── UTILITIES ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
h1,h2,h3,h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(32px,4vw,52px); }
h2 { font-size: clamp(24px,3vw,40px); }
h3 { font-size: clamp(18px,2vw,26px); }
.label {
  display: inline-block; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green);
  margin-bottom: 10px;
}
/* ── UNIFIED BUTTON SYSTEM — cream rounded-rect (not pill) ── */
.btn, .btn-green, .btn-outline, .btn-white, .btn-nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px; border-radius: var(--radius); /* 12px — rounded rect */
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: background 0.18s, border-color 0.18s, color 0.18s;
  text-decoration: none; white-space: nowrap;
  background: var(--cream-dark);
  color: var(--text);
  border: 1.5px solid var(--beige);
}
.btn:hover, .btn-green:hover, .btn-outline:hover, .btn-white:hover, .btn-nav-cta:hover {
  background: var(--beige);
  border-color: #c8b5a0;
}
/* on-dark contexts keep white */
.btn-on-dark {
  background: #fff; color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
}
.btn-on-dark:hover { background: var(--cream); border-color: var(--cream); }

/* ── TOPBAR ── */
.topbar {
  background: #F0E9DF; padding: 7px 0;
  font-size: 12px; color: var(--text-muted);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar__left { display: flex; gap: 20px; align-items: center; }
.topbar__left a, .topbar__left span { display: flex; align-items: center; gap: 5px; }
.topbar__left a:hover { color: var(--green); }
.topbar__left svg { opacity: 0.55; flex-shrink: 0; }
.topbar__center { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.topbar__center svg { opacity: 0.55; flex-shrink: 0; }
.topbar__right { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; }
.topbar__right a { color: var(--text-muted); }
.topbar__right a:hover { color: var(--text); }
.topbar__right a.active { color: var(--text); font-weight: 600; }
.topbar__right .pipe { color: var(--beige); user-select: none; }

/* ── NAV ── */
/* Default = card (at-top). JS removes nav--top when scrolled → glass kicks in. */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  /* Card style is the default — no flash before JS runs */
  background: #fff;
  margin: 42px 20px 0;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.09);
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .4s cubic-bezier(0.165,0.84,0.44,1),
              box-shadow .4s cubic-bezier(0.165,0.84,0.44,1),
              border-radius .4s cubic-bezier(0.165,0.84,0.44,1),
              margin .4s cubic-bezier(0.165,0.84,0.44,1),
              border-color .4s,
              backdrop-filter .4s;
}
/* Frosted glass when scrolled (JS removes nav--top class) */
.nav:not(.nav--top) {
  margin: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 2px 24px rgba(0,0,0,.09);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 8px; }
.nav__logo img { height: 40px; }
.nav__links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav__links > li { position: relative; }
.nav__links > li > a {
  padding: 7px 12px; font-size: 13.5px; color: var(--text);
  border-radius: 6px; display: block; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav__links > li > a:hover { background: var(--cream); color: var(--green); }
.nav__links .sub {
  display: none; position: absolute; top: calc(100% + 12px); left: -16px;
  background: #fff; border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius-lg);
  padding: 10px 6px; min-width: 230px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 200;
}
.nav__links .sub::before {
  content: ''; position: absolute; top: -7px; left: 32px;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(0,0,0,0.08);
}
.nav__links .sub::after {
  content: ''; position: absolute; top: -6px; left: 33px;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
}
.nav__links > li:hover .sub { display: block; }
.nav__links .sub a { display: block; padding: 10px 16px; font-size: 13.5px; border-radius: 6px; color: var(--text); }
.nav__links .sub a:hover { background: var(--cream); color: var(--green); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__right .nav-phone { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.nav__right .nav-phone:hover { color: var(--green); }
.nav__icon { background: none; border: none; cursor: pointer; padding: 6px; color: var(--text-muted); }
.nav__icon:hover { color: var(--green); }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 12.5px; color: var(--text-muted); padding: 12px 0; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--text-muted); }

/* ── PAGE HERO (green banner) ── */
.page-hero {
  background: var(--green-banner);
  padding: 52px 0;
  text-align: center;
  color: #fff;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.15) 0%, transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero .label { color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.page-hero h1 { color: #fff; font-size: clamp(28px,3.5vw,44px); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 15px; max-width: 520px; margin: 0 auto; line-height: 1.65; }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--cream-dark); padding: 60px 0; text-align: center;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { color: var(--text-muted); font-size: 15px; max-width: 480px; margin: 0 auto 28px; line-height: 1.65; }
.cta-banner .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer { background: #1E2020; color: rgba(255,255,255,0.6); padding: 56px 0 28px; }
.footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 34px; margin-bottom: 10px; filter: brightness(10); }
.footer__brand p { font-size: 12.5px; line-height: 1.6; }
.footer__col h4 { font-family: inherit; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.footer__col li { margin-bottom: 9px; }
.footer__col a { font-size: 13px; transition: color 0.15s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.35); }

/* ══ MOBILE NAV DRAWER ══ */
.nav__hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); flex-shrink: 0; }
.nav__overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 998; opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav__overlay.open { opacity: 1; pointer-events: all; }
.nav__drawer { position: fixed; top: 0; right: 0; width: min(340px,90vw); height: 100dvh; background: var(--cream); z-index: 999; transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1); overflow-y: auto; display: flex; flex-direction: column; }
.nav__drawer.open { transform: translateX(0); }
.drw-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 18px; border-bottom: 1px solid var(--beige); }
.drw-head img { height: 36px; }
.drw-close { background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); font-size: 20px; line-height: 1; display: flex; align-items: center; }
.drw-links { list-style: none; padding: 10px 0; flex: 1; }
.drw-links > li > a { display: block; padding: 12px 24px; font-size: 15.5px; font-weight: 500; color: var(--text); text-decoration: none; transition: color .15s; }
.drw-links > li > a:hover { color: var(--green); }
.drw-sub { list-style: none; padding-bottom: 4px; }
.drw-sub li a { display: block; padding: 7px 24px 7px 38px; font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color .15s; }
.drw-sub li a:hover { color: var(--green); }
.drw-divider { height: 1px; background: var(--beige); margin: 6px 0; }
.drw-foot { padding: 18px 22px 32px; border-top: 1px solid var(--beige); }
.drw-lang { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; font-weight: 500; }
.drw-lang a { color: var(--text-muted); text-decoration: none; }
.drw-lang a.active { color: var(--text); }
.drw-lang .pipe { color: var(--beige); }
.drw-phone { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border: 1.5px solid var(--beige); border-radius: var(--radius); font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; background: #fff; margin-bottom: 12px; }
.drw-addr { font-size: 12.5px; color: var(--text-muted); line-height: 1.9; }

/* ══ TABLET ══ */
@media (max-width: 1024px) {
  .footer .container { grid-template-columns: 1fr 1fr 1fr; }
  .nav__links > li > a { font-size: 13px; padding: 6px 9px; }
}

/* ══ MOBILE ══ */
@media (max-width: 768px) {
  body { padding-top: 58px; }
  .container { padding: 0 18px; }
  .topbar { display: none; }
  .nav .container { height: 58px; }
  .nav__links, .nav__right { display: none !important; }
  .nav__hamburger { display: flex; }
  .nav.nav--top { margin: 0; border-radius: 0; border: none; border-bottom: 1px solid rgba(0,0,0,.07); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
  .footer .container { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-hero { padding: 30px 0; }
  .page-hero h1 { font-size: clamp(24px,7vw,36px); }
  .cta-banner { padding: 44px 0; }
  .cta-banner .actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .footer .container { grid-template-columns: 1fr; }
}
