/* ============================================
   DR. BAC H NGUYEN — PRIMARY CARE WEBSITE
   Custom styles complementing Tailwind CSS
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a2e1a;
  background: #fbfaf7;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section helpers ---------- */
.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3d7a3d;
  margin-bottom: 10px;
}

.section__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: #1a2e1a;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  color: #4a5e4a;
  max-width: 600px;
  line-height: 1.7;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__header .section__desc {
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 50px;
  padding: 13px 28px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: #3d7a3d;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(61, 122, 61, 0.3);
}

.btn--primary:hover {
  background: #2d5c2d;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(61, 122, 61, 0.4);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ========== NAVBAR ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(61, 122, 61, 0.1);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(26, 46, 26, 0.08);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  color: #1a2e1a;
}

.nav__logo {
  color: #3d7a3d;
  flex-shrink: 0;
}

.nav__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a5e4a;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav__links a:hover {
  color: #3d7a3d;
  background: rgba(61, 122, 61, 0.07);
}

.nav__cta {
  background: #3d7a3d !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}

.nav__cta:hover {
  background: #2d5c2d !important;
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}

.nav__bar {
  width: 22px;
  height: 2px;
  background: #1a2e1a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #1a3a1a 0%,
    #2d5c2d 25%,
    #3d7a3d 50%,
    #5ca05c 75%,
    #86bc86 100%
  );
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(134, 188, 134, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(92, 160, 92, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(45, 92, 45, 0.4) 0%, transparent 70%);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__sub strong {
  color: #ffffff;
  font-weight: 600;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  max-width: 520px;
  margin: 0 auto;
}

.hero__trust-item {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
}

.trust__num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.trust__label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.hero__trust-sep {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  animation: float 2.4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========== SERVICES ========== */
.services {
  padding: 100px 0;
  background: #fbfaf7;
}

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

.card {
  background: #ffffff;
  border: 1px solid rgba(61, 122, 61, 0.1);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 46, 26, 0.1);
  border-color: rgba(61, 122, 61, 0.2);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f5f0, #d9e8d9);
  border-radius: 12px;
  color: #3d7a3d;
  margin-bottom: 20px;
}

.card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a2e1a;
  margin-bottom: 10px;
  line-height: 1.35;
}

.card__body {
  font-size: 0.9375rem;
  color: #4a5e4a;
  line-height: 1.7;
}

/* ========== ABOUT ========== */
.about {
  padding: 100px 0;
  background: linear-gradient(180deg, #f0f5f0 0%, #fbfaf7 100%);
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 5/6;
  box-shadow: 0 20px 60px rgba(26, 46, 26, 0.15);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__floating-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: #ffffff;
  border: 1px solid rgba(61, 122, 61, 0.15);
  border-radius: 14px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(26, 46, 26, 0.12);
}

.about__floating-card svg {
  color: #3d7a3d;
  flex-shrink: 0;
}

.about__float-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a2e1a;
}

.about__float-sub {
  display: block;
  font-size: 0.8rem;
  color: #6b8a6b;
}

.about__text .section__title {
  margin-bottom: 20px;
}

.about__lead {
  font-size: 1.1rem;
  color: #2d5c2d;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about__text p {
  font-size: 0.9375rem;
  color: #4a5e4a;
  line-height: 1.75;
  margin-bottom: 14px;
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a2e1a;
}

.value-item__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(61, 122, 61, 0.15);
  border-radius: 10px;
  color: #3d7a3d;
  flex-shrink: 0;
}

/* ========== APPROACH ========== */
.approach {
  padding: 100px 0;
  background: #ffffff;
}

.approach__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  padding: 32px 24px;
  background: linear-gradient(135deg, #f0f5f0, #fbfaf7);
  border: 1px solid rgba(61, 122, 61, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 46, 26, 0.08);
}

.step__num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(61, 122, 61, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.step__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a2e1a;
  margin-bottom: 10px;
}

.step__body {
  font-size: 0.875rem;
  color: #4a5e4a;
  line-height: 1.7;
}

/* ========== INSURANCE ========== */
.insurance {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a3a1a, #2d5c2d, #3d7a3d);
}

.insurance__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.insurance__text {
  flex: 1;
  min-width: 0;
}

.insurance__text .section__eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.insurance__text .section__title {
  color: #ffffff;
  margin-bottom: 16px;
}

.insurance__body {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  max-width: 480px;
}

.insurance__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.insurance__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px 22px;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9375rem;
  backdrop-filter: blur(8px);
}

.insurance__item svg {
  color: #86bc86;
  flex-shrink: 0;
}

/* ========== CONTACT ========== */
.contact {
  padding: 100px 0;
  background: #fbfaf7;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__info .section__title {
  margin-bottom: 16px;
}

.contact__desc {
  font-size: 1rem;
  color: #4a5e4a;
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__detail-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(61, 122, 61, 0.12);
  border-radius: 12px;
  color: #3d7a3d;
  flex-shrink: 0;
}

.contact__detail strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3d7a3d;
  margin-bottom: 4px;
}

.contact__detail span,
.contact__detail a {
  font-size: 0.9375rem;
  color: #4a5e4a;
  line-height: 1.6;
}

.contact__detail a:hover {
  color: #3d7a3d;
  text-decoration: underline;
}

/* Form */
.contact__form-wrap {
  background: #ffffff;
  border: 1px solid rgba(61, 122, 61, 0.1);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 8px 40px rgba(26, 46, 26, 0.06);
}

.contact__form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: #1a2e1a;
  margin-bottom: 24px;
}

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

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form__group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a2e1a;
  letter-spacing: 0.04em;
}

.form__group input,
.form__group select,
.form__group textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  color: #1a2e1a;
  background: #fbfaf7;
  border: 1.5px solid rgba(61, 122, 61, 0.2);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: #3d7a3d;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(61, 122, 61, 0.1);
}

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

.form__success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  background: #f0f5f0;
  border: 1px solid rgba(61, 122, 61, 0.2);
  border-radius: 10px;
  font-size: 0.875rem;
  color: #2d5c2d;
  font-weight: 500;
}

.form__success svg {
  color: #3d7a3d;
  flex-shrink: 0;
}

/* ========== FOOTER ========== */
.footer {
  background: #142714;
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer__logo svg {
  color: #86bc86;
}

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 260px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #86bc86;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer__contact a:hover {
  color: #86bc86;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer__disclaimer {
  max-width: 480px;
  text-align: right;
  line-height: 1.6;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-state="hidden"] {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-state="hidden"] {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal[data-state="visible"] {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about__layout {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: #fbfaf7;
    flex-direction: column;
    align-items: stretch;
    padding: 88px 24px 32px;
    gap: 4px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
  }

  .nav__links.open {
    transform: translateX(0);
  }

  .nav__links a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav__cta {
    text-align: center;
    margin-top: 8px;
  }

  .hero__content {
    padding: 100px 20px 80px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__trust {
    flex-direction: column;
    gap: 0;
  }

  .hero__trust-item {
    padding: 14px 20px;
  }

  .hero__trust-sep {
    width: 100%;
    height: 1px;
  }

  .services {
    padding: 72px 0;
  }

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

  .about {
    padding: 72px 0;
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image-wrap {
    max-width: 400px;
    margin: 0 auto;
  }

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

  .approach {
    padding: 72px 0;
  }

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

  .insurance {
    padding: 64px 0;
  }

  .insurance__inner {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .insurance__body {
    margin: 0 auto;
  }

  .contact {
    padding: 72px 0;
  }

  .contact__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__disclaimer {
    text-align: center;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__content {
    padding: 90px 16px 72px;
  }

  .contact__form-wrap {
    padding: 24px;
  }
}
