/* ============================================================
   Ezinee — Figma Design v2
   Bold dark hero + generous spacing + large typography
   Brand: #FD8201
   ============================================================ */

/* ─── Design Tokens ─── */
:root {
  --orange: #FD8201;
  --orange-hover: #E07401;
  --orange-light: #FD9B34;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #fff;
  --radius-lg: 0.5rem;
  --radius-2xl: 1rem;
  --max-w: 1400px;
  --nav-h: 80px;
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .3s, box-shadow .3s;
}
.nav--scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
}
/* Dark nav for hero */
.nav--dark {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav--dark.nav--scrolled {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-wrap { text-decoration: none; display: flex; align-items: center; }
.nav-logo { height: 28px; transition: filter .3s; }
.nav--dark .nav-logo { filter: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  color: var(--gray-700);
  font-size: 16px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange); }
.nav--dark .nav-links a { color: rgba(255,255,255,0.9); }
.nav--dark .nav-links a:hover { color: var(--orange); }

.lang-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 24px;
  padding-left: 32px;
  border-left: 1px solid var(--gray-300);
}
.lang {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 4px;
  transition: color .2s;
}
.lang:hover { color: var(--gray-700); }
.lang.active { color: var(--gray-900); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.lang-divider { color: var(--gray-300); font-size: 16px; }

.nav--dark .lang { color: rgba(255,255,255,0.6); }
.nav--dark .lang.active { color: var(--white); }
.nav--dark .lang-divider { color: rgba(255,255,255,0.3); }
.nav--dark .lang-group { border-left-color: rgba(255,255,255,0.2); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  z-index: 10;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav--dark .nav-toggle span { background: var(--white); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Main ─── */
.main { }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px;
  background: var(--orange);
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, box-shadow .2s, color .2s, border-color .2s;
  line-height: 1.2;
}
.btn:hover {
  background: var(--orange-hover);
  color: var(--gray-900);
  box-shadow: var(--shadow-2xl);
}
.btn--outline {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--gray-900);
  border-color: var(--white);
  box-shadow: var(--shadow-2xl);
}
.btn--white {
  background: var(--white);
  color: var(--gray-900);
}
.btn--white:hover {
  background: var(--gray-100);
  color: var(--gray-900);
  box-shadow: var(--shadow-2xl);
}

/* ─── Hero Section (Dark fullscreen with image) ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.6), rgba(0,0,0,0.7));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 128px 24px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 32px;
}
.hero p {
  font-size: clamp(1.125rem, 2.5vw, 1.875rem);
  font-weight: 400;
  color: var(--gray-200);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Section ─── */
.section {
  padding: 96px 24px;
}
.section--gray { background: var(--gray-50); }

.section-header {
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto 80px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 24px;
}
.section-header p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--gray-600);
  max-width: 56rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Services Grid ─── */
.services-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  transition: box-shadow .3s, transform .3s;
}
.service-card:hover {
  box-shadow: var(--shadow-2xl);
  transform: translateY(-2px);
}
.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-icon svg {
  width: 56px;
  height: 56px;
  stroke: var(--orange);
  fill: none;
}
.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--gray-900);
}
.service-card p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* ─── Why Ezinee ─── */
.why-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.why-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  transition: box-shadow .3s, transform .3s;
}
.why-card:hover {
  box-shadow: var(--shadow-2xl);
  transform: translateY(-2px);
}
.why-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.why-icon svg {
  width: 56px;
  height: 56px;
  stroke: var(--orange);
  fill: none;
}
.why-card h3 {
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--gray-900);
}
.why-card p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--gray-600);
  line-height: 1.6;
}

/* ─── CTA Section (Orange Gradient) ─── */
.cta-section {
  padding: 96px 24px;
  background: linear-gradient(to right, var(--orange), var(--orange-light));
}
.cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
}
.cta-inner > p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--gray-800);
  margin-bottom: 40px;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-wrap: balance;
}

/* ─── Footer ─── */
.footer {
  background: var(--gray-900);
  padding: 64px 24px;
  color: var(--gray-300);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 64px;
}
.footer-logo { height: 22px; margin-bottom: 24px; }
.footer-brand p {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 24px;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--gray-300);
  margin-bottom: 12px;
  text-decoration: none;
  transition: color .2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-col .footer-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--gray-800);
  text-align: center;
  font-size: 1rem;
  color: var(--gray-500);
}

/* ─── Page Header (About, Contact) ─── */
.page-hero-section {
  padding: 160px 24px 80px;
  background: linear-gradient(to bottom right, var(--gray-50), var(--white));
  text-align: center;
}
.page-hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
}
.page-hero-section p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--gray-600);
}

/* ─── About Page ─── */
.about-story {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-story-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--gray-900);
}
.about-story-text p {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}
.about-story-text p:last-child { margin-bottom: 0; }
.about-story-image img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
}

/* ─── Contact Page ─── */
.contact-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-cta-card {
  background: linear-gradient(to bottom right, var(--orange), var(--orange-light));
  border-radius: var(--radius-2xl);
  padding: 48px;
  color: var(--gray-900);
}
.contact-cta-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 32px;
}
.contact-cta-icon svg {
  width: 80px;
  height: 80px;
  stroke: var(--gray-900);
  fill: none;
}
.contact-cta-card h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.contact-cta-card p {
  font-size: 1.25rem;
  color: var(--gray-800);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Contact Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info-card {
  background: var(--gray-50);
  border-radius: var(--radius-2xl);
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: box-shadow .3s;
}
.contact-info-card:hover { box-shadow: var(--shadow-xl); }
.contact-info-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-top: 4px;
}
.contact-info-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--orange);
  fill: none;
}
.contact-info-card .info-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.contact-info-card .info-value {
  font-size: 1.25rem;
  color: var(--gray-900);
  margin: 0;
}
.contact-info-card a { color: var(--gray-900); transition: color .2s; }
.contact-info-card a:hover { color: var(--orange); }

/* Map */
.map-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}
.map-wrap iframe {
  width: 100%;
  height: 500px;
  border: 0;
  display: block;
}

/* ─── Scroll Animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: .1s; }
.fade-up.delay-2 { transition-delay: .2s; }
.fade-up.delay-3 { transition-delay: .3s; }

/* ─── Responsive: Tablet ─── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .about-story { grid-template-columns: 1fr; gap: 40px; }
  .about-story-image { order: -1; max-width: 600px; margin: 0 auto; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ─── Responsive: Mobile ─── */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .nav-inner { padding: 14px 16px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 24px;
    gap: 0;
    overflow-y: auto;
    border-top: 1px solid var(--gray-200);
  }
  .nav--dark .nav-links {
    background: var(--gray-900);
    border-top-color: rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0; border-bottom: 1px solid var(--gray-200); }
  .nav--dark .nav-links li { border-bottom-color: rgba(255,255,255,0.08); }
  .nav-links li:last-child { border-bottom: none; padding-top: 18px; }
  .nav-links a { font-size: 16px; display: flex; align-items: center; width: 100%; min-height: 44px; }

  .lang-group {
    border-left: none; padding-left: 0; margin-left: 0;
    padding-top: 16px; border-top: none;
  }
  .lang { padding: 12px 8px; }
  .nav--dark .lang-group { border-top: none; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-content { padding: 100px 20px 80px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { text-align: center; }

  /* Page header */
  .page-hero-section { padding: 120px 20px 56px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px; }

  /* Section */
  .section { padding: 64px 20px; }
  .section-header { margin-bottom: 48px; }

  /* Contact */
  .contact-cta-card { padding: 32px; }
  .contact-cta-icon { width: 56px; height: 56px; }
  .contact-cta-icon svg { width: 56px; height: 56px; }
  .contact-cta-card h2 { font-size: 1.75rem; }

  /* Map */
  .map-wrap iframe { height: 300px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ─── A11y ─── */
/* ─── Skip Link ─── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  background: var(--orange);
  color: var(--gray-900);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus {
  top: 12px;
  opacity: 1;
  pointer-events: auto;
}

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.btn:focus-visible { outline: 2px solid var(--gray-900); outline-offset: 3px; box-shadow: 0 0 0 5px rgba(253,130,1,0.4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .fade-up { opacity: 1; transform: none; }
}

@media print {
  .nav, .cta-section, .footer { display: none; }
  .hero { min-height: auto; background: var(--white); }
  .hero-bg { display: none; }
  .hero h1, .hero p { color: #000; }
  .section { padding: 24px; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
