/* ============================================================
   Whitmore Plastic Surgery — Demo Site
   Master stylesheet
   ============================================================ */

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

:root {
  --bg-cream:      #faf7f2;
  --bg-warm:       #f3ede4;
  --bg-deep:       #1a1a1a;
  --text-primary:  #1a1a1a;
  --text-muted:    #6b6259;
  --text-light:    #a59b8e;
  --accent:        #b8956a;
  --accent-dark:   #8d6f4a;
  --border-soft:   #e0d6c8;
  --border-deep:   #2a2a2a;
  --white:         #ffffff;

  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width:     1280px;
  --gutter:        clamp(20px, 4vw, 64px);
  --section-pad:   clamp(60px, 9vw, 140px);

  --shadow-soft:   0 20px 60px rgba(26,26,26,0.08);
  --shadow-deep:   0 30px 80px rgba(26,26,26,0.18);

  --ease:          cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 300; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
h4 { font-size: 1.15rem; font-weight: 500; }

p { margin-bottom: 1.1em; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.eyebrow.light { color: var(--bg-warm); }
.eyebrow.muted { color: var(--text-light); }

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--text-primary);
  font-style: italic;
}

.divider {
  width: 56px;
  height: 1px;
  background: var(--accent);
  border: 0;
  margin: 1.8rem 0;
}

.divider.center { margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-pad) 0;
}

.section.tight { padding: clamp(40px, 6vw, 80px) 0; }

.section.warm  { background: var(--bg-warm); }
.section.deep  { background: var(--bg-deep); color: var(--bg-warm); }
.section.deep h1, .section.deep h2, .section.deep h3, .section.deep h4 { color: var(--bg-cream); }
.section.deep p { color: #c2b8a8; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
}

.nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.nav .btn-pill { color: var(--white); }
.nav .btn-pill::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 28px var(--gutter) 36px;
    background: var(--bg-cream);
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-toggle { display: block; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all .35s var(--ease);
}

.btn:hover {
  background: var(--text-primary);
  color: var(--bg-cream);
}

.btn-pill {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  border-radius: 999px;
  padding: 14px 26px;
}

.btn-pill:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

.btn-light {
  border-color: var(--bg-warm);
  color: var(--bg-warm);
}

.btn-light:hover {
  background: var(--bg-warm);
  color: var(--text-primary);
}

.btn-arrow::after {
  content: '→';
  font-size: 1rem;
  letter-spacing: 0;
  transition: transform .35s var(--ease);
}

.btn-arrow:hover::after { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

.text-link:hover { color: var(--accent); }

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

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}

.hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(50px, 8vw, 100px);
}

.hero h1 {
  color: var(--white);
  max-width: 14ch;
  margin-bottom: 1.6rem;
}

.hero p {
  color: rgba(255,255,255,0.85);
  max-width: 46ch;
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
}

.hero .eyebrow { color: var(--accent); }

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-page {
  min-height: 50vh;
  align-items: flex-end;
}

.hero-page h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }

/* ---------- Grids ---------- */

.grid {
  display: grid;
  gap: clamp(28px, 3.5vw, 56px);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3.two-up-mobile, .grid-4.two-up-mobile { grid-template-columns: repeat(2, 1fr); }
}

.intro-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

@media (max-width: 900px) { .intro-row { grid-template-columns: 1fr; } }

/* ---------- Procedure Cards ---------- */

.proc-card {
  position: relative;
  display: block;
  background: var(--white);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.proc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.proc-card .img {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  transition: transform .8s var(--ease);
}

.proc-card:hover .img { transform: scale(1.04); }

.proc-card .body {
  padding: 26px 28px 30px;
}

.proc-card .body h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.proc-card .body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.proc-card .read {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Wide Image Block ---------- */

.image-block {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

.image-block.tall { aspect-ratio: 4 / 5; }

/* ---------- Stats / Credentials ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 50px 0;
}

@media (max-width: 700px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

.stat .num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 10px;
}

.stat .num .accent { color: var(--accent); }

.stat .label {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Testimonial ---------- */

.testimonial {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.testimonial blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 300;
  line-height: 1.45;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Logo Strip ---------- */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.logo-strip span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  flex: 1;
  text-align: center;
  min-width: 130px;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 700px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-warm);
}

.gallery-item .img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s var(--ease);
}

.gallery-item:hover .img { transform: scale(1.06); }

.gallery-item .label {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(255,255,255,0.9);
  color: var(--text-primary);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 6px 12px;
}

/* Before / After side-by-side */
.ba-card {
  background: var(--white);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.ba-card .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ba-card .pair > div {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-warm) center/cover no-repeat;
}

.ba-card .pair > div::after {
  content: attr(data-label);
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,0.92);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 4px 10px;
  color: var(--text-primary);
}

.ba-card .meta {
  padding: 18px 6px 8px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- FAQ / Accordion ---------- */

.faq details {
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-primary);
  gap: 20px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform .3s var(--ease);
  flex-shrink: 0;
}

.faq details[open] summary::after { content: '−'; }

.faq details > p,
.faq details > ul {
  padding-top: 14px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.faq details > ul { padding-left: 1.2rem; }
.faq details > ul li { margin-bottom: 8px; }

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
}

.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  padding: 8px 0 12px;
  color: var(--text-primary);
  transition: border-color .3s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- Blog cards ---------- */

.post-card {
  display: block;
  background: var(--white);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.post-card .img {
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
}

.post-card .body { padding: 26px 28px 30px; }

.post-card .meta {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.post-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 12px;
  line-height: 1.25;
}

.post-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

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

.site-footer {
  background: var(--bg-deep);
  color: #c2b8a8;
  padding: 90px 0 40px;
}

.site-footer .top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-deep);
}

@media (max-width: 900px) {
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-footer .top { grid-template-columns: 1fr; }
}

.site-footer h4 {
  color: var(--bg-warm);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 22px;
}

.site-footer .brand {
  font-family: var(--font-serif);
  color: var(--bg-warm);
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.site-footer .brand small { color: var(--accent); }

.site-footer p { color: #968a7c; font-size: 0.92rem; }

.site-footer ul { list-style: none; }

.site-footer li {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.site-footer a:hover { color: var(--accent); }

.site-footer .bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
  font-size: 0.78rem;
  color: #6e6357;
}

/* ---------- Banner / Demo notice ---------- */

.demo-banner {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 9px 16px;
  font-weight: 500;
}

/* ---------- Animation ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}
