/*
Theme Name:   Regenerate iV Bar & Aesthetics
Theme URI:    https://www.regenerateivbar.com
Author:       Built for Regenerate iV Bar & Aesthetics
Description:  Medical-spa theme for Regenerate iV Bar & Aesthetics, Union City, CA. Serif/cream editorial layout with a Treatments custom post type, FAQ accordions, service areas and a one-click content importer. Works with no plugins, and is fully editable in Elementor via 14 bundled widgets plus Theme Builder support.
Version:      1.1.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  regenerate
Tags:         business, portfolio, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   Regenerate iV Bar & Aesthetics
   Design system modelled on the "Martaria" aesthetic-clinic layout
   ========================================================================== */

:root {
  --dark:        #1C2623;
  --dark-soft:   #243029;
  --cream:       #ECEAE1;
  --card:        #F3F5EE;
  --text:        #3F3F3F;
  --muted:       #6B6F6B;
  --lime:        #E3F21A;
  --line:        rgba(28, 38, 35, .14);
  --line-dark:   rgba(243, 245, 238, .18);

  --serif: "Libre Baskerville", Georgia, serif;
  --sans:  "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui:    "Lato", system-ui, sans-serif;

  --radius:    20px;
  --radius-sm: 15px;
  --shell:     1240px;
  --gutter:    clamp(16px, 4vw, 48px);
  --section:   clamp(64px, 9vw, 120px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.16;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
h5 { font-size: 1rem; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- layout ---------- */
.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--dark { background: var(--dark); color: #D7DBD4; }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5 { color: var(--card); }
.section--card { background: var(--card); }

.eyebrow {
  font-family: var(--ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dark);
  margin: 0 0 18px;
}
.section--dark .eyebrow { color: var(--lime); }

.lede { font-size: 1.05rem; color: var(--muted); max-width: 62ch; }
.section--dark .lede { color: rgba(236, 234, 225, .78); }

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split > div > h2 { max-width: 14ch; }
.split > div > h2.wide { max-width: none; }
.head-row {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.head-row h2 { margin-bottom: 0; max-width: 16ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ui);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 14px 12px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--dark);
  color: var(--card);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn .dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--dark);
  display: grid; place-items: center;
  flex: 0 0 auto;
  transition: transform .25s ease;
}
.btn .dot svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .dot { transform: rotate(-45deg); }

.btn--light { background: var(--card); color: var(--dark); }
.btn--outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--line);
  padding: 12px 28px;
}
.section--dark .btn--outline { color: var(--card); border-color: var(--line-dark); }
.btn--plain { padding: 12px 28px; }
.btn--lime { background: var(--lime); color: var(--dark); }

.link-arrow {
  font-family: var(--ui);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
}
.section--dark .link-arrow { color: var(--lime); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- header ---------- */
.topbar {
  background: var(--dark);
  color: rgba(236, 234, 225, .85);
  font-size: .85rem;
  font-family: var(--ui);
}
.topbar .shell {
  display: flex; gap: 24px; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  padding-block: 9px;
}
.topbar a:hover { color: var(--lime); }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.site-header .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand-name {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.22rem; color: var(--dark); line-height: 1.1;
}
.brand-tag {
  display: block;
  font-family: var(--ui); font-size: .62rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li > a,
.nav > li > button {
  font-family: var(--ui);
  font-size: .97rem;
  font-weight: 700;
  padding: 10px 14px;
  color: var(--dark);
  background: none; border: 0;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px;
}
.nav > li > a:hover,
.nav > li > button:hover,
.nav > li > a[aria-current="page"] { color: #0e1512; background: rgba(28,38,35,.07); }
.nav .caret { width: 11px; height: 11px; transition: transform .25s ease; }
.nav li.open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  margin-top: 10px;
  min-width: 290px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  box-shadow: 0 24px 48px rgba(28, 38, 35, .14);
  display: none;
  max-height: 72vh; overflow-y: auto;
}
.nav li.open > .dropdown { display: block; }
.dropdown a {
  display: block; padding: 9px 14px; border-radius: 10px;
  font-family: var(--ui); font-size: .93rem; color: var(--text);
}
.dropdown a:hover { background: rgba(28,38,35,.07); color: var(--dark); }
.has-sub { position: relative; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none;
  width: 48px; height: 48px;
  border-radius: 14px; border: 0;
  background: var(--dark); color: var(--lime);
  place-items: center;
}
.burger svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 72px) 0; }
.hero-ghost {
  position: absolute; inset-inline: 0; top: 12%;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(5rem, 16vw, 15rem);
  text-align: center; line-height: 1;
  color: rgba(28, 38, 35, .07);
  letter-spacing: .02em;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr minmax(230px, 350px) .85fr;
  gap: clamp(20px, 2.5vw, 40px);
  align-items: end;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.1vw, 3.5rem);
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; }
.hero-media {
  border-radius: 320px 320px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #cfd3cb;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-right { padding-bottom: 36px; }
.hero-right p { font-weight: 600; color: var(--dark); max-width: 24ch; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-rating {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ui); font-size: .9rem; margin-top: 26px;
}
.hero-rating b { font-size: 1.15rem; color: var(--dark); }
.stars { color: #E8A020; letter-spacing: 2px; }

/* ---------- marquee strip ---------- */
.strip {
  background: var(--dark);
  color: var(--card);
  padding-block: 18px;
  font-family: var(--ui);
  overflow: hidden;
}
.strip-track {
  display: flex; gap: 44px; white-space: nowrap;
  animation: slide 38s linear infinite;
}
.strip-track span { display: inline-flex; align-items: center; gap: 44px; }
.strip-track i { color: var(--lime); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--line);
  height: 100%;
}
.section--dark .card {
  background: rgba(243, 245, 238, .05);
  border-color: var(--line-dark);
  color: rgba(236, 234, 225, .8);
}
.card h4 { margin-bottom: .5em; }
.card p { font-size: .95rem; color: var(--muted); }
.section--dark .card p { color: rgba(236, 234, 225, .72); }

.num-card .num {
  font-family: var(--serif); font-size: 1.6rem;
  color: var(--lime); display: block; margin-bottom: 10px;
}
.section--card .num-card .num,
.section:not(.section--dark) .num-card .num { color: var(--dark); opacity: .25; }

/* service tile */
.tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--dark-soft);
  isolation: isolate;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.tile:hover img { transform: scale(1.06); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,38,35,0) 32%, rgba(28,38,35,.88) 100%);
}
.tile-body {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  padding: 24px;
}
.tile-body h4 { color: var(--card); margin-bottom: 8px; }
.tile-body .link-arrow { color: var(--lime); font-size: .9rem; }

/* ---------- accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.section--dark .acc { border-color: var(--line-dark); }
.acc-item { border-bottom: 1px solid var(--line); }
.section--dark .acc-item { border-color: var(--line-dark); }
.acc-q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--dark);
}
.section--dark .acc-q { color: var(--card); }
.acc-q::after {
  content: "+";
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.5rem; font-weight: 300;
  color: var(--muted);
}
.section--dark .acc-q::after { color: var(--lime); }
.acc-item.open .acc-q::after { content: "\2013"; }
.acc-a {
  display: none;
  padding: 0 44px 24px 0;
  font-size: .96rem; color: var(--muted);
}
.section--dark .acc-a { color: rgba(236, 234, 225, .72); }
.acc-item.open .acc-a { display: block; }

/* ---------- media card ---------- */
.media-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: clamp(260px, 34vw, 440px);
  display: flex; align-items: flex-end;
  background: var(--dark-soft);
}
.media-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,38,35,.1) 30%, rgba(28,38,35,.85) 100%);
}
.media-card-body { position: relative; z-index: 2; padding: clamp(24px, 4vw, 48px); }
.media-card-body h2, .media-card-body h3 { color: var(--card); margin-bottom: 18px; }

/* ---------- team ---------- */
.person { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.person-img { aspect-ratio: 4 / 5; background: #d8dcd4; }
.person-img img { width: 100%; height: 100%; object-fit: cover; }
.person-body { padding: 24px; }
.person-body h4 { margin-bottom: 4px; }
.person-role { font-family: var(--ui); font-size: .85rem; color: var(--muted); margin-bottom: 12px; }

/* ---------- reviews ---------- */
.review-shell {
  background: var(--dark);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 64px);
  text-align: center;
}
.review-shell h2 { color: var(--card); }
.review-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 44px);
  max-width: 780px; margin-inline: auto;
}
.review-card .avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--dark); color: var(--lime);
  display: grid; place-items: center; margin: 0 auto 14px;
  font-family: var(--serif); font-size: 1.5rem;
}
.review-card blockquote {
  margin: 14px 0 0; font-size: 1.05rem; color: var(--text);
  font-weight: 500;
}

/* ---------- pricing ---------- */
.price-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  display: flex; flex-direction: column;
}
.price-card .tag {
  position: absolute; top: -14px; right: 24px;
  background: var(--lime); color: var(--dark);
  font-family: var(--ui); font-weight: 700; font-size: .78rem;
  padding: 5px 16px; border-radius: 999px;
}
.price {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem); color: var(--dark);
  line-height: 1; margin: 10px 0 16px;
}
.price span { font-size: 1rem; }
.price-list { margin: 18px 0 26px; display: grid; gap: 10px; }
.price-list li {
  display: flex; gap: 10px; font-size: .93rem; color: var(--muted);
}
.price-list li::before { content: "\2713"; color: var(--dark); font-weight: 700; }

/* ---------- forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--ui); font-weight: 700;
  font-size: .85rem; margin-bottom: 7px; color: var(--dark);
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: .95rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--dark); outline-offset: 1px;
}
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* ---------- page hero ---------- */
.page-hero { background: var(--dark); color: rgba(236,234,225,.8); padding-block: clamp(56px, 8vw, 104px); }
.page-hero h1 { color: var(--card); max-width: 20ch; }
.page-hero .lede { color: rgba(236,234,225,.76); }
.crumb {
  font-family: var(--ui); font-size: .84rem;
  color: rgba(236,234,225,.6); margin-bottom: 18px;
}
.crumb a:hover { color: var(--lime); }

/* ---------- misc ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li, .pill {
  font-family: var(--ui); font-size: .9rem;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--dark);
}
.section--dark .pill-list li { border-color: var(--line-dark); color: rgba(236,234,225,.85); }

.stat-row { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); }
.stat b { font-family: var(--serif); font-size: 2.2rem; color: var(--dark); display: block; line-height: 1; }
.section--dark .stat b { color: var(--lime); }
.stat span { font-family: var(--ui); font-size: .88rem; color: var(--muted); }
.section--dark .stat span { color: rgba(236,234,225,.7); }

.masonry { columns: 3; column-gap: 20px; }
.masonry img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 20px; break-inside: avoid; }

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p  { max-width: 72ch; }

.note-banner {
  background: var(--lime);
  color: var(--dark);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  font-family: var(--ui); font-weight: 700;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  justify-content: space-between;
}

/* ---------- footer ---------- */
.footer { background: var(--dark); color: rgba(236,234,225,.72); padding-block: clamp(56px, 7vw, 88px) 28px; }
.footer h5 {
  color: var(--card); font-family: var(--ui);
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer a:hover { color: var(--lime); }
.footer li { margin-bottom: 9px; font-size: .93rem; }
.footer-brand p { font-size: .94rem; max-width: 34ch; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between;
  font-size: .86rem;
}
.socials { display: flex; gap: 14px; }

.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark-soft);
  min-height: 300px;
  display: grid; align-items: center;
}
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.cta-band .inner { position: relative; z-index: 2; padding: clamp(28px, 5vw, 56px); }
.cta-band h2 { color: var(--card); max-width: 16ch; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-media { max-width: 420px; order: -1; margin-inline: auto; }
  .hero-ghost { top: 4%; }
  .hero-right { padding-bottom: 0; }
}
@media (max-width: 900px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: grid; }
  .split, .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
  .site-header.nav-open .nav {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--card); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 22px; gap: 2px;
    max-height: 78vh; overflow-y: auto;
  }
  .site-header { position: relative; }
  .dropdown { position: static; box-shadow: none; margin-top: 4px; }
}
@media (max-width: 620px) {
  .grid--4, .masonry { grid-template-columns: 1fr; columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .shell { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
