/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --navy: #0F2340;
  --navy-light: #1A3558;
  --navy-deep: #091829;
  --amber: #E87722;
  --amber-dark: #D06A1E;
  --amber-light: #F59E4B;
  --charcoal: #2D3142;
  --text-body: #4A5568;
  --text-light: #718096;
  --cream: #F8F6F2;
  --white: #FFFFFF;
  --green: #2E7D52;
  --border: rgba(15,35,64,0.12);
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.15;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--amber);
  z-index: 10000;
  transition: none;
  will-change: width;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,35,64,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-brand img {
  height: 44px;
  width: auto;
}
.header-brand-text {
  display: flex;
  flex-direction: column;
  border-left: 2px solid rgba(15,35,64,0.1);
  padding-left: 12px;
}
.header-brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.2;
}
.header-brand-tagline {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.2s ease;
  position: relative;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.3s ease;
}
.header-nav a:hover { color: var(--amber); }
.header-nav a:hover::after { width: 100%; }
.header-nav a.active { color: var(--amber); }
.header-nav a.active::after { width: 100%; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--amber);
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}
.header-phone:hover { background: var(--amber-dark); }
.header-phone svg { width: 16px; height: 16px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 10001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: var(--navy);
  z-index: 10000;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-nav.active { right: 0; }
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--white);
  transition: color 0.2s ease;
}
.mobile-nav a:hover { color: var(--amber); }
.mobile-nav a.active { color: var(--amber); }
.mobile-nav-phone {
  margin-top: 20px;
  padding: 16px 36px;
  background: var(--amber);
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--amber);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 119, 34, 0.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--navy);
  border-radius: 8px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--white);
  color: var(--amber);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ============================================
   SECTION COMPONENTS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber);
  margin-bottom: 16px;
}
.section-tag::before, .section-tag::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--amber);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
}
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-social a {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}
.footer-social a:hover {
  background: var(--amber);
  transform: translateY(-3px);
}
.footer-social a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.footer h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ============================================
   MOBILE CALL BAR
   ============================================ */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--amber);
  z-index: 9998;
  padding: 14px 24px;
  text-align: center;
}
.mobile-call-bar a {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-call-bar a svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--amber);
}
.form-checkbox label {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
}
.form-checkbox label a {
  color: var(--amber);
  text-decoration: underline;
}
.form-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--amber);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.form-submit:hover { background: var(--amber-dark); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* ============================================
   PAGE CONTENT WRAPPER
   ============================================ */
.page-content {
  padding-top: 80px;
}

/* ============================================
   PAGE HERO (for subpages)
   ============================================ */
.page-hero {
  padding: 140px 0 60px;
  background: var(--cream);
  text-align: center;
}
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.page-hero .breadcrumb a {
  color: var(--text-light);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.page-hero .breadcrumb a:hover { color: var(--amber); }
.page-hero .breadcrumb span { color: var(--text-light); font-size: 0.85rem; }
.page-hero .breadcrumb .cur { color: var(--amber); font-weight: 600; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--navy);
  margin-bottom: 16px;
}
.page-hero .hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   REVEAL ANIMATION (CSS-only fallback)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
  .header-nav, .header-phone { display: none; }
  .hamburger { display: flex; }
  .header-brand-text { display: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1025px) {
  .mobile-nav { display: none; }
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 60px; }
  .container { padding: 0 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
}

/* ============================================
   RESPONSIVE — 480px
   ============================================ */
@media (max-width: 480px) {
  h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.4rem); }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .footer { padding: 60px 0 0; }
}
