/* ============================================================
   Maranè Pharmacy — design tokens
   Palette drawn from the pharmacy's own signage: deep green,
   brushed gold leaf mark, warm cream stone.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,340..600;1,9..144,400..500&family=Work+Sans:wght@400;500;600&display=swap');

:root{
  --green-deep:   #1c3527;
  --green-mid:    #33513c;
  --green-line:   #4d6d55;
  --gold:         #ab8a4c;
  --gold-soft:    #d9c69b;
  --cream:        #f7f3e8;
  --stone:        #ece4d1;
  --ink:          #262a22;
  --ink-soft:     #5c6155;
  --white:        #fffdf8;

  --serif: 'Fraunces', 'Iowan Old Style', serif;
  --sans:  'Work Sans', 'Segoe UI', sans-serif;

  --max: 1140px;
  --radius: 3px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--cream);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3{
  font-family:var(--serif);
  font-weight:560;
  letter-spacing:-0.01em;
  margin:0 0 .5em;
  color:var(--green-deep);
}
h1{ font-size:clamp(2.1rem,4.4vw,3.4rem); line-height:1.08; }
h2{ font-size:clamp(1.5rem,2.6vw,2.05rem); line-height:1.16; }
h3{ font-size:1.18rem; font-weight:600; }
p{ margin:0 0 1em; max-width:38em; }
.lede{ font-size:1.1rem; color:var(--ink-soft); }

.wrap{ max-width:var(--max); margin:0 auto; padding:0 28px; }
.section{ padding:74px 0; }
.section.tight{ padding:52px 0; }
.section.stone{ background:var(--stone); }
.section.deep{ background:var(--green-deep); color:var(--cream); }
.section.deep h2, .section.deep h3{ color:var(--cream); }
.section.deep .lede{ color:var(--gold-soft); }

/* ---------- structural rule: used only to mark a defined
   sequence (opening hours order, step order) — never decoration */
.rule-mark{
  border-left:2px solid var(--gold);
  padding-left:1.1rem;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family:var(--sans);
  font-weight:600;
  font-size:.98rem;
  padding:.72em 1.5em;
  border-radius:var(--radius);
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-gold{ background:var(--gold); color:var(--white); }
.btn-gold:hover{ background:#96763c; }
.btn-line{ border-color:var(--green-deep); color:var(--green-deep); }
.btn-line:hover{ background:var(--green-deep); color:var(--cream); }
.section.deep .btn-line{ border-color:var(--gold-soft); color:var(--cream); }
.section.deep .btn-line:hover{ background:var(--gold-soft); color:var(--green-deep); }

/* ---------- mark / logo ---------- */
.mark{ width:34px; height:34px; flex:none; }
.brand{
  display:flex; align-items:center; gap:.65rem;
  font-family:var(--serif); font-size:1.32rem; color:var(--green-deep);
  text-decoration:none;
}
.brand small{
  display:block; font-family:var(--sans); font-size:.62rem;
  letter-spacing:.08em; color:var(--ink-soft); font-weight:600;
}

/* ---------- nav ---------- */
.nav{
  position:sticky; top:0; z-index:40;
  background:rgba(247,243,232,.94);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--stone);
}
.nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:16px; padding-bottom:16px;
}
.nav-links{
  display:flex; align-items:center; gap:2rem;
  list-style:none; margin:0; padding:0;
}
.nav-links a{
  text-decoration:none; font-weight:500; font-size:.97rem;
  color:var(--ink); padding-bottom:4px; border-bottom:2px solid transparent;
}
.nav-links a:hover, .nav-links a.active{ border-color:var(--gold); }
.nav-phone{
  display:flex; align-items:center; gap:.5rem;
  font-family:var(--serif); font-size:1.05rem; color:var(--green-deep);
  text-decoration:none; white-space:nowrap;
}
.nav-toggle{ display:none; }

@media (max-width:820px){
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    background:var(--cream); flex-direction:column; align-items:flex-start;
    gap:0; padding:8px 28px 18px; border-bottom:1px solid var(--stone);
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:10px 0; width:100%; }
  .nav-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    width:38px; height:38px; border:1px solid var(--green-line);
    border-radius:var(--radius); background:none; cursor:pointer;
  }
  .nav-phone{ display:none; }
}

/* ---------- hero ---------- */
.hero{ padding:64px 0 70px; }
.hero .wrap{
  display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;
}
.hero-info{
  display:flex; gap:28px; margin-top:1.9rem; flex-wrap:wrap;
}
.hero-info div{ font-size:.94rem; color:var(--ink-soft); }
.hero-info strong{ display:block; color:var(--green-deep); font-family:var(--serif); font-size:1.02rem; }
.hero-media{ position:relative; }
.hero-media img{
  border-radius:var(--radius);
  width:100%; height:520px; object-fit:cover;
  box-shadow:0 22px 46px -18px rgba(28,53,39,.42);
}
.hero-media .mark-badge{
  position:absolute; right:-18px; bottom:-18px;
  width:96px; height:96px; background:var(--white);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 28px -10px rgba(28,53,39,.4);
  padding:16px;
}
.cta-row{ display:flex; gap:14px; margin-top:1.8rem; flex-wrap:wrap; }

@media (max-width:900px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-media img{ height:340px; }
}

/* ---------- feature grid (editorial, not identical cards) ---------- */
.feature-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:34px; margin-top:2.6rem;
}
.feature{ }
.feature img{
  width:100%; height:190px; object-fit:cover; border-radius:var(--radius);
  margin-bottom:1.1rem;
}
.feature.lead img{ height:280px; }
.feature.lead{ grid-row:span 2; }
.feature h3{ margin-bottom:.35rem; }
.feature p{ font-size:.95rem; color:var(--ink-soft); margin-bottom:0; }

@media (max-width:900px){
  .feature-grid{ grid-template-columns:1fr 1fr; }
  .feature.lead{ grid-column:span 2; grid-row:auto; }
}
@media (max-width:600px){
  .feature-grid{ grid-template-columns:1fr; }
  .feature.lead{ grid-column:auto; }
}

/* ---------- service / product lists ---------- */
.service-list{ list-style:none; margin:2rem 0 0; padding:0; }
.service-list li{
  display:grid; grid-template-columns:1.3rem 1fr; gap:1rem;
  padding:1.5rem 0; border-top:1px solid var(--stone);
}
.service-list li:first-child{ border-top:none; }
.service-list .dot{ width:9px; height:9px; background:var(--gold); margin-top:.5rem; border-radius:1px; }
.service-list h3{ margin-bottom:.3rem; }
.service-list p{ margin:0; color:var(--ink-soft); font-size:.96rem; }

.brand-strip{
  display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.6rem;
}
.brand-strip span{
  font-family:var(--serif); font-size:.98rem; color:var(--green-deep);
  border:1px solid var(--green-line); border-radius:999px;
  padding:.4em 1.1em;
}

.product-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-top:2.4rem;
}
.product-grid figure{ margin:0; }
.product-grid img{ height:200px; object-fit:cover; border-radius:var(--radius); margin-bottom:.6rem; }
.product-grid figcaption{ font-size:.88rem; color:var(--ink-soft); }
@media (max-width:900px){ .product-grid{ grid-template-columns:repeat(2,1fr); } }

/* ---------- two column with rule ---------- */
.split{
  display:grid; grid-template-columns:.9fr 1.1fr; gap:60px; align-items:start;
}
@media (max-width:880px){ .split{ grid-template-columns:1fr; } }

/* ---------- hours table ---------- */
.hours{ width:100%; border-collapse:collapse; margin-top:.5rem; max-width:26em; }
.hours td{ padding:.55em 0; border-top:1px solid var(--stone); font-size:.97rem; }
.hours tr:first-child td{ border-top:none; }
.hours td:last-child{ text-align:right; font-family:var(--serif); color:var(--green-deep); }

/* ---------- contact form ---------- */
.form-grid{ display:grid; gap:1.1rem; margin-top:1.6rem; max-width:32em; }
.form-grid label{ display:block; font-size:.88rem; font-weight:600; margin-bottom:.4em; color:var(--green-deep); }
.form-grid input, .form-grid textarea{
  width:100%; font-family:var(--sans); font-size:1rem; padding:.7em .85em;
  border:1px solid var(--green-line); border-radius:var(--radius);
  background:var(--white); color:var(--ink);
}
.form-grid input:focus, .form-grid textarea:focus{
  outline:2px solid var(--gold); outline-offset:1px;
}
.form-note{ font-size:.84rem; color:var(--ink-soft); margin-top:.6rem; }

/* ---------- map ---------- */
.map-frame{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--stone); }
.map-frame iframe{ width:100%; height:340px; border:0; display:block; }

/* ---------- lightbox (click a photo to enlarge) ---------- */
.zoomable{ cursor:zoom-in; transition:opacity .15s ease; }
.zoomable:hover{ opacity:.92; }
.lightbox{
  position:fixed; inset:0; z-index:200;
  background:rgba(19,22,16,.93);
  display:none; align-items:center; justify-content:center;
  padding:5vh 5vw; cursor:zoom-out;
}
.lightbox.open{ display:flex; }
.lightbox img{
  max-width:100%; max-height:100%; width:auto; height:auto;
  border-radius:var(--radius);
  box-shadow:0 30px 70px -20px rgba(0,0,0,.6);
  cursor:default;
}
.lightbox-close{
  position:fixed; top:20px; right:22px; z-index:201;
  width:42px; height:42px; border-radius:50%;
  background:var(--white); color:var(--ink); border:none;
  font-size:1.15rem; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px -6px rgba(0,0,0,.4);
}

/* ---------- footer ---------- */
footer{ background:var(--green-deep); color:var(--gold-soft); padding:52px 0 30px; }
footer .wrap{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; }
footer h3{ color:var(--cream); font-size:1rem; margin-bottom:.9rem; }
footer p, footer a{ color:var(--gold-soft); font-size:.93rem; text-decoration:none; }
footer .brand{ color:var(--cream); margin-bottom:.8rem; }
footer .brand small{ color:var(--gold-soft); }
footer ul{ list-style:none; margin:0; padding:0; }
footer ul li{ margin-bottom:.55rem; }
.foot-bottom{
  max-width:var(--max); margin:40px auto 0; padding:20px 28px 0;
  border-top:1px solid rgba(217,198,155,.25);
  font-size:.82rem; color:var(--gold-soft); opacity:.85;
}
@media (max-width:760px){ footer .wrap{ grid-template-columns:1fr; } }
