/* ============================================
   TESCUP — Updated Color Theme (minor tweak)
   ============================================ */
:root {
  --navy: #0F2A44;
  --navy-deep: #081525;
  --sky-top: #EAF2FA;
  --sky-bottom: #5A8BB7;          /* minor tweak: deeper than before */
  --coral: #E85D3A;               /* warm accent */
  --coral-dark: #CC4D2B;
  --ink: #1B2733;
  --muted: #5B6B7A;
  --line: #E4E9EE;
  --paper: #FFFFFF;
  --panel: #F5F8FB;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(8,21,37,0.08);
  --shadow-hover: 0 16px 32px rgba(8,21,37,0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Buttons ----- */
.btn-coral {
  background: var(--coral);
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(232,93,58,0.25);
}
.btn-coral:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-outline:hover {
  background: var(--panel);
}

/* ----- Section Head ----- */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  padding: 0 16px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--navy);
}
.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.7;
}

/* ============================================
   HEADER — White/transparent with blur
   ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--navy);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--navy), #1c4d7c);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

nav.main-links {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

nav.main-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 2px;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

nav.main-links a:hover {
  color: var(--navy);
}

nav.main-links a.active {
  color: var(--navy);
}

nav.main-links a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
}

.call-block {
  text-align: right;
  flex-shrink: 0;
}

.call-block small {
  display: block;
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1px;
}

.call-block .phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--coral);
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  transition: color 0.2s ease;
}
.call-block .phone:hover {
  color: var(--coral-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  width: 22px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
}

/* Mobile Drawer */
#mobile-drawer {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 8px 20px 20px;
  border-top: 1px solid var(--line);
}

#mobile-drawer.open {
  display: flex;
}

#mobile-drawer a {
  padding: 12px 4px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
#mobile-drawer a:last-child {
  border-bottom: none;
}
#mobile-drawer .drawer-call {
  margin-top: 12px;
  color: var(--coral);
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(232,93,58,0.08);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
}

/* ============================================
   FOOTER — Dark navy
   ============================================ */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.72);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid h4 {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.5);
}

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
}
.social-links a:hover {
  background: var(--coral);
  color: #fff;
}

.footer-grid ul li {
  margin-bottom: 8px;
}

.footer-grid ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-grid ul li a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom .legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom .legal-links a {
  color: rgba(255,255,255,0.3);
}
.footer-bottom .legal-links a:hover {
  color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }
  nav.main-links {
    gap: 14px;
  }
  nav.main-links a {
    font-size: 0.8rem;
  }
}

@media (max-width: 820px) {
  nav.main-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .call-block {
    display: none;
  }
  .nav-inner {
    padding: 10px 16px;
    min-height: 56px;
  }
  .wrap {
    padding: 0 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .section-head {
    margin: 0 auto 32px;
  }
  .section-head h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom .legal-links {
    justify-content: center;
  }
  .brand {
    font-size: 1rem;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  .nav-inner {
    padding: 8px 12px;
    min-height: 50px;
  }
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (hover: none) {
  .card:hover, .btn-coral:hover {
    transform: none !important;
  }
}
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}
* {
  -webkit-tap-highlight-color: transparent;
}