/* ==========================================================================
   House of Fok (USHUN Health) - Core Stylesheet
   Color Palette:
     - Light Background (LB): #ECE7DC
     - Accent Color: #042656
     - Primary Text: #070D1F
   Typography:
     - Headers: Jeju Myeongjo
     - Paragraphs: Enriqueta
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Jeju+Myeongjo&family=Enriqueta:wght@400;500;600;700&display=swap');

:root {
  --bg-lb: #ECE7DC;
  --bg-card: #F4EFE6;
  --color-accent: #042656;
  --color-accent-hover: #073575;
  --color-text: #070D1F;
  --color-text-muted: #3B475B;
  --color-border: #042656;
  --font-header: 'Jeju Myeongjo', 'Noto Serif KR', Georgia, serif;
  --font-body: 'Enriqueta', 'Georgia', serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --transition-fast: 0.25s ease;
  --transition-normal: 0.4s ease;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-lb);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* Base Container & Grid System */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  color: var(--color-accent);
  font-weight: 400;
  line-height: 1.25;
}

p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text);
}

/* Traditional Chinese Frame Box Component (using decor_top and decor_bottom) */
.frame-decor-box {
  position: relative;
  border: 2px solid var(--color-accent);;
  background-color: rgba(244, 239, 230, 0.5);
  margin: 2.5rem auto;
  max-width: 960px;
  box-shadow: 0 4px 20px rgba(4, 38, 86, 0.04);
}

.decor-top-bar {
  width: 100%;
  display: block;
  height: auto;
  margin-top: -1px;
}

.decor-bottom-bar {
  width: 100%;
  display: block;
  height: auto;
  margin-bottom: -1px;
}

.frame-decor-content {
  padding: 2.5rem 3rem;
  text-align: center;
}

.about-label {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: block;
}

.frame-decor-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.frame-decor-content p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text);
}

/* Traditional Corner Accents for Service Cards */
.traditional-frame {
  position: relative;
  border-left: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  background-color: rgba(244, 239, 230, 0.5);
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.specialization-card-content {
  padding: 1.75rem 1.5rem;
}

/* Standard Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ECE7DC;
  border: 1px solid var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: 0 4px 12px rgba(4, 38, 86, 0.25);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: #ECE7DC;
}

/* Top Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-lb);
  border-bottom: 1px solid rgba(4, 38, 86, 0.12);
  padding: 1rem 0;
  transition: backdrop-filter 0.3s;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-header);
  font-size: 1.4rem;
  color: var(--color-text);
  font-weight: 400;
}

.logo-img {
  width: 44px;
  height: 44px;
   border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--bg-lb);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.5rem;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 13, 31, 0.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-close {
  align-self: flex-end;
  font-size: 1.8rem;
  color: var(--color-accent);
  margin-bottom: 2rem;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-link {
  font-size: 1.2rem;
  font-family: var(--font-header);
  color: var(--color-text);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-emblem-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.hero-emblem-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.hero-content h1 {
  font-size: 2.75rem;
  color: var(--color-accent);
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* About House of Fok Box Section */
.about-box-section {
  padding: 2.5rem 0;
}

/* Practitioner Spotlight Section */
.practitioner-section {
  padding: 4rem 0;
}

.practitioner-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.practitioner-photo-wrapper {
  margin-bottom: 2rem;
}

.practitioner-photo {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-accent);
  box-shadow: 0 6px 18px rgba(4, 38, 86, 0.12);
}

.practitioner-info h2 {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.practitioner-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.practitioner-degrees {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.practitioner-bio {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
  margin-bottom: 2rem;
}

.button-group {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

/* Our Mission Section (Full Width Navy) */
.mission-section {
  background-color: var(--color-accent);
  color: #ECE7DC;
  padding: 5rem 0 0 0;
  text-align: center;
}

.mission-content {
  max-width: 860px;
  margin: 0 auto 4rem auto;
  padding: 0 1.5rem;
}

.mission-content h2 {
  color: #ECE7DC;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.mission-content p {
  color: #ECE7DC;
  font-size: 1.2rem;
  line-height: 1.8;
}

.mission-banner-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Services & Specializations Section */
.services-section {
  padding: 5rem 0;
  text-align: center;
}

.services-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.services-header .btn {
  margin-bottom: 3.5rem;
}

.specializations-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.specializations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.specialization-card {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.specialization-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(4, 38, 86, 0.08);
}

.specialization-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
  text-align: center;
}

.specialization-card p {
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Personalized Treatment Plans Section */
.personalized-section {
  padding: 4rem 0 0 0;
  text-align: center;
}

.personalized-section h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
}

/* Animated Treatment Plan Graphic Container */
.personalized-graphic-wrapper {
  position: relative;
  max-width: 680px;
  margin: 0 auto 3rem auto;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.plan-graphic-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.therapy-banner-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Book an Appointment & Location Section */
.booking-section {
  padding: 5rem 0;
  text-align: center;
}

.booking-header {
  max-width: 720px;
  margin: 0 auto 3rem auto;
}

.booking-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.booking-header p {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.contact-direct {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1.75rem;
}

.booking-action-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

/* Responsive Embedded Google Map Container */
.map-responsive-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(4, 38, 86, 0.1);
}

/* Provided mapouter class overrides with responsive specs */
.mapouter {
  position: relative;
  text-align: right;
  width: 100%;
  height: 543px; /* Default desktop height */
}

.gmap_canvas {
  overflow: hidden;
  background: none !important;
  width: 100%;
  height: 100%;
}

.gmap_iframe {
  width: 100% !important;
  height: 543px !important;
  border: 0;
}

/* Footer Section */
.site-footer {
  background-color: var(--bg-lb);
  border-top: 1px solid rgba(4, 38, 86, 0.15);
  padding: 3rem 0 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-header);
  font-size: 1.3rem;
  color: var(--color-text);
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}

.footer-contact-info {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(4, 38, 86, 0.08);
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* Responsive Layout Adjustments */

/* Tablet Viewport (768px - 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 260px 1fr;
    gap: 2rem;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .specializations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  /* Map Responsive Height for Tablet */
  .mapouter, .gmap_iframe {
    height: 440px !important;
  }
}

/* Mobile Viewport (< 768px) */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-emblem-card {
    max-width: 260px;
    margin: 0 auto;
  }
  .hero-content h1 {
    font-size: 1.9rem;
  }
  .practitioner-photo {
    width: 220px;
    height: 270px;
  }
  .specializations-grid {
    grid-template-columns: 1fr;
  }
  .button-group {
    flex-direction: column;
    width: 100%;
  }
  .button-group .btn {
    width: 100%;
  }
  .frame-decor-content {
    padding: 1.75rem 1.25rem;
  }
  .frame-decor-content h2 {
    font-size: 1.8rem;
  }

  /* Map Responsive Height & Width for Mobile */
  .mapouter, .gmap_iframe {
    height: 340px !important;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
}
