/* ============================================================
   Atypical Beauty — Design System v3
   "Editorial Luxury" — inspired by asiabnc.co.kr aesthetic
   Changes from v2: serif headings, warm palette, cinematic hero
   ============================================================ */

@import url('fonts/fonts.css');

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

:root {
  /* Warm editorial palette — replaces the cool navy/white */
  --white:         #FFFFFF;
  --cream:         #F9F3EB;       /* warm cream, like asiabnc's #fbf7f1 */
  --cream-deep:    #F0E9DF;       /* slightly deeper for sections */
  --black:         #1C1510;       /* warm espresso — not cool black */
  --charcoal:      #2C2118;       /* warm dark for text */
  --gray:          #8A7B6E;       /* warm gray */
  --gold:          #C09060;       /* warmer, richer caramel gold */
  --gold-light:    #D4A97A;       /* hover state */
  --dark-panel:    #1C1510;       /* replaces dark-navy — warm espresso */
  --border:        #E2D8CC;       /* warm border */
  --border-dark:   rgba(255,255,255,0.10);

  /* Typography */
  --font-serif:    'Cormorant Garamond', Georgia, serif;  /* THE editorial change */
  --font-en:       'Inter', sans-serif;
  --font-ko:       'Noto Sans KR', sans-serif;
  --font-mono:     'IBM Plex Mono', monospace;

  --section-pad:   120px;
  --container:     1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  color: var(--charcoal);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 64px;
}

/* ---- Typography ---- */
/* The core editorial shift: serif for all display text */
h1 {
  font-family: var(--font-serif);
  font-size: clamp(60px, 8vw, 112px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
}

p { font-size: 17px; line-height: 1.8; color: var(--gray); }

.label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
  display: block;
}

.label-light {
  color: rgba(255,255,255,0.45);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: #2d2015; transform: translateY(-1px); }

.btn-cream {
  background: var(--cream);
  color: var(--black);
}
.btn-cream:hover { background: var(--white); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.cta-pair {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Navigation ---- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 64px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Transparent over hero */
#nav.nav-transparent .nav-logo,
#nav.nav-transparent .nav-links a {
  color: var(--white);
}
#nav.nav-transparent .nav-lang { color: rgba(255,255,255,0.4); }

#nav.scrolled {
  background: var(--cream);
  box-shadow: 0 1px 0 var(--border);
}
#nav.scrolled .nav-logo,
#nav.scrolled .nav-links a { color: var(--charcoal); }
#nav.scrolled .nav-lang { color: var(--gray); }

.nav-logo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}
.nav-logo span { color: var(--gold); }

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

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  opacity: 0.7;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

.nav-lang {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-left: 4px;
}
.nav-lang a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-lang a:hover {
  color: var(--gold);
}
.nav-lang a.lang-active {
  color: var(--gold);
  font-weight: 600;
}

.nav-contact {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 1 !important;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s !important;
}
.nav-contact:hover { border-color: currentColor !important; }

/* ---- Hero: Full-bleed Cinematic ---- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;   /* text sits low — editorial magazine style */
  overflow: hidden;
}

/* The dark atmosphere — replace this div's background with a real photo when ready */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(180, 100, 50, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(100, 60, 20, 0.20) 0%, transparent 50%),
    linear-gradient(160deg, #0E0B08 0%, #1C1208 35%, #241608 65%, #1A1108 100%);
  background-size: cover;
  background-position: center;
}

/* When a real photo is used, add it via inline style:
   style="background-image: url('hero.jpg'); background-size: cover; background-position: center;" */

/* Grain texture overlay for luxury feel */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

/* Soft vignette from bottom */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 11, 8, 0.85) 0%,
    rgba(14, 11, 8, 0.4) 35%,
    rgba(14, 11, 8, 0.1) 60%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 64px 96px;
  width: 100%;
  max-width: 1000px;
}

.hero-inner .label { margin-bottom: 28px; }

.hero-inner h1 {
  color: var(--white);
  margin-bottom: 32px;
}

.hero-inner p {
  font-size: 18px;
  color: rgba(255,255,255,0.60);
  margin-bottom: 48px;
  max-width: 520px;
  line-height: 1.7;
}

/* Scroll hint — editorial detail */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 64px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.7; transform: scaleY(1.1); }
}

/* ---- Ticker ---- */
.ticker {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}

.ticker-track {
  display: flex;
  gap: 72px;
  animation: ticker 30s linear infinite;
  width: max-content;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

.ticker-dot { color: var(--gold); margin: 0 8px; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Two-Path Split ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}

.split-dark {
  background: var(--dark-panel);
  padding: var(--section-pad) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-dark .label { color: rgba(255,255,255,0.35); }
.split-dark h2 { color: var(--white); margin-bottom: 24px; }
.split-dark p  { color: rgba(255,255,255,0.55); margin-bottom: 48px; }

.split-light {
  background: var(--cream-deep);
  padding: var(--section-pad) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-light .label { color: var(--gray); }
.split-light h2 { margin-bottom: 24px; }
.split-light p  { margin-bottom: 48px; }

/* ---- Section ---- */
.section {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.section-alt {
  background: var(--cream-deep);
}

.section-header {
  margin-bottom: 72px;
}

/* ---- Markets ---- */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 0;
}

.market-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.market-card:hover .market-bg { transform: scale(1.03); }

.market-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  transition: transform 0.6s ease;
}

.market-us   { background: linear-gradient(170deg, #0e1a2e 0%, #12233e 50%, #0c2040 100%); }
.market-latam{ background: linear-gradient(170deg, #1a0e08 0%, #2d1a08 50%, #3d2008 100%); }
.market-me   { background: linear-gradient(170deg, #0d1208 0%, #1a2010 50%, #0d1a08 100%); }

.market-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 55%);
}

.market-content { position: relative; z-index: 1; }
.market-content h3 { color: var(--white); margin-bottom: 10px; font-size: 22px; }
.market-content p  { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* Market label badge */
.market-badge {
  position: absolute;
  top: 32px;
  left: 32px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  z-index: 1;
}

/* ---- Services List ---- */
.services-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 72px;
}

.services-col-head {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.2s;
}

.service-item:hover { color: var(--gold); }

.service-arrow {
  color: var(--gold);
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0.7;
}

.services-cta {
  text-align: center;
  margin-top: 64px;
}

/* ---- Credibility Numbers ---- */
.numbers-bg {
  background: var(--dark-panel);
}

.numbers-bg .label { color: rgba(255,255,255,0.35); }
.numbers-bg h2 { color: var(--white); }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 64px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.number-card {
  padding: 48px 40px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.number-card .big {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}

.number-card .desc {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ---- Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 72px;
}

.team-card {
  background: var(--cream-deep);
  overflow: hidden;
  transition: background 0.25s ease;
  cursor: pointer;
}
.team-card:hover { background: #e8dfd3; }

.team-photo {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #d8cfc4 0%, #c8bfb2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #b0a599;
}

.team-info { padding: 36px; }

.team-info h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--charcoal);
}

.team-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.team-info p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray);
  margin-bottom: 20px;
}

.team-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.team-link:hover { color: var(--gold); border-color: var(--gold); }

/* ---- Blog ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 72px;
}

.blog-card {
  background: var(--cream-deep);
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s;
}
.blog-card:hover { background: #e5dcd2; }

.blog-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.blog-thumb-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-thumb-inner { transform: scale(1.04); }

.blog-b1 { background: linear-gradient(145deg, #0d1520, #0c2245); }
.blog-b2 { background: linear-gradient(145deg, #1a0e00, #4a2800); }
.blog-b3 { background: linear-gradient(145deg, #080d18, #0e1f38); }

.blog-body { padding: 28px 32px 36px; }

.blog-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}

.blog-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--charcoal);
}

/* ---- Final CTA ---- */
.final-cta {
  background: var(--dark-panel);
  padding: 160px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle warm glow in background */
.final-cta::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,144,96,0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.final-cta h2 {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: clamp(44px, 6vw, 80px);
  margin-bottom: 24px;
  position: relative;
}

.final-cta p {
  color: rgba(255,255,255,0.45);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 56px;
  position: relative;
}

.final-cta .cta-pair { justify-content: center; }

/* ---- Footer ---- */
footer {
  background: #120E0A;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
  max-width: 280px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
}
.footer-logo span { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.4);
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.social-icon:hover { border-color: var(--gold); color: var(--gold); }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
}

.footer-bottom p {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.20);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: calc(72px + 100px) 0 100px;
  background: var(--cream);
}

.page-hero .label { margin-bottom: 24px; }
.page-hero h1 { max-width: 900px; margin-bottom: 24px; }
.page-hero > .container > p {
  font-size: 20px;
  color: var(--gray);
  max-width: 620px;
  line-height: 1.65;
}

/* ---- Service Cards (inner pages) ---- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  margin-top: 48px;
}

.service-card {
  padding: 56px 48px;
  background: var(--cream-deep);
  border-left: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.service-card:hover {
  border-left-color: var(--gold);
  background: #e8ddd3;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.service-card h3 { margin-bottom: 8px; }

.service-tagline {
  font-size: 15px;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--gold);
  margin-bottom: 16px;
}

.service-card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
}

/* ---- Process Steps ---- */
.process {
  background: var(--dark-panel);
  padding: var(--section-pad) 0;
}

.process .label { color: rgba(255,255,255,0.35); }
.process h2 { color: var(--white); margin-bottom: 64px; }

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-left: 1px solid rgba(255,255,255,0.07);
}

.step {
  padding: 40px 32px;
  border-right: 1px solid rgba(255,255,255,0.07);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.step h3 { color: var(--white); font-size: 18px; margin-bottom: 12px; }
.step p  { color: rgba(255,255,255,0.45); font-size: 15px; line-height: 1.6; }

/* ---- Contact Form ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 120px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 24px; }
.contact-info p  { margin-bottom: 40px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--cream-deep);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.contact-detail-text {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.5;
}

.contact-detail-text strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--charcoal);
  margin-bottom: 2px;
}

.form-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.form-tab {
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-en);
  letter-spacing: 0.02em;
}

.form-tab.active {
  color: var(--charcoal);
  border-bottom-color: var(--charcoal);
}

.form-panel { display: none; }
.form-panel.active { display: block; }

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

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-en);
  font-size: 15px;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--charcoal); }

.form-group textarea { min-height: 120px; resize: vertical; }

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray);
  cursor: pointer;
}

.checkbox-item input { width: 16px; height: 16px; cursor: pointer; }
.form-submit { margin-top: 32px; }

/* ---- About Numbers Row ---- */
.about-numbers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-left: 1px solid var(--border);
}

.about-num {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
}

.about-num .big  {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.about-num .desc {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
}

/* ---- Pricing Columns ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 64px;
}

.pricing-card {
  padding: 56px 48px;
  background: var(--cream-deep);
}

.pricing-card:nth-child(2) {
  background: var(--dark-panel);
}

.pricing-card:nth-child(2) h3,
.pricing-card:nth-child(2) .pricing-label { color: var(--white); }
.pricing-card:nth-child(2) p { color: rgba(255,255,255,0.5); }

.pricing-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.pricing-card h3 { font-size: 22px; margin-bottom: 16px; }
.pricing-card p  { font-size: 15px; line-height: 1.7; margin-bottom: 32px; }

/* ---- Scroll animation ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Active nav */
.nav-links a.active { opacity: 1; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .container { padding: 0 40px; }
  #nav { padding: 0 40px; }
  .hero-inner { padding: 0 40px 80px; }
  .hero-scroll-hint { right: 40px; }
  .split { grid-template-columns: 1fr; }
  .split-dark, .split-light { padding: 64px 48px; }
  .markets-grid { grid-template-columns: 1fr; }
  .services-cols { grid-template-columns: 1fr; gap: 40px; }
  .numbers-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-numbers { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section-pad: 64px; }
  .container { padding: 0 24px; }
  #nav { padding: 0 24px; }
  .hero-inner { padding: 0 24px 72px; }
  .hero-scroll-hint { display: none; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about-numbers { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   Samsung Galaxy Z Fold 7 — Responsive Overrides
   Folded:   ~390px wide  (phone mode)
   Unfolded: ~884px wide  (tablet/inner screen)
   ============================================================ */

/* --- Folded screen (phone, ~390px) --- */
@media (max-width: 430px) {
  :root { --section-pad: 56px; }

  .container { padding: 0 20px; }
  #nav { padding: 0 20px; height: 60px; }

  /* Hero: shorter, text readable on narrow screen */
  .hero-inner { padding: 0 20px 64px; }
  .hero-inner h1 { font-size: 42px; line-height: 1.08; }
  .hero-inner p  { font-size: 16px; }
  .hero-scroll-hint { display: none; }

  /* Ticker smaller */
  .ticker-item { font-size: 9px; }
  .ticker-track { gap: 40px; }

  /* Split: single col, compact */
  .split-dark, .split-light { padding: 48px 20px; }
  .split-dark h2, .split-light h2 { font-size: 36px; }

  /* Markets: single col portrait cards */
  .markets-grid { grid-template-columns: 1fr; gap: 2px; }
  .market-card { aspect-ratio: 16/9; }

  /* Numbers: 2 col */
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .number-card { padding: 28px 20px; }
  .number-card .big { font-size: 36px; }

  /* Services list */
  .services-cols { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .service-item { font-size: 15px; padding: 14px 0; }

  /* Team: single col */
  .team-grid { grid-template-columns: 1fr; gap: 2px; }

  /* Blog: single col */
  .blog-grid { grid-template-columns: 1fr; gap: 2px; }
  .blog-body { padding: 20px 20px 28px; }

  /* Final CTA */
  .final-cta { padding: 80px 0; }
  .final-cta h2 { font-size: 36px; }
  .final-cta p  { font-size: 16px; }
  .cta-pair { flex-direction: column; }
  .cta-pair .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Nav logo text size */
  .nav-logo { font-size: 16px; }

  /* Buttons full-width on mobile */
  .hero-inner .cta-pair { flex-direction: column; }
  .hero-inner .cta-pair .btn { width: 100%; justify-content: center; text-align: center; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .form-tab { padding: 12px 16px; font-size: 13px; }
}

/* --- Unfolded screen (inner display, ~884px) --- */
@media (min-width: 768px) and (max-width: 960px) {
  :root { --section-pad: 80px; }

  /* Hero looks great full bleed — just tighten text */
  .hero-inner h1 { font-size: 64px; }

  /* Split: keep 2 col but slightly tighter */
  .split-dark, .split-light { padding: 64px 48px; }

  /* Markets: 3 col works well on 884px unfolded */
  .markets-grid { grid-template-columns: repeat(3, 1fr); }
  .market-card  { aspect-ratio: 3/4; }

  /* Numbers: 5 col works, just tighten padding */
  .numbers-grid { grid-template-columns: repeat(5, 1fr); }
  .number-card  { padding: 36px 24px; }
  .number-card .big { font-size: 44px; }

  /* Services */
  .services-cols { grid-template-columns: 1fr 1fr; gap: 48px; }

  /* Team: 3 col fits perfectly on unfolded */
  .team-grid { grid-template-columns: repeat(3, 1fr); }

  /* Blog: 3 col fits */
  .blog-grid { grid-template-columns: repeat(3, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

  /* Nav — hide lang switcher to save space */
  .nav-lang { display: none; }
}
