:root {
  --navy: #00215b;
  --royal: #0056d2;
  --sky: #4da3ff;
  --sky-light: #e8f4ff;
  --white: #ffffff;
  --text: #4a5568;
  --text-dark: #1a202c;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Poppins", system-ui, sans-serif;
  --radius-pill: 999px;
  --shadow: 0 12px 40px rgba(0, 33, 91, 0.12);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--royal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-title.light {
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition);
}

.btn-primary {
  background: var(--royal);
  color: var(--white);
}

.btn-primary:hover {
  background: #0047b8;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 86, 210, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

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

.btn-white {
  background: var(--white);
  color: var(--royal);
}

.btn-white:hover {
  color: var(--navy);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
}

.site-header.scrolled,
.site-header.inner-header {
  position: sticky;
  top: 0;
  background: rgba(0, 33, 91, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.35rem;
}

.logo-link:hover {
  color: var(--white);
}

.logo-link img {
  width: 48px;
  height: 48px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--sky);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-btn {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.4rem;
}

/* Hero */
.hero {
  background: var(--navy);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 0 8rem;
}

.hero::before {
  content: "";
  position: absolute;
  width: 55%;
  height: 120%;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at center, #0a3a7a 0%, var(--navy) 70%);
  border-radius: 50%;
  opacity: 0.9;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-circle {
  width: min(420px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cards {
  position: relative;
  z-index: 5;
  margin-top: -4rem;
}

.hero-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--sky-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal);
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-family: var(--sans);
  font-weight: 700;
}

.wave-divider {
  line-height: 0;
  margin-top: -2px;
}

.wave-divider svg {
  width: 100%;
  height: 80px;
  display: block;
}

.wave-divider.flip svg {
  transform: scaleY(-1);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.experience-badge {
  position: absolute;
  left: -1rem;
  top: 2rem;
  background: var(--royal);
  color: var(--white);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  box-shadow: var(--shadow);
  z-index: 2;
}

.experience-badge strong {
  font-size: 2.5rem;
  line-height: 1;
}

.experience-badge span {
  font-size: 0.85rem;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-images {
  position: relative;
}

.pill-img {
  border-radius: var(--radius-pill);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pill-img.main {
  height: 380px;
}

.pill-img.main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pill-img.small {
  position: absolute;
  width: 55%;
  height: 200px;
  bottom: -2rem;
  right: 0;
  border: 6px solid var(--white);
}

/* Services dark grid */
.services-section {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}

.services-section .section-title {
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-box {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition);
}

.service-box:hover,
.service-box.highlight {
  background: var(--royal);
}

.service-box h3 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 1.2rem;
}

.service-box .icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

/* Showcase */
.showcase-section {
  background: linear-gradient(135deg, var(--royal) 0%, #003d99 100%);
  color: var(--white);
  padding: 5rem 0 6rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.showcase-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}

.showcase-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.showcase-card .body {
  padding: 1.25rem 1.5rem;
}

.showcase-card h3 {
  font-size: 1.1rem;
  font-family: var(--sans);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  background: linear-gradient(180deg, var(--royal) 0%, var(--navy) 100%);
  border-radius: 120px 120px 24px 24px;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  color: var(--white);
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid rgba(255, 255, 255, 0.4);
}

.team-card h3 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 1.15rem;
}

.team-card span {
  opacity: 0.85;
  font-size: 0.9rem;
}

/* Why choose */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-image {
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.why-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.why-box {
  background: var(--royal);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
}

.why-box h4 {
  color: var(--white);
  font-family: var(--sans);
  margin-bottom: 0.35rem;
}

.why-box p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--sky-light);
}

.price-card.featured {
  background: var(--royal);
  color: var(--white);
  transform: scale(1.04);
  border-color: var(--royal);
}

.price-card.featured h3,
.price-card.featured .price,
.price-card.featured li {
  color: var(--white);
}

.price-card .price {
  font-size: 2.5rem;
  font-family: var(--serif);
  color: var(--navy);
  margin: 1rem 0;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.price-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
}

.price-card.featured li {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Stats */
.stats-bar {
  background: var(--sky-light);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2.25rem;
  font-family: var(--serif);
  color: var(--navy);
}

.stat-item span {
  font-size: 0.95rem;
  color: var(--text);
}

/* Testimonials */
.testimonial-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
}

.testimonial-thumbs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-thumbs img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}

.testimonial-thumbs img.active {
  border-color: var(--royal);
  opacity: 1;
}

.testimonial-main {
  background: var(--sky-light);
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
}

.quote-icon {
  position: absolute;
  top: -20px;
  left: 2rem;
  width: 56px;
  height: 56px;
  background: var(--royal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  font-family: var(--serif);
}

.stars {
  color: #fbbf24;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  border-radius: 1rem;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
  position: relative;
}

.blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(0, 33, 91, 0.92));
  z-index: 0;
}

.blog-card img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.blog-card.light {
  background: var(--white);
  color: var(--text);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
}

.blog-card.light::before {
  display: none;
}

.blog-card .content {
  position: relative;
  z-index: 1;
}

.blog-card h3 {
  font-size: 1.1rem;
  color: inherit;
}

.blog-card.light h3 {
  color: var(--navy);
}

.blog-meta {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

/* Newsletter bar */
.newsletter-bar {
  background: var(--navy);
  padding: 2rem 0;
}

.newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.newsletter-inner h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.35rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 1;
  max-width: 520px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-grid h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid a:hover {
  color: var(--sky);
}

.footer-about .logo-link {
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

.social-links a:hover {
  background: var(--royal);
  color: var(--white);
}

.footer-bottom {
  background: linear-gradient(90deg, var(--royal), #003d99);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-legal {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0.5rem;
}

/* Page hero inner */
.page-hero {
  background: var(--navy);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--sky);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.6);
}

/* Forms */
.form-card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 0.75rem;
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.15);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #e53e3e;
}

.field-error {
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: block;
  min-height: 1.2em;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--royal);
  cursor: pointer;
}

.checkbox-group label {
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.form-success {
  background: #c6f6d5;
  color: #22543d;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.form-success[hidden] {
  display: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-box {
  background: var(--sky-light);
  border-radius: 1.25rem;
  padding: 2rem;
}

.contact-info-box h3 {
  margin-bottom: 1rem;
}

.contact-info-box ul {
  list-style: none;
  padding: 0;
}

.contact-info-box li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 86, 210, 0.15);
}

/* Legal content */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  font-family: var(--sans);
}

.legal-content p,
.legal-content li {
  font-size: 0.98rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.two-col-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.info-card {
  background: var(--sky-light);
  border-radius: 1rem;
  padding: 1.75rem;
}

.info-card h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
}

@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .why-grid,
  .contact-grid,
  .testimonial-wrap {
    grid-template-columns: 1fr;
  }

  .hero-cards-grid,
  .services-grid,
  .showcase-grid,
  .team-grid,
  .pricing-grid,
  .blog-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    transition: right var(--transition);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.is-open {
    right: 0;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-cards-grid,
  .services-grid,
  .showcase-grid,
  .team-grid,
  .pricing-grid,
  .blog-grid,
  .stats-grid,
  .why-features,
  .two-col-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 6rem;
  }

  .hero::before {
    width: 100%;
    opacity: 0.4;
  }
}
