/*
Theme Name: Dr. Jasselle Cabugao
Theme URI: https://www.thirtytwodental.com
Author: Kyle Cabugao
Author URI: https://www.thirtytwodental.com
Description: Elegant landing page theme for Dr. Jasselle Cabugao, Restorative & Cosmetic Dentist.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: dr-jasselle
*/

:root {
  --white: #FAFAF8;
  --off-white: #F4F2EE;
  --gold: #C9A96E;
  --gold-light: #E8D9BA;
  --charcoal: #1C1C1C;
  --mid: #5A5751;
  --light-text: #9A9590;
  --sage: #8A9E8C;
  --border: #E8E4DC;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--charcoal);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 56px;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
nav.scrolled { border-color: var(--border); padding: 18px 56px; }

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }

/* wp_nav_menu outputs <ul class="nav-links"><li><a> — these cover all cases */
.nav-links { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
.nav-links li { list-style: none; }
.nav-links li a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
}
.nav-links li a:hover { color: var(--charcoal); }

/* To make the "Inquire" link a button:
   WP Admin → Appearance → Menus → that item → CSS Classes → type: nav-cta */
.nav-links li.nav-cta > a {
  background: var(--charcoal);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 2px;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}
.nav-links li.nav-cta > a:hover { background: var(--gold); color: var(--white) !important; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px;
  position: relative;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}
.hero-eyebrow-line { width: 40px; height: 1px; background: var(--gold); }
.hero-eyebrow span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--charcoal);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.35s;
}
.hero h1 em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--mid);
  max-width: 420px;
  line-height: 1.75;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.65s;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--white);
  padding: 16px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  padding: 15px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--charcoal); }

.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  opacity: 0;
  animation: fadeIn 1.2s ease forwards 0.3s;
}

.hero-image-wrap {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #EDE8DF 0%, #D8CEBC 40%, #C5B99E 100%);
  display: flex;
  align-items: flex-end;
  padding: 48px;
}

/* If a photo is set, cover it */
.hero-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  background: rgba(250,250,248,0.95);
  border: 1px solid var(--border);
  padding: 24px 28px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}
.hero-badge-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.hero-badge-sub { font-size: 0.75rem; color: var(--mid); letter-spacing: 0.06em; }
.hero-badge-stars { display: flex; gap: 2px; margin-top: 10px; }
.star { color: var(--gold); font-size: 0.8rem; }

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--charcoal);
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(250,250,248,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}
.trust-item-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── SECTION BASE ─── */
section { padding: 100px 56px; }

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.section-label-line { width: 32px; height: 1px; background: var(--gold); }
.section-label span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ─── ABOUT ─── */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  align-items: stretch;
  background: var(--off-white);
  padding: 0;
}

.about-panel {
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 72px 56px;
  position: relative;
  overflow: hidden;
}
.about-panel::before {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  font-size: 28rem;
  line-height: 0.75;
  color: rgba(255,255,255,0.03);
  position: absolute;
  top: 0; left: -20px;
  pointer-events: none;
}
.about-panel-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(250,250,248,0.9);
  line-height: 1.45;
  position: relative;
  z-index: 1;
}
.about-panel-quote em { color: var(--gold); font-style: normal; }

.about-panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.about-panel-stat { padding: 24px 0; background: var(--charcoal); }
.about-panel-stat:nth-child(even) { padding-left: 24px; }
.about-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 5px;
}
.about-stat-label {
  font-size: 0.7rem;
  color: rgba(250,250,248,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-content { padding: 72px 64px 72px 56px; }
.about-content .section-title { margin-bottom: 24px; }

.about-body {
  font-size: 0.97rem;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 36px 0 40px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.credential-item { display: flex; align-items: flex-start; gap: 16px; }
.credential-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.credential-icon svg { width: 12px; height: 12px; fill: var(--gold); }
.credential-text { font-size: 0.88rem; color: var(--charcoal); line-height: 1.5; }
.credential-text strong { font-weight: 500; }

/* ─── SERVICES ─── */
.services { background: var(--white); }
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 60px;
}
.services-intro { font-size: 0.97rem; color: var(--mid); line-height: 1.8; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-card {
  background: var(--off-white);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: background 0.3s;
}
.service-card:hover { background: var(--charcoal); }
.service-card:hover .service-title,
.service-card:hover .service-desc,
.service-card:hover .service-num { color: rgba(250,250,248,0.9); }
.service-card:hover .service-line { background: var(--gold); }

.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  color: var(--light-text);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  transition: color 0.3s;
}
.service-line {
  width: 28px; height: 1px;
  background: var(--gold);
  margin-bottom: 24px;
  transition: background 0.3s;
}
.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 14px;
  line-height: 1.3;
  transition: color 0.3s;
}
.service-desc {
  font-size: 0.84rem;
  color: var(--mid);
  line-height: 1.75;
  transition: color 0.3s;
}

/* ─── WHY ─── */
.why {
  background: var(--charcoal);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why .section-label span { color: var(--gold); }
.why .section-title { color: var(--white); }

.why-body {
  font-size: 0.97rem;
  color: rgba(250,250,248,0.65);
  line-height: 1.85;
  margin-bottom: 40px;
}
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.stat-item { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.78rem; color: rgba(250,250,248,0.5); letter-spacing: 0.08em; }

.why-right { display: flex; flex-direction: column; gap: 24px; }
.why-pillar {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 2px;
  transition: border-color 0.3s, background 0.3s;
}
.why-pillar:hover { border-color: rgba(201,169,110,0.4); background: rgba(201,169,110,0.05); }
.pillar-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(201,169,110,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.pillar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
}
.pillar-desc { font-size: 0.83rem; color: rgba(250,250,248,0.5); line-height: 1.65; }

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--off-white); }
.testimonials-header { text-align: center; max-width: 560px; margin: 0 auto 64px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.testimonial-card {
  background: var(--white);
  padding: 40px 36px;
  border-radius: 2px;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
}
.testimonial-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.06); transform: translateY(-4px); }

.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  line-height: 0.7;
  color: var(--gold-light);
  margin-bottom: 20px;
  display: block;
}
.testimonial-text {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 28px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.author-name { font-size: 0.84rem; font-weight: 500; color: var(--charcoal); }
.author-tag { font-size: 0.72rem; color: var(--light-text); }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 16px; }

.review-source-link {
  margin-left: auto;
  color: var(--light-text);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  flex-shrink: 0;
}
.review-source-link:hover { color: var(--gold); }

/* ─── BOOKING ─── */
.booking {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.booking-left .section-title { margin-bottom: 20px; }
.booking-desc { font-size: 0.97rem; color: var(--mid); line-height: 1.8; margin-bottom: 40px; }

.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: center; gap: 16px; font-size: 0.9rem; color: var(--mid); }
.contact-item-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item a { color: var(--charcoal); text-decoration: none; font-weight: 400; }
.contact-item a:hover { color: var(--gold); }

/* ─── FORM ─── */
.booking-form {
  background: var(--off-white);
  padding: 52px 48px;
  border-radius: 2px;
  border: 1px solid var(--border);
}
.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.form-sub { font-size: 0.84rem; color: var(--mid); margin-bottom: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  background: var(--charcoal);
  color: var(--white);
  border: none;
  padding: 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 8px;
  transition: background 0.25s;
}
.form-submit:hover { background: var(--gold); }
.form-note { text-align: center; font-size: 0.72rem; color: var(--light-text); margin-top: 14px; }

/* ─── LOCATION CHIP ─── */
.location-chip {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.09);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 240px;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.6s ease forwards 1.2s;
  transition: box-shadow 0.2s, transform 0.2s;
}
.location-chip:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.13); transform: translateY(-2px); }
.location-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex-shrink: 0; margin-top: 4px; }
.location-chip-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light-text); margin-bottom: 5px; }
.location-chip-name { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 500; color: var(--charcoal); line-height: 1.2; margin-bottom: 4px; }
.location-chip-detail { font-size: 0.72rem; color: var(--mid); line-height: 1.5; }
.location-chip-detail a { color: var(--gold); text-decoration: none; }
.location-chip-detail a:hover { text-decoration: underline; }
.location-chip-close { position: absolute; top: 8px; right: 10px; font-size: 0.8rem; color: var(--light-text); cursor: pointer; background: none; border: none; padding: 2px 4px; }
.location-chip-close:hover { color: var(--charcoal); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--charcoal);
  padding: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 500; color: rgba(250,250,248,0.9); }
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250,250,248,0.45); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.72rem; color: rgba(250,250,248,0.3); letter-spacing: 0.05em; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 16px 24px; }
  .nav-links { display: none; }
  section { padding: 72px 24px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 80px 24px 60px; }
  .hero-right { height: 380px; }
  .trust-bar { padding: 24px; gap: 24px; }
  .about { grid-template-columns: 1fr; }
  .about-panel { padding: 48px 24px; min-height: 320px; }
  .about-content { padding: 48px 24px; }
  .services-header { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; gap: 56px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; gap: 48px; }
  .booking-form { padding: 36px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 40px 24px; }
  .footer-links { flex-wrap: wrap; gap: 20px; }
  .location-chip { bottom: 16px; right: 16px; max-width: 210px; }
}

/* ─── REVEAL SAFETY NET ───────────────────────────────────
   If JS hasn't fired within 2s (slow connection, observer
   miss, wide viewport), this animation kicks in as a
   fallback so nothing stays permanently hidden.          */
@keyframes revealFallback {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: revealFallback 0.7s ease forwards;
  animation-delay: 0.2s;
}
.reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: none;
}
