/* ==========================================================
   Yuna's Dental Clinic — Public Website
   ========================================================== */

:root {
  --plum: #3d1a52;
  --plum-dark: #2a0f3b;
  --purple: #7b3fa0;
  --purple-light: #b98fe0;
  --lavender: #f3ecfa;
  --lavender-soft: #faf7fd;
  --gold: #e8b84b;
  --white: #ffffff;
  --ink: #2b2233;
  --ink-soft: #6b5f76;
  --border: #e6dcf0;
  --shadow: 0 12px 32px -14px rgba(61, 26, 82, 0.28);
  --shadow-sm: 0 4px 14px -6px rgba(61, 26, 82, 0.22);
  --radius: 18px;
  --radius-sm: 10px;
  --max-width: 1180px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gradient: linear-gradient(135deg, var(--plum) 0%, var(--purple) 55%, var(--purple-light) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--plum-dark);
  line-height: 1.25;
}

p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--lavender);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section {
  padding: 90px 0;
}

.section--alt {
  background: var(--lavender-soft);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--plum);
  border: 2px solid var(--purple-light);
}

.btn--outline:hover {
  background: var(--lavender);
  border-color: var(--purple);
}

.btn--light {
  background: var(--white);
  color: var(--plum);
}

.btn--light:hover {
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: 12px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 1.05rem;
  color: var(--plum-dark);
  font-weight: 700;
}

.brand__text span {
  font-size: 0.72rem;
  color: var(--purple);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--purple);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--plum-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--lavender-soft);
  padding: 70px 0 90px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.12;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 18px;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.05rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero__stats div strong {
  display: block;
  font-size: 1.6rem;
  color: var(--plum-dark);
}

.hero__stats div span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__art .card-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__art .card-float.top {
  top: 10px;
  left: -10px;
}

.hero__art .card-float.bottom {
  bottom: 10px;
  right: -10px;
}

.hero__art img {
  width: 100%;
  max-width: 380px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* ---------- Feature / service cards ---------- */
.grid {
  display: grid;
  gap: 26px;
}

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

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

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--white);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

.card--service {
  display: flex;
  flex-direction: column;
}

.card--service .price {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 700;
  color: var(--purple);
  font-size: 0.9rem;
}

/* ---------- Why choose us ---------- */
.why {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.why__list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.why__item {
  display: flex;
  gap: 16px;
}

.why__item .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lavender);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.why__item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.why__item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.why__art img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- CTA band ---------- */
.cta {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--white);
}

.cta h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* ---------- Team ---------- */
.team-card {
  text-align: center;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 700;
}

.team-card h3 {
  margin-bottom: 2px;
}

.team-card span {
  color: var(--purple);
  font-weight: 600;
  font-size: 0.85rem;
}

/* ---------- Forms ---------- */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plum-dark);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(123, 63, 160, 0.12);
}

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

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--purple);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.form-error {
  display: none;
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c2c0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.86rem;
  margin-bottom: 16px;
}

.form-error.show {
  display: block;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
}

.contact-info {
  display: grid;
  gap: 20px;
  align-content: start;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.contact-info__item .icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gradient);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-info__item h4 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-info__item p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  border-radius: var(--radius);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--plum-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer__brand img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.footer__brand strong {
  color: var(--white);
  font-size: 1.05rem;
}

.footer h4 {
  color: var(--white);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.footer ul li a:hover {
  color: var(--white);
}

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__bottom a {
  color: var(--purple-light);
  font-weight: 600;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--lavender-soft);
  padding: 56px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero .eyebrow {
  margin-bottom: 12px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--purple);
  font-weight: 600;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner,
  .why,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__art {
    order: -1;
  }

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav__links,
  .nav__actions .btn--outline {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
    z-index: 90;
  }

  body.nav-open .nav {
    transform: translateY(0);
  }

  .nav__links {
    flex-direction: column;
    gap: 16px;
  }

  .nav__actions {
    margin-top: 18px;
  }

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

  .cta {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .form-card {
    padding: 26px;
  }
}
