/* ===== CSS Custom Properties ===== */
:root {
  --navy: #0B2341;
  --teal: #1FA3B5;
  --seafoam: #7FD6D4;
  --white: #F7FAFC;
  --slate: #5B6673;
  --nav-height: 72px;
  --max-width: 1200px;
  --radius-card: 14px;
  --radius-btn: 9px;
  --shadow-card: 0 2px 16px rgba(11,35,65,0.07);
  --shadow-card-hover: 0 8px 32px rgba(11,35,65,0.12);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--navy);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: 'Sora', sans-serif; line-height: 1.2; }
h1 { font-weight: 800; }
h2 { font-weight: 700; font-size: 2.25rem; }
h3 { font-weight: 600; font-size: 1.35rem; }
p { color: var(--slate); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== Scroll Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover {
  background: #178fa0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31,163,181,0.3);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 12px rgba(11,35,65,0.06);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--slate);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}
.nav-cta {
  font-weight: 600 !important;
  color: #fff !important;
  background: var(--teal);
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-size: 0.88rem !important;
  transition: all var(--transition) !important;
}
.nav-cta:hover { background: #178fa0; }
.nav-cta::after { display: none !important; }

/* Hero pages with dark nav */
.nav-dark .nav-links a { color: rgba(255,255,255,0.75); }
.nav-dark .nav-links a:hover,
.nav-dark .nav-links a.active { color: #fff; }
.nav-dark .nav-links a.active::after { background: var(--seafoam); }
.nav-dark.scrolled .nav-links a { color: var(--slate); }
.nav-dark.scrolled .nav-links a:hover,
.nav-dark.scrolled .nav-links a.active { color: var(--navy); }
.nav-dark.scrolled .nav-links a.active::after { background: var(--teal); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-dark .hamburger span { background: #fff; }
.nav-dark.scrolled .hamburger span { background: var(--navy); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: -4px 0 24px rgba(11,35,65,0.1);
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--navy) !important; font-size: 1.05rem; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, #122e4f 50%, #0e3558 100%);
  padding: 160px 0 120px;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(127,214,212,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(31,163,181,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Small hero for inner pages */
.hero-small {
  min-height: auto;
  padding: 140px 0 80px;
}
.hero-small h1 { font-size: 2.75rem; }

/* Flowing shapes */
.hero-flow {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  overflow: hidden;
  z-index: 1;
}
.hero-flow svg {
  position: absolute;
  bottom: -1px;
  width: 100%;
  height: 120px;
}

/* ===== Sections ===== */
section {
  padding: 100px 0;
}
.section-label {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-title {
  margin-bottom: 16px;
}
.section-intro {
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.8;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  border: 1px solid rgba(11,35,65,0.04);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.card-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(31,163,181,0.1), rgba(127,214,212,0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 24px; height: 24px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin-bottom: 12px; color: var(--navy); }
.card p { font-size: 0.95rem; }

/* ===== How It Works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--seafoam));
  opacity: 0.3;
}
.step { text-align: center; position: relative; }
.step-num {
  width: 64px; height: 64px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}
.step h3 { margin-bottom: 12px; }
.step p { font-size: 0.95rem; max-width: 300px; margin: 0 auto; }

/* ===== Who It's For ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.two-col h3 { margin-bottom: 20px; color: var(--navy); }
.check-list li {
  padding: 8px 0;
  padding-left: 32px;
  position: relative;
  color: var(--slate);
  font-size: 0.95rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 18px; height: 18px;
  background: var(--teal);
  border-radius: 50%;
  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='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* ===== CTA Sections ===== */
.cta-section {
  background: linear-gradient(160deg, var(--navy), #0e3558);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(127,214,212,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; position: relative; }
.cta-section p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 32px; position: relative; font-size: 1.05rem; }
.cta-section .btn { position: relative; }

.cta-audit {
  background: linear-gradient(160deg, var(--teal), #178fa0);
}
.cta-audit p { color: rgba(255,255,255,0.85); }
.cta-support { font-size: 0.9rem !important; margin-top: 16px !important; color: rgba(255,255,255,0.6) !important; }

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  padding: 64px 0 32px;
  color: rgba(255,255,255,0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.92rem; margin-top: 12px; line-height: 1.7; }
.footer-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
}
.footer h4 {
  color: #fff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--seafoam); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer-bottom .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ===== Services Page ===== */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 0;
}
.service-block:not(:last-child) {
  border-bottom: 1px solid rgba(11,35,65,0.06);
}
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-block h3 { font-size: 1.6rem; margin-bottom: 16px; color: var(--navy); }
.service-block p { margin-bottom: 20px; }
.service-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--slate);
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
}
.service-icon-lg {
  background: linear-gradient(135deg, rgba(31,163,181,0.06), rgba(127,214,212,0.08));
  border-radius: 20px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon-lg svg {
  width: 80px; height: 80px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
}

/* ===== About Page ===== */
.about-section { max-width: 800px; }
.about-section h2 { margin-bottom: 20px; }
.about-section p { margin-bottom: 16px; font-size: 1.05rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.value-item {
  padding: 28px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--teal);
}
.value-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.value-item p { font-size: 0.92rem; }

/* Approach steps */
.approach-steps {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.approach-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.approach-step .num {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--teal);
  margin-bottom: 8px;
}
.approach-step h4 {
  font-size: 0.95rem;
  color: var(--navy);
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 16px; color: var(--navy); }
.contact-info p { margin-bottom: 16px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--navy);
  font-weight: 500;
}
.contact-detail svg {
  width: 20px; height: 20px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(11,35,65,0.12);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--navy);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; padding: 16px; font-size: 1rem; }

.response-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 20px;
  background: rgba(31,163,181,0.08);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .card-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 60px 0; }
  h2 { font-size: 1.75rem; }
  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero h1 { font-size: 2.25rem; }
  .hero-small { padding: 120px 0 60px; }
  .card-grid, .steps { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .service-block { grid-template-columns: 1fr; gap: 32px; }
  .service-block.reverse { direction: ltr; }
  .service-icon-lg { height: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .values-grid { grid-template-columns: 1fr; }
  .approach-steps { flex-direction: column; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; }
}
