/* ============================================
   BIG HORN HAPKIDO — 수묵화 Mountain Ink Wash
   합기도 · 진중관
   Color palette drawn from the hero painting
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700;900&family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

:root {
  /* === Palette from the mountain ink wash painting === */
  /* Deep indigo — darkest mountain ridges */
  --indigo: #1a2d4d;
  --indigo-deep: #0e1b30;
  --indigo-mid: #243a5c;

  /* Misty blue — layered mountain haze */
  --mist: #5c7a9b;
  --mist-light: #8ba3b8;
  --mist-pale: #c4d1dc;

  /* Crimson rust — warm highlights on the peaks */
  --rust: #9b3b30;
  --rust-bright: #b5433a;
  --rust-glow: rgba(155,59,48,0.10);

  /* Gold — accent, from the warmth where light hits stone */
  --gold: #b89a4a;
  --gold-muted: #a08838;
  --gold-light: rgba(184,154,74,0.12);

  /* Hanji paper — background warmth from the painting's paper */
  --hanji: #f0ead8;
  --hanji-warm: #e8e0ce;
  --hanji-deep: #d9cfc0;
  --white: #faf8f3;

  /* Ink — text tones */
  --ink: #1a1a1a;
  --ink-soft: #2e2a26;
  --text: #3b3630;
  --text-muted: #7a7268;
  --divider: rgba(26,45,77,0.07);

  /* Typography */
  --font-heading: 'Noto Serif KR', 'Georgia', serif;
  --font-body: 'Noto Sans KR', -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --section-pad: 88px;
  --nav-height: 76px;
  --radius: 4px;
  --shadow-sm: 0 1px 4px rgba(14,27,48,0.06);
  --shadow-md: 0 4px 24px rgba(14,27,48,0.08);
  --shadow-lg: 0 12px 48px rgba(14,27,48,0.12);
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--hanji);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rust-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--indigo-deep);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); }

p { margin-bottom: 1.2em; color: var(--text); }
p:last-child { margin-bottom: 0; }

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

/* === Korean Decorative Elements === */
.section-header h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rust), var(--gold));
}
.section-header.center h2::after { margin-left: auto; margin-right: auto; }

.korean-divider { text-align: center; margin: 48px 0; position: relative; }
.korean-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--hanji-deep); }
.korean-divider span { position: relative; display: inline-block; background: var(--hanji); padding: 0 24px; font-size: 1.4rem; color: var(--mist); opacity: 0.5; }

/* === Top Bar === */
.top-bar { background: var(--indigo-deep); color: rgba(255,255,255,0.55); font-size: 0.8rem; padding: 8px 0; letter-spacing: 0.03em; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: rgba(255,255,255,0.65); }
.top-bar a:hover { color: var(--gold); }

/* === Navigation === */
.site-nav {
  background: var(--white);
  border-bottom: 3px solid var(--rust);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: var(--nav-height); }

.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo img { height: 56px; width: auto; }
.nav-logo-text { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--indigo-deep); line-height: 1.2; }
.nav-logo-text span { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a { display: block; padding: 8px 16px; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); border-radius: var(--radius); transition: all var(--transition); }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--rust); background: var(--rust-glow); }

.nav-dropdown { position: absolute; top: 100%; left: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border-top: 3px solid var(--rust); min-width: 250px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.25s ease; list-style: none; z-index: 200; }
.nav-links > li:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 10px 20px; font-size: 0.86rem; color: var(--text); transition: all var(--transition); border-left: 3px solid transparent; }
.nav-dropdown a:hover { background: var(--hanji); color: var(--rust); border-left-color: var(--rust); padding-left: 24px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--indigo); margin: 5px 0; transition: all var(--transition); border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-cta a { background: var(--rust) !important; color: var(--white) !important; padding: 10px 24px !important; border-radius: var(--radius); font-weight: 600; font-size: 0.86rem !important; }
.nav-cta a:hover { background: var(--rust-bright) !important; transform: translateY(-1px); }

/* ========================================
   HERO — Mountain Ink Wash Background
   ======================================== */
.hero {
  position: relative;
  background: var(--indigo-deep);
  color: var(--white);
  padding: 100px 0 80px;
  overflow: hidden;
}

/* The painting — full width, more visible */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-mountains.jpg') center center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

/* Gradient overlay — 50% more transparent to let the painting breathe */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14,27,48,0.5) 5%, rgba(14,27,48,0.35) 30%, rgba(14,27,48,0.15) 60%, rgba(14,27,48,0.08) 100%),
    linear-gradient(180deg, rgba(14,27,48,0.15) 0%, rgba(14,27,48,0.35) 100%);
  pointer-events: none;
}

.hero-home {
  padding: 100px 0 80px;
  min-height: 520px;
  display: flex;
  align-items: center;
}

/* Homepage hero layout: logo left, text right */
.hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 56px;
  width: 100%;
}

.hero-logo {
  flex-shrink: 0;
  width: 350px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* subtle glow behind the logo */
  filter: drop-shadow(0 4px 30px rgba(0,0,0,0.35));
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-content { position: relative; z-index: 1; max-width: 600px; flex: 1; }

.hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(184,154,74,0.35);
  border-radius: 2px;
  background: rgba(14,27,48,0.4);
  backdrop-filter: blur(4px);
}

.hero h1 { color: var(--white); margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 540px; }
.hero-home h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }

.hero-korean {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: rgba(184,154,74,0.6);
  margin-bottom: 16px;
  letter-spacing: 0.4em;
}

/* Inner page heroes — slightly less tall */
.hero:not(.hero-home) {
  padding: 80px 0 60px;
}

/* Hero responsive */
@media (max-width: 968px) {
  .hero-layout { flex-direction: column; gap: 32px; text-align: center; }
  .hero-logo { width: 220px; height: 220px; }
  .hero-content { max-width: 100%; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
}

@media (max-width: 768px) {
  .hero-logo { width: 180px; height: 180px; }
}

/* === Buttons === */
.btn { display: inline-block; padding: 14px 32px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; border-radius: var(--radius); transition: all var(--transition); cursor: pointer; border: none; text-align: center; }

.btn-primary { background: var(--rust); color: var(--white); }
.btn-primary:hover { background: var(--rust-bright); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(155,59,48,0.3); }

.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-navy { background: var(--indigo); color: var(--white); }
.btn-navy:hover { background: var(--indigo-deep); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(26,45,77,0.25); }

.hero-buttons { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* === Sections === */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--white); }

.section-navy {
  background: var(--indigo-deep);
  color: var(--white);
  position: relative;
}
.section-navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-mountains.jpg') center bottom / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.72); }
.section-navy .eyebrow { color: var(--gold) !important; }
.section-navy .section-header h2::after { background: linear-gradient(90deg, var(--gold), var(--mist-light)); }

.section-header { margin-bottom: 48px; }
.section-header .eyebrow { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rust); margin-bottom: 12px; display: block; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 640px; color: var(--text-muted); font-size: 1.02rem; }
.section-header.center { text-align: center; }
.section-header.center p { margin-left: auto; margin-right: auto; }

/* === Two Column === */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col.reverse .col-text { order: 2; }
.two-col.reverse .col-image { order: 1; }
.col-image { position: relative; border-radius: var(--radius); overflow: hidden; }
.col-image img { width: 100%; border-radius: var(--radius); }

.img-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.img-frame::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(184,154,74,0.15); border-radius: 2px; pointer-events: none; }
.img-frame img { width: 100%; display: block; border-radius: var(--radius); }

.img-placeholder { background: var(--hanji-warm); border: 2px dashed var(--hanji-deep); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; min-height: 300px; color: var(--text-muted); font-size: 0.86rem; font-style: italic; }
.img-placeholder-dark { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.35); }

/* === Highlight Strip === */
.highlight-strip {
  background: var(--indigo);
  color: var(--white);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.highlight-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-mountains.jpg') center center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; position: relative; z-index: 1; }
.highlight-item h3 { color: var(--gold); font-size: 2.2rem; margin-bottom: 4px; font-weight: 900; }
.highlight-item p { color: rgba(255,255,255,0.65); font-size: 0.82rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }

/* === Service Cards === */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider);
  border-top: 3px solid var(--indigo);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--rust); }
.service-card h3 { margin-bottom: 12px; color: var(--indigo-deep); }
.service-card p { color: var(--text-muted); font-size: 0.94rem; flex: 1; }
.service-card .card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 600; font-size: 0.88rem; color: var(--rust); }
.service-card .card-link::after { content: '\2192'; transition: transform var(--transition); }
.service-card:hover .card-link::after { transform: translateX(4px); }

/* === Testimonials === */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--divider); position: relative; border-left: 3px solid var(--gold); }
.testimonial-card::before { content: '\201C'; font-family: var(--font-heading); font-size: 4rem; color: var(--rust); opacity: 0.1; position: absolute; top: 12px; left: 20px; line-height: 1; }
.testimonial-card p { font-style: italic; color: var(--text-muted); margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-author { font-weight: 600; font-size: 0.9rem; color: var(--indigo-deep); }
.testimonial-note { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-top: 4px; }

/* === Content / Page Layout === */
.content-body { max-width: 800px; }
.content-body h3 { margin-top: 36px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--divider); }
.content-body blockquote { border-left: 3px solid var(--gold); padding: 20px 28px; margin: 28px 0; background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--text-muted); }
.content-body ul, .content-body ol { margin: 16px 0; padding-left: 28px; }
.content-body li { margin-bottom: 6px; color: var(--text); }

.author-sig { margin-top: 44px; padding-top: 24px; border-top: 2px solid var(--indigo); display: inline-block; }
.author-sig strong { display: block; font-family: var(--font-heading); font-size: 1.1rem; color: var(--indigo-deep); }
.author-sig span { font-size: 0.86rem; color: var(--text-muted); }

.principles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 24px 0; padding: 0; }
.principles-grid li { list-style: none; padding: 10px 16px; background: var(--white); border-radius: var(--radius); border-left: 3px solid var(--gold); font-size: 0.9rem; font-weight: 500; color: var(--indigo-deep); }

.page-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.page-sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info-block { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.contact-icon { flex-shrink: 0; width: 44px; height: 44px; background: var(--rust-glow); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--rust); font-size: 1.1rem; }
.contact-info-block h4 { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; color: var(--indigo-deep); }
.contact-info-block p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.contact-info-block a { color: var(--rust); }

.contact-form label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 12px 16px; border: 1px solid var(--hanji-deep); border-radius: var(--radius); font-family: var(--font-body); font-size: 0.94rem; background: var(--hanji); transition: border-color var(--transition); margin-bottom: 20px; color: var(--text); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(26,45,77,0.08); background: var(--white); }
.contact-form textarea { resize: vertical; min-height: 140px; }

.form-card { background: var(--white); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--divider); border-top: 3px solid var(--rust); }

/* === Free Banner === */
.free-banner { background: linear-gradient(135deg, var(--rust), var(--rust-bright)); color: var(--white); padding: 40px; border-radius: var(--radius); text-align: center; margin-top: 40px; position: relative; overflow: hidden; }
.free-banner h3 { color: var(--white); margin-bottom: 8px; position: relative; }
.free-banner p { color: rgba(255,255,255,0.9); position: relative; }

/* === Footer === */
.site-footer {
  background: var(--indigo-deep);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--rust), var(--gold), var(--mist), var(--gold), var(--rust)); }
/* Faint mountain silhouette in footer */
.site-footer::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 200px; background: url('../images/hero-mountains.jpg') center bottom / cover no-repeat; opacity: 0.04; pointer-events: none; }

.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06); position: relative; z-index: 1; }
.footer-brand img { height: 72px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 0.88rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.45); font-size: 0.88rem; }
.footer-col a:hover { color: var(--white); }

.footer-bottom { padding: 24px 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.3); position: relative; z-index: 1; }
.footer-korean { font-family: var(--font-heading); font-size: 0.9rem; color: rgba(255,255,255,0.12); margin-top: 8px; letter-spacing: 0.4em; }

/* === Animations === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* === Responsive === */
@media (max-width: 968px) {
  :root { --section-pad: 56px; }
  .two-col, .contact-grid, .page-layout { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse .col-text, .two-col.reverse .col-image { order: unset; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .page-sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --section-pad: 40px; --nav-height: 64px; }
  .top-bar { display: none; }
  .nav-links { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; padding: 24px; gap: 0; overflow-y: auto; z-index: 99; border-top: 3px solid var(--rust); }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 14px 16px; font-size: 1rem; }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border-top: none; padding: 0 0 0 16px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .hero-home { padding: 80px 0 60px; min-height: auto; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr 1fr; gap: 20px; }
}
