/* ═══════════════════════════════════════════════════════════════
   L.I.P.A. Medical Clinic  ·  style.css
   Palette: Garden Eight  ·  Font: SF Pro (Apple System)
   ═══════════════════════════════════════════════════════════════ */

/* ─── APPLE SF PRO FONT STACK ─── */
:root {
  --font-sf: -apple-system, "SF Pro Display", "SF Pro Text", BlinkMacSystemFont,
             "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sf-display: -apple-system, "SF Pro Display", BlinkMacSystemFont,
                     "Helvetica Neue", Helvetica, sans-serif;

  /* ─── GARDEN EIGHT PALETTE ─── */
  --ivory:       #F5F0E8;   /* warm page background  */
  --ivory-2:     #EDE7DC;   /* section alt background */
  --ivory-3:     #E4DDD3;   /* deeper cream          */
  --sand:        #D6CCB8;   /* dividers, borders     */
  --stone:       #C4B99A;   /* muted warm neutral    */
  --sage:        #8B9B7A;   /* botanical accent      */
  --sage-light:  #B5C4A5;   /* soft sage tint        */
  --sage-dark:   #6A7A5A;   /* deep sage hover       */
  --terracotta:  #C07B5E;   /* warm accent           */
  --terracotta-light: #D9A08C; /* tinted terracotta  */
  --moss:        #7A8C6A;   /* secondary accent      */
  --ink:         #1A1A18;   /* near-black text       */
  --ink-mid:     #4A4A44;   /* body text             */
  --ink-muted:   #8A8A80;   /* captions, labels      */
  --white:       #FEFCF9;   /* brightest surface     */

  /* ─── SEMANTIC TOKENS ─── */
  --bg:          var(--ivory);
  --bg-alt:      var(--ivory-2);
  --bg-surface:  var(--white);
  --text:        var(--ink);
  --text-body:   var(--ink-mid);
  --text-muted:  var(--ink-muted);
  --accent:      var(--sage);
  --accent-warm: var(--terracotta);
  --border:      var(--sand);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sf);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 3.5rem;
  background: rgba(245, 240, 232, 0.9);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.75rem; text-decoration: none;
}
.nav-logo-img {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(26,26,24,0.15);
}
.nav-logo-text {
  font-family: var(--font-sf-display);
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
}

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mid);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--sage-dark); }

.nav-cta {
  background: var(--ink) !important; color: var(--ivory) !important;
  padding: 0.55rem 1.3rem; border-radius: 40px;
  font-weight: 500 !important;
  transition: background 0.25s !important, transform 0.15s !important;
}
.nav-cta:hover { background: var(--sage-dark) !important; transform: translateY(-1px) !important; }

/* ─── HERO ─── */
#hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding-top: 5rem; overflow: hidden;
  position: relative; background: var(--ivory);
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 85% 40%, rgba(139,155,122,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 15% 75%, rgba(192,123,94,0.07) 0%, transparent 60%);
}

.hero-text {
  padding: 4rem 3.5rem 4rem 5.5rem; position: relative; z-index: 1;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 2.2rem;
  animation: fadeUp 0.9s ease both;
}
.hero-eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--sage); flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-sf-display);
  font-size: clamp(3.2rem, 5vw, 6rem);
  font-weight: 200; line-height: 1.02; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 1.8rem;
  animation: fadeUp 0.9s 0.08s ease both;
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--terracotta); }

.hero-sub {
  font-size: 1.05rem; font-weight: 300; line-height: 1.75;
  color: var(--ink-mid); max-width: 440px; margin-bottom: 3rem;
  animation: fadeUp 0.9s 0.16s ease both;
}

.hero-actions { display: flex; gap: 0.9rem; animation: fadeUp 0.9s 0.24s ease both; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--ivory);
  text-decoration: none; padding: 0.85rem 1.8rem;
  font-size: 0.78rem; font-weight: 500; font-family: var(--font-sf);
  letter-spacing: 0.08em; border-radius: 40px; border: none; cursor: pointer;
  transition: background 0.25s, transform 0.15s;
}
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-2px); }
.btn-primary::after { content: '→'; }

.btn-outline {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--sand); color: var(--ink-mid);
  text-decoration: none; padding: 0.85rem 1.8rem;
  font-size: 0.78rem; font-weight: 500; font-family: var(--font-sf);
  letter-spacing: 0.08em; border-radius: 40px;
  transition: all 0.25s;
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.hero-visual {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; animation: fadeIn 1.2s 0.3s ease both;
}

.hero-logo-wrap {
  width: 420px; height: 420px; border-radius: 50%;
  animation: rotateSlow 32s linear infinite;
  filter: drop-shadow(0 24px 60px rgba(26,26,24,0.12));
}
.hero-logo-img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; animation: rotateSlow 32s linear infinite reverse;
}

/* ─── SECTION SHARED ─── */
section { padding: 7rem 5.5rem; }

.section-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 1rem;
}
.section-tag::before { content: ''; width: 16px; height: 1px; background: var(--stone); }

.section-title {
  font-family: var(--font-sf-display);
  font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  font-weight: 200; letter-spacing: -0.025em; line-height: 1.1;
  color: var(--ink); margin-bottom: 1.5rem;
}

.rule { width: 40px; height: 1.5px; background: var(--stone); margin: 1.5rem 0; }

/* ─── ABOUT ─── */
#about {
  background: var(--ivory); display: grid;
  grid-template-columns: 1fr 1fr; gap: 7rem; align-items: start;
  border-top: 1px solid var(--border);
}

.about-body { font-size: 1.05rem; font-weight: 300; line-height: 1.8; color: var(--ink-mid); }
.about-body p { margin-bottom: 1.3rem; }

.about-quote {
  border-left: 2px solid var(--terracotta);
  padding: 1.4rem 1.8rem; margin: 2.2rem 0;
  background: rgba(192,123,94,0.05);
  border-radius: 0 4px 4px 0;
  font-family: var(--font-sf-display);
  font-size: 1.3rem; font-style: italic; font-weight: 300;
  color: var(--ink); letter-spacing: -0.01em;
}

.about-card {
  background: var(--ink); border-radius: 12px; padding: 2.8rem;
  color: var(--ivory); position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute;
  top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(139,155,122,0.15);
}
.about-card-title {
  font-family: var(--font-sf-display);
  font-size: 1.6rem; font-weight: 200; letter-spacing: -0.02em;
  color: var(--ivory); margin-bottom: 2.2rem; line-height: 1.25;
  position: relative;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.stat-num {
  font-family: var(--font-sf-display);
  font-size: 2.8rem; font-weight: 200; letter-spacing: -0.03em;
  color: var(--sage-light);
}
.stat-label {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(245,240,232,0.5); margin-top: 0.2rem;
}

/* ─── PHYSICIAN ─── */
#physician {
  background: var(--ivory-2);
  border-top: 1px solid var(--border);
}

.physician-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 6rem; align-items: center;
}

.physician-image-col { position: relative; }

.physician-art-frame {
  width: 100%; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 2px rgba(26,26,24,0.04),
              0 8px 16px rgba(26,26,24,0.07),
              0 24px 48px rgba(26,26,24,0.1);
  border: 1px solid var(--border);
  position: relative;
}
.physician-art-frame::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
  border-radius: 8px; pointer-events: none;
}
.physician-art-img { width: 100%; height: auto; display: block; }

.physician-caption {
  margin-top: 1rem;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-muted); text-align: center;
}

.physician-name {
  font-family: var(--font-sf-display);
  font-size: clamp(2.2rem, 3vw, 3.2rem); font-weight: 200;
  letter-spacing: -0.025em; color: var(--ink); margin-bottom: 0.4rem;
  line-height: 1.1;
}
.physician-role {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 2rem;
}
.physician-bio {
  font-size: 1.05rem; font-weight: 300; line-height: 1.8;
  color: var(--ink-mid); margin-bottom: 2.2rem;
}
.physician-quote {
  border-left: 2px solid var(--sage);
  padding: 1.2rem 1.6rem;
  background: rgba(139,155,122,0.06);
  border-radius: 0 4px 4px 0;
  font-family: var(--font-sf-display);
  font-size: 1.15rem; font-style: italic; font-weight: 300;
  color: var(--ink-mid); line-height: 1.7;
}
.physician-credentials {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem;
}
.credential-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem; border-radius: 40px;
  border: 1px solid var(--border); background: var(--white);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mid);
  transition: all 0.25s;
}
.credential-tag:hover {
  border-color: var(--sage); color: var(--sage-dark);
  background: rgba(139,155,122,0.06);
}

/* ─── SERVICES ─── */
#services {
  background: var(--ivory);
  border-top: 1px solid var(--border);
}
.services-header { text-align: center; max-width: 580px; margin: 0 auto 5rem; }
.services-header .rule { margin: 1.5rem auto; }

.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5px; background: var(--border); border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }

.service-card {
  background: var(--white); padding: 2.4rem 2.2rem;
  position: relative; overflow: hidden;
  transition: background 0.3s;
}
.service-card:hover { background: var(--ivory-2); }

.service-num {
  font-family: var(--font-sf-display);
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em;
  color: var(--ink-muted); margin-bottom: 2rem;
}
.service-icon { font-size: 1.5rem; margin-bottom: 1.2rem; }
.service-name {
  font-family: var(--font-sf-display);
  font-size: 1.25rem; font-weight: 300; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 0.75rem; line-height: 1.3;
}
.service-desc { font-size: 0.88rem; font-weight: 300; line-height: 1.7; color: var(--ink-mid); }

/* ─── PREVENTATIVE ─── */
#preventative {
  background: var(--ivory-2);
  border-top: 1px solid var(--border);
}
.prev-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start;
}

.prev-body {
  font-size: 1rem; font-weight: 300; line-height: 1.75;
  color: var(--ink-mid); margin-bottom: 2.5rem;
}

.prev-list { list-style: none; display: flex; flex-direction: column; }
.prev-list li {
  display: flex; align-items: baseline; gap: 0.9rem;
  font-size: 0.92rem; font-weight: 300; color: var(--ink-mid);
  padding: 0.8rem 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.prev-list li:hover { color: var(--ink); }
.prev-list li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--sage); flex-shrink: 0; margin-top: 0.45em;
}

.executive-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 2.5rem;
}
.exec-title {
  font-family: var(--font-sf-display);
  font-size: 1.5rem; font-weight: 200; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 2rem; padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.exec-group { margin-bottom: 2rem; }
.exec-group-title {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.9rem;
}
.exec-items { display: flex; flex-direction: column; gap: 0.6rem; }
.exec-items span {
  font-size: 0.84rem; font-weight: 300; color: var(--ink-mid); line-height: 1.6;
  padding-left: 0.9rem; border-left: 1.5px solid var(--border);
}

/* ─── TESTIMONIALS ─── */
#testimonials {
  background: var(--ivory);
  border-top: 1px solid var(--border);
}
.testimonials-header { text-align: center; margin-bottom: 4.5rem; }

.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }

.testimonial-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 2.2rem; position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
  border-color: var(--sage-light);
  box-shadow: 0 8px 32px rgba(26,26,24,0.06);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: 1.2rem; left: 1.8rem;
  font-family: var(--font-sf-display);
  font-size: 3.5rem; font-weight: 200; color: var(--stone); opacity: 0.6;
  line-height: 1; pointer-events: none;
}
.testimonial-text {
  font-size: 0.95rem; font-weight: 300; line-height: 1.8;
  color: var(--ink-mid); margin-bottom: 1.8rem; padding-top: 1.8rem;
}
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.author-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ivory-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 500; color: var(--ink-mid);
  font-family: var(--font-sf-display);
}
.author-name { font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.author-location { font-size: 0.72rem; font-weight: 400; color: var(--ink-muted); }

/* ─── CONTACT ─── */
#contact {
  background: var(--ivory-2);
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: center;
}
.contact-inner { max-width: 640px; width: 100%; }
.contact-body {
  font-size: 1rem; font-weight: 300; line-height: 1.8;
  color: var(--ink-mid); margin-bottom: 3rem;
}
.contact-item { display: flex; align-items: flex-start; gap: 1.2rem; margin-bottom: 1.8rem; }
.contact-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: var(--ivory); flex-shrink: 0;
  margin-top: 0.1rem;
}
.contact-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.25rem;
}
.contact-value { font-size: 1rem; font-weight: 300; color: var(--ink); }
.contact-value a { color: var(--sage-dark); text-decoration: none; transition: color 0.2s; }
.contact-value a:hover { color: var(--terracotta); }

/* ─── FOOTER ─── */
footer {
  background: var(--ink); padding: 2.8rem 5.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-logo-img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; opacity: 0.85;
}
.footer-logo-name {
  font-family: var(--font-sf-display);
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory);
}
.footer-logo-sub {
  font-size: 0.65rem; font-weight: 400;
  color: rgba(245,240,232,0.45); letter-spacing: 0.08em; margin-top: 0.15rem;
}
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  color: rgba(245,240,232,0.5); text-decoration: none;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; transition: color 0.25s;
}
.footer-links a:hover { color: var(--sage-light); }
.footer-copy { font-size: 0.68rem; color: rgba(245,240,232,0.3); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px)  {
  .physician-grid { grid-template-columns: 1fr; gap: 3rem; }
  .prev-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 860px)  {
  nav { padding: 0.9rem 1.5rem; } .nav-links { display: none; }
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 7rem 1.5rem 2rem; }
  .hero-visual { height: 360px; }
  .hero-logo-wrap { width: 260px; height: 260px; }
  section { padding: 4.5rem 1.5rem; }
  #about { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 2rem; text-align: center; padding: 2rem 1.5rem; }
  .footer-brand { justify-content: center; }
}
