/* ═══════════════════════════════════════════════════
   HCPC BRANDS — MAIN STYLESHEET
   Version: 1.0.0
═══════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --navy:       #1A2B4A;
  --navy-deep:  #0F1C32;
  --navy-mid:   #2E4470;
  --red:        #C8102E;
  --red-hover:  #A50D25;
  --white:      #FFFFFF;
  --off-white:  #F6F8FC;
  --gray-100:   #EEF1F7;
  --gray-300:   #C8D0DE;
  --gray-500:   #7A8BA0;
  --gray-700:   #3D4F63;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'DM Mono', monospace;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width:  1160px;
  --radius:     2px;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TYPOGRAPHY ──────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-serif); font-weight: 600; line-height: 1.1; color: var(--navy); }
h1 { font-size: clamp(48px, 7vw, 88px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2.5vw, 30px); }
p  { font-size: 15px; line-height: 1.8; color: var(--gray-500); }

/* ── UTILITY ─────────────────────────────────────── */
.container   { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.btn-primary { display: inline-block; background: var(--red); color: var(--white); padding: 16px 36px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; border-radius: var(--radius); transition: background 0.2s, transform 0.2s; }
.btn-primary:hover { background: var(--red-hover); transform: translateY(-2px); }
.btn-ghost   { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.5); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; transition: color 0.2s, gap 0.2s; }
.btn-ghost:hover { color: var(--white); gap: 16px; }
.section-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 5px; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.section-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--red); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── NAVIGATION ──────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px max(60px, calc((100% - 1600px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
#site-header.scrolled {
  background: rgba(26,43,74,0.97);
  padding: 16px max(60px, calc((100% - 1600px) / 2));
  box-shadow: 0 2px 40px rgba(0,0,0,0.2);
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-top  { font-family: var(--font-serif); font-size: 11px; letter-spacing: 4px; color: #FF5468; text-transform: uppercase; }
.nav-logo-main { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: 1px; }
.nav-logo-sub  { font-size: 9px; letter-spacing: 4px; color: rgba(255,255,255,0.35); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); position: relative; transition: color 0.2s; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--red); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--red); color: var(--white) !important; padding: 10px 24px; border-radius: var(--radius); }
.nav-cta:hover { background: var(--red-hover) !important; }
.nav-cta::after { display: none !important; }
.lang-switcher { display: flex; gap: 4px; margin-left: 12px; flex-wrap: wrap; max-width: 300px; }
.lang-switcher ul { display: flex; gap: 4px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.lang-switcher li { list-style: none; }
.lang-switcher a, .lang-btn {
  display: inline-block; background: none; border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8); font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 7px; border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.lang-switcher a.lang-item-current, .lang-switcher li.lang-item-current a, .lang-btn.active,
.lang-switcher a:hover, .lang-btn:hover {
  border-color: var(--red); color: var(--white); background: rgba(200,16,46,0.15);
}
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile-toggle span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; transition: all 0.3s; }

/* ── HERO ────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px max(60px, calc((100% - 1600px) / 2)) 80px;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(200,16,46,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(200,16,46,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(200,16,46,0.1); right: -100px; top: 50%; transform: translateY(-50%); }
.hero-circle-1 { width: 700px; height: 700px; }
.hero-circle-2 { width: 520px; height: 520px; border-color: rgba(200,16,46,0.07); }
.hero-circle-3 { width: 340px; height: 340px; border-color: rgba(200,16,46,0.05); }
.hero-content { max-width: 680px; position: relative; z-index: 2; animation: heroReveal 1.2s var(--ease) forwards; opacity: 0; transform: translateY(30px); }
@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.hero-eyebrow-line { width: 48px; height: 1px; background: var(--red); }
.hero-eyebrow-text { font-size: 11px; letter-spacing: 5px; text-transform: uppercase; color: var(--red); }
.hero-title { font-family: var(--font-serif); font-size: clamp(52px, 7vw, 88px); font-weight: 600; color: var(--white); line-height: 1.0; margin-bottom: 32px; }
.hero-title em { font-style: italic; color: rgba(255,255,255,0.3); }
.hero-subtitle { font-size: 16px; color: rgba(255,255,255,0.5); max-width: 480px; line-height: 1.8; margin-bottom: 48px; }
.hero-actions { display: flex; gap: 20px; align-items: center; }
.hero-scroll { position: absolute; bottom: 40px; left: max(60px, calc((100% - 1600px) / 2)); display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 3px; color: rgba(255,255,255,0.2); text-transform: uppercase; }
.scroll-line { width: 40px; height: 1px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; left: -100%; top: 0; width: 100%; height: 100%; background: var(--red); animation: scrollAnim 2s ease-in-out infinite; }
@keyframes scrollAnim { 0% { left: -100%; } 50% { left: 0%; } 100% { left: 100%; } }

/* ── STATS BAR ───────────────────────────────────── */
#stats-bar { background: var(--navy); padding: 0 max(60px, calc((100% - 1600px) / 2)); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 32px 40px; border-right: 1px solid rgba(255,255,255,0.06); text-align: center; }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-serif); font-size: 42px; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 8px; }
.stat-number span { color: var(--red); }
.stat-label { font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,0.3); text-transform: uppercase; }

/* ── SERVICES ────────────────────────────────────── */
#services { background: var(--off-white); padding: 120px max(60px, calc((100% - 1600px) / 2)); }
.services-intro { margin-bottom: 64px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.service-card { background: var(--white); padding: 48px 40px; position: relative; overflow: hidden; transition: transform 0.3s var(--ease); }
.service-card::before { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--red); transition: width 0.4s var(--ease); }
.service-card:hover { transform: translateY(-4px); }
.service-card:hover::before { width: 100%; }
.service-number { font-family: var(--font-mono); font-size: 11px; color: var(--gray-300); margin-bottom: 24px; letter-spacing: 2px; }
.service-icon { width: 48px; height: 48px; margin-bottom: 24px; }
.service-title { font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--navy); margin-bottom: 16px; line-height: 1.2; }
.service-desc { font-size: 14px; color: var(--gray-500); line-height: 1.8; margin-bottom: 32px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--navy-mid); background: var(--gray-100); padding: 5px 12px; border-radius: var(--radius); }

/* ── ABOUT ───────────────────────────────────────── */
#about { padding: 120px max(60px, calc((100% - 1600px) / 2)); display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.about-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.about-bg-rect { position: absolute; width: 320px; height: 420px; background: var(--off-white); border-radius: 4px; top: -20px; left: -20px; }
.about-card { position: relative; background: var(--navy); border-radius: 4px; padding: 48px 44px; width: 340px; z-index: 1; }
.about-card-title { font-family: var(--font-serif); font-size: 13px; color: var(--red); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 32px; }
.about-item { display: flex; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.about-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.about-item-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.about-item-text { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.about-item-text strong { color: var(--white); display: block; font-size: 14px; margin-bottom: 4px; }
.about-text p { margin-bottom: 20px; }
.about-text p strong { color: var(--navy); }
.about-credentials { margin-top: 40px; display: flex; gap: 32px; }
.credential-value { font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: var(--navy); line-height: 1; }
.credential-value span { color: var(--red); }
.credential-label { font-size: 11px; color: var(--gray-500); letter-spacing: 1px; margin-top: 4px; }

/* ── PROCESS ─────────────────────────────────────── */
#process { background: var(--navy-deep); padding: 120px max(60px, calc((100% - 1600px) / 2)); }
#process .section-title { color: var(--white); }
#process .section-intro { color: rgba(255,255,255,0.4); max-width: 560px; margin-bottom: 64px; }
#process .section-eyebrow { color: rgba(200,16,46,0.8); }
#process .section-eyebrow::before { background: rgba(200,16,46,0.8); }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.process-track-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin: 40px 0 16px; padding-left: 2px; }
.process-track-label:first-of-type { margin-top: 0; }
.process-step { background: rgba(255,255,255,0.03); padding: 32px 24px; border: 1px solid rgba(255,255,255,0.04); transition: background 0.3s; position: relative; }
.process-step:hover { background: rgba(200,16,46,0.06); }
.step-num { font-family: var(--font-mono); font-size: 38px; font-weight: 700; color: rgba(200,16,46,0.55); line-height: 1; margin-bottom: 20px; }
.step-title { font-family: var(--font-serif); font-size: 19px; color: var(--white); margin-bottom: 10px; }
.step-desc { font-size: 12.5px; color: rgba(255,255,255,0.35); line-height: 1.75; }
.step-arrow { position: absolute; right: -12px; top: 40px; color: rgba(200,16,46,0.3); font-size: 20px; z-index: 2; }
.process-step:last-child .step-arrow { display: none; }

/* ── REGULATIONS ─────────────────────────────────── */
#regulations { background: var(--off-white); padding: 80px max(60px, calc((100% - 1600px) / 2)); }
.regs-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.reg-pill { background: var(--white); border: 1px solid var(--gray-100); padding: 12px 20px; border-radius: var(--radius); font-family: var(--font-mono); font-size: 12px; color: var(--navy); display: flex; align-items: center; gap: 10px; transition: border-color 0.2s, transform 0.2s; }
.reg-pill:hover { border-color: var(--red); transform: translateY(-2px); }
.reg-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

/* ── CONTACT ─────────────────────────────────────── */
#contact { padding: 120px max(60px, calc((100% - 1600px) / 2)); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-detail { display: flex; gap: 20px; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--gray-100); }
.contact-detail:last-child { border-bottom: none; }
.contact-map { margin-top: 8px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(26,43,74,0.08); border: 1px solid var(--gray-100); }
.contact-map iframe { display: block; filter: grayscale(15%) contrast(1.02); }
.map-placeholder {
  width: 100%; height: 220px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--gray-100) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s;
}
.map-placeholder:hover { background: linear-gradient(135deg, var(--gray-100) 0%, #E4E9F2 100%); }
.map-placeholder-icon { font-size: 28px; }
.map-placeholder-text { font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: 0.3px; }
.map-placeholder-sub { font-size: 11px; color: var(--gray-500); max-width: 260px; text-align: center; line-height: 1.5; }
.office-photo { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 20px rgba(26,43,74,0.12); }
.office-photo img { display: block; width: 100%; height: 220px; object-fit: cover; }
.contact-detail-icon { width: 44px; height: 44px; background: var(--off-white); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.contact-detail-label { font-size: 10px; letter-spacing: 3px; color: var(--gray-500); text-transform: uppercase; margin-bottom: 6px; }
.contact-detail-value { font-size: 15px; color: var(--navy); line-height: 1.6; }
.contact-form .form-row { margin-bottom: 20px; }
.contact-form label { display: block; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gray-500); margin-bottom: 8px; }
.contact-form input,
.contact-form select,
.contact-form textarea { width: 100%; background: var(--off-white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 14px 18px; font-family: var(--font-sans); font-size: 14px; color: var(--navy); transition: border-color 0.2s; outline: none; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--navy); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; background: var(--navy); color: var(--white); border: none; padding: 18px; font-family: var(--font-sans); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; border-radius: var(--radius); cursor: pointer; transition: background 0.2s, transform 0.2s; margin-top: 8px; }
.form-submit:hover { background: var(--red); transform: translateY(-2px); }

/* ── FOOTER ──────────────────────────────────────── */
#site-footer { background: var(--navy-deep); padding: 60px max(60px, calc((100% - 1600px) / 2)) 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.3); line-height: 1.8; margin-top: 20px; max-width: 280px; }
.footer-col h4 { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 20px; font-family: var(--font-sans); font-weight: 600; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.2); letter-spacing: 1px; }
.footer-reg { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.15); }

/* ── LANGUAGE SWITCHING ──────────────────────────── */
[data-lang] { display: none; }
[data-lang].active { display: block; }
span[data-lang].active { display: inline; }

/* ── LEGAL PAGES (Privacy Policy, Terms & Conditions) ─────────── */
.legal-page { max-width: 860px; margin: 0 auto; padding: 160px 40px 100px; }
.legal-hero { margin-bottom: 56px; }
.legal-title { font-family: var(--font-serif); font-size: clamp(34px, 5vw, 48px); font-weight: 600; color: var(--navy); margin: 8px 0 16px; }
.legal-meta { font-size: 13px; color: var(--gray-500); letter-spacing: 0.5px; }
.legal-body h2 { font-family: var(--font-sans); font-size: 20px; font-weight: 700; color: var(--navy); margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-100); }
.legal-body p { font-size: 15px; line-height: 1.85; color: var(--gray-700); margin-bottom: 14px; }
.legal-body ul { margin: 0 0 16px 0; padding-left: 0; list-style: none; }
.legal-body ul li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 15px; line-height: 1.8; color: var(--gray-700); }
.legal-body ul li::before { content: '\2013'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; }
.legal-table tr { border-bottom: 1px solid var(--gray-100); }
.legal-table td { padding: 12px 16px; font-size: 14px; color: var(--gray-700); vertical-align: top; }
.legal-table td:first-child { width: 220px; font-weight: 600; color: var(--navy); background: var(--off-white); }
.legal-disclaimer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--gray-100); font-size: 13px; color: var(--gray-500); font-style: italic; }

@media (max-width: 768px) {
  .legal-page { padding: 120px 24px 60px; }
  .legal-table td:first-child { width: 140px; }
}


@media (max-width: 1024px) {
  #site-header { padding: 20px 32px; }
  #site-header.scrolled { padding: 14px 32px; }
  #hero, #services, #about, #contact, #process, #regulations { padding-left: 32px; padding-right: 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  #stats-bar { padding: 0 32px; }
}

@media (max-width: 768px) {
  #site-header { padding: 16px 24px; }
  #site-header.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--navy-deep); justify-content: center; align-items: center; gap: 32px; z-index: 99; }
  .nav-links.open a { font-size: 20px; }
  .nav-mobile-toggle { display: block; z-index: 101; position: relative; }
  #hero { padding: 100px 24px 80px; }
  .hero-title { font-size: 44px; }
  #stats-bar { grid-template-columns: 1fr 1fr; padding: 0 24px; }
  .stat-item { padding: 24px 20px; }
  #services { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  #about { grid-template-columns: 1fr; padding: 80px 24px; gap: 48px; }
  .about-bg-rect { display: none; }
  .about-card { width: 100%; }
  .process-steps { grid-template-columns: 1fr; }
  #contact { grid-template-columns: 1fr; padding: 80px 24px; }
  .form-row-2 { grid-template-columns: 1fr; }
  #site-footer { padding: 48px 24px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-content, * { animation: none !important; transition: none !important; }
  /* Content is set to opacity:0 by default and only becomes visible via the
     animation above. With animations disabled, force it visible immediately
     instead of leaving it permanently invisible. */
  .hero-content, .reveal { opacity: 1 !important; transform: none !important; }
}
