/* ===== DESIGN TOKENS ===== */
:root {
  --black:       #111111;
  --black-soft:  #1A1A1A;
  --black-mid:   #222222;
  --navy:        #0D1B2E;   /* logo steel-blue dark — dark sections */
  --navy-soft:   #162438;
  --navy-mid:    #1E3252;
  --blue:        #3A7CA5;   /* logo steel blue — accents */
  --blue-light:  #5A9EC5;
  --cream:       #F8F6F1;
  --cream-deep:  #EFEDE6;
  --white:       #FFFFFF;
  --text-dark:   #111111;
  --text-mid:    #4A4A4A;
  --text-muted:  #888888;
  --gold:        #C9A84C;
  --gold-light:  #E0C06E;
  --border:      #E0DDD6;
  --border-light:#EEECE6;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.10);
}

/* ===== RESET ===== */
html { scroll-behavior: smooth; }

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-weight: 700; letter-spacing: -1px; color: var(--black); line-height: 1.15; }
h2 { font-size: 36px; font-weight: 700; color: var(--black); margin-bottom: 16px; letter-spacing: -0.5px; line-height: 1.2; }
h3 { font-size: 18px; font-weight: 600; color: var(--black); }
h4 { font-size: 15px; font-weight: 600; color: var(--black); }
p  { color: var(--text-mid); }

/* Section header pattern */
.section-header { text-align: center; margin-bottom: 55px; }

.section-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-sub {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Divider accent */
.section-header::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto 0;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--black); color: #fff;
  padding: 10px 20px; z-index: 1000; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ===== FOCUS ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ===== SCREEN READER ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ===== FORM FEEDBACK ===== */
.form-success {
  color: #2D7A46; margin-top: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; font-size: 14px;
}
.form-success::before { content: '✓'; font-size: 18px; animation: scaleIn 0.3s ease; }
@keyframes scaleIn { from { transform: scale(0); } to { transform: scale(1); } }

.form-error   { color: #A93226; margin-top: 15px; font-size: 14px; }
.form-hint    { margin-top: 12px; color: var(--text-muted); font-size: 13px; }
.input-error  { border-color: #A93226 !important; }

/* ===== CONTAINER ===== */
.container { width: 90%; max-width: 1100px; margin: auto; }

/* ===== HEADER — Ivory Glass (logo-friendly) ===== */
.header {
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  position: sticky; top: 0; z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
  isolation: isolate;
}

/* — Shimmer sweep — */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 22%,
    rgba(58, 124, 165, 0.04) 38%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(58, 124, 165, 0.04) 62%,
    transparent 78%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: -120% 0;
  animation: headerShimmer 9s cubic-bezier(0.4,0,0.6,1) infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes headerShimmer {
  0%   { background-position: -120% 0; }
  40%  { background-position: 220% 0; }
  100% { background-position: 220% 0; }
}

/* — Animated navy→blue→gold gradient bottom border — */
.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(13, 27, 46, 0.0) 5%,
    rgba(58, 124, 165, 0.6) 20%,
    rgba(201, 168, 76, 0.9) 35%,
    rgba(58, 124, 165, 0.8) 50%,
    rgba(201, 168, 76, 0.9) 65%,
    rgba(58, 124, 165, 0.6) 80%,
    rgba(13, 27, 46, 0.0) 95%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: -100% 0;
  animation: borderFlow 5s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes borderFlow {
  0%   { background-position: -100% 0; }
  100% { background-position: 120% 0; }
}

/* Scroll deepens the ivory glass */
.header.scrolled {
  background: rgba(252, 250, 246, 0.97);
  box-shadow:
    0 4px 24px rgba(13, 27, 46, 0.10),
    0 1px 0 rgba(58, 124, 165, 0.15);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  position: relative; /* keeps mobile dropdown positioned correctly */
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; }

.brand-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(58,124,165,0.3));
  animation: brandGlow 3s ease-in-out infinite alternate;
}
.brand-text-sub {
  font-weight: 500;
}

@keyframes brandGlow {
  from { filter: drop-shadow(0 0 4px rgba(58,124,165,0.3)) drop-shadow(0 0 8px rgba(201,168,76,0.1)); }
  to   { filter: drop-shadow(0 0 8px rgba(58,124,165,0.5)) drop-shadow(0 0 16px rgba(201,168,76,0.3)); }
}

nav ul { list-style: none; display: flex; }
nav li { margin-left: 32px; }

nav a {
  text-decoration: none;
  color: #3A4A5A;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s;
}
nav a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--blue));
  transition: width 0.3s ease;
  box-shadow: 0 0 5px rgba(58, 124, 165, 0.4);
}
nav a:hover {
  color: var(--navy);
}
nav a:hover::after,
nav a.active::after { width: 100%; }
nav a.active        { color: var(--blue); font-weight: 600; }

/* ===== HERO ===== */
.hero {
  background: var(--cream);
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Dot-grid texture — right half */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 100%;
  background-image: radial-gradient(circle, rgba(17,17,17,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* Gold atmospheric corner glow */
.hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -60px;
  width: 460px; height: 440px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero-flex { display: flex; align-items: center; gap: 70px; position: relative; z-index: 1; }
.hero h1   { font-size: 44px; }
.hero p    { margin: 18px 0; font-size: 17px; color: var(--text-mid); }
.hero-text  { flex: 1; }
.hero-image { flex: 1; text-align: right; }
.hero-image img {
  width: 100%; max-width: 480px;
  border-radius: 3px;
  filter: grayscale(20%);
  box-shadow: var(--shadow-lg);
}

/* Section label with leading accent line */
.hero-text .section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-text .section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ===== HERO IMAGE FRAME (decorative wrapper) ===== */
.hero-img-frame {
  position: relative;
  display: block;
  max-width: 480px;
  margin-left: auto;
  padding-right: 22px;
  padding-bottom: 22px;
}

/* Offset gold border — lower-right */
.hero-img-frame::before {
  content: '';
  position: absolute;
  top: 22px; right: 0;
  bottom: 0; left: 18px;
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  opacity: 0.36;
  z-index: 0;
  pointer-events: none;
}

/* Dot-cluster accent — bottom-left corner */
.hero-img-frame::after {
  content: '';
  position: absolute;
  bottom: -4px; left: -8px;
  width: 72px; height: 72px;
  background-image: radial-gradient(circle, rgba(201,168,76,0.5) 1.5px, transparent 1.5px);
  background-size: 11px 11px;
  pointer-events: none;
  z-index: 2;
}

.hero-img-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 3px;
  filter: grayscale(15%);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.12),
    0 4px 16px rgba(0,0,0,0.06);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  min-height: 44px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.4px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }

.primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.outline:hover {
  background: var(--navy);
  color: var(--white);
}

.cta .outline {
  border-color: var(--navy);
  color: var(--navy);
}
.cta .outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ===== CTA ===== */
.cta {
  background: var(--cream-deep);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 90px 0;
}
.cta h2     { color: var(--black); margin-bottom: 14px; }
.cta-text   { color: var(--text-muted); font-size: 16px; margin-top: 10px; }
.cta-btn    { margin-top: 32px; }

/* ===== ABOUT ===== */
.about { background: var(--white); padding: 90px 0; }
.about-flex { display: flex; align-items: center; gap: 70px; }
.about-image {
  flex: 1;
  text-align: center;
  position: relative;
}
/* Decorative gold left-side accent bar */
.about-image::before {
  content: '';
  position: absolute;
  left: -20px; top: 40px;
  width: 3px;
  height: calc(100% - 80px);
  background: linear-gradient(180deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%);
  opacity: 0.5;
  border-radius: 2px;
}
/* Corner dot cluster — top-right */
.about-image::after {
  content: '';
  position: absolute;
  top: 0; right: -4px;
  width: 60px; height: 60px;
  background-image: radial-gradient(circle, rgba(201,168,76,0.45) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  pointer-events: none;
  z-index: 2;
}
.about-image img {
  max-width: 420px; border-radius: 3px;
  filter: grayscale(15%);
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
}
.about-text { flex: 1; }
.about-text p { font-size: 16px; line-height: 1.8; color: var(--text-mid); }
.about-text p + p { margin-top: 16px; }

/* ===== SERVICES ===== */
.services { padding: 90px 0; background: var(--cream); text-align: center; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 40px;
  border: 1px solid var(--border);
}

.service-box {
  background: var(--white);
  padding: 35px 30px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  transition: background 0.2s;
}
.service-box:hover { background: var(--cream); }
.service-box i {
  font-size: 26px; color: var(--blue);
  margin-bottom: 16px; display: block;
  transition: color 0.2s;
}
.service-box:hover i { color: var(--gold); }
.service-box h3 { font-size: 17px; margin-bottom: 8px; }
.service-box p  { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

/* ===== VALUE ===== */
.value { background: var(--cream-deep); padding: 70px 0; text-align: center; }
.value ul { list-style: none; margin-top: 24px; max-width: 640px; margin-left: auto; margin-right: auto; }
.value li {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.value li::before { content: ''; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
.value li:last-child { border-bottom: none; }

/* ===== FOOTER — Light Cream ===== */
.footer {
  background: var(--cream-deep);
  color: var(--text-muted);
  padding: 70px 0 28px;
  position: relative;
  border-top: 1px solid var(--border);
  isolation: isolate;
}

/* — Animated gold-blue accent top border — */
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border) 10%,
    var(--gold) 35%,
    var(--blue) 50%,
    var(--gold) 65%,
    var(--border) 90%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  animation: borderFlowReverse 6s linear infinite;
  pointer-events: none;
}
@keyframes borderFlowReverse {
  0%   { background-position: 120% 0; }
  100% { background-position: -100% 0; }
}

.footer::after { display: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 2;
}

.footer-col h4 {
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-col p  { margin-bottom: 10px; font-size: 14px; line-height: 1.8; color: var(--text-muted); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer a {
  color: var(--text-muted);
  text-decoration: none; font-size: 14px;
  transition: color 0.25s;
}
.footer a:hover {
  color: var(--blue);
}

.social-icons { margin-top: 20px; display: flex; gap: 16px; }
.social-icons a {
  font-size: 16px;
  color: var(--text-muted);
  transition: color 0.25s, transform 0.25s;
}
.social-icons a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.3px;
  position: relative; z-index: 2;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 42px; height: 42px;
  background: var(--navy); color: var(--white);
  border: 1px solid rgba(58,124,165,0.3);
  border-radius: 2px; cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, background 0.2s, color 0.2s;
  z-index: 99; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ===== PRELOADER ===== */
.preloader {
  position: fixed; inset: 0;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.4s;
}
.preloader.hidden { opacity: 0; pointer-events: none; }
.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== HAMBURGER ===== */
.nav-toggle {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--navy); transition: 0.25s ease;
}
.nav-toggle:focus-visible + .hamburger { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  h2 { font-size: 30px; }
}

@media (max-width: 768px) {
  .hero-flex, .about-flex, .contact-grid {
    flex-direction: column; text-align: center;
  }
  .about-image img { max-width: 100%; }
  .hero-image { text-align: center; }

  /* Simplify decorative frame on mobile */
  .hero-img-frame { margin: 0 auto; padding-right: 14px; padding-bottom: 14px; }
  .hero-img-frame::after { display: none; }
  .about-image::before, .about-image::after { display: none; }

  /* Hide leading gold bar on centered hero label */
  .hero-text .section-label::before { display: none; }

  .hamburger { display: flex; }

  nav ul {
    flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6, 6, 6, 0.96);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: 0; max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 1px solid rgba(201,168,76,0.15);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  }
  nav li { margin: 0; }
  nav a  { display: block; padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.04); min-height: 44px; color: rgba(255,255,255,0.88); }
  nav a:hover, nav a.active { color: var(--gold); }
  nav a.active::after { display: none; }
  .nav-toggle:checked ~ nav ul { max-height: 340px; }
  .nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
  .nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }
  .header .nav { position: relative; }

  .services-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid  { grid-template-columns: 1fr; }
  .mv-grid, .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero    { padding: 60px 0; }
  h2       { font-size: 24px; }
  .container { width: 95%; }
  .brand-text { font-size: 13px; letter-spacing: 0.2px; }
}
