/* ============================
   Google Fonts
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Fraunces:opsz,wght@9..144,700;9..144,800&display=swap');

/* ============================
   CSS Custom Properties
   ============================ */
:root {
  --navy: #1a3a5c;
  --navy-dark: #0f2133;
  --gold: #e8a020;
  --gold-glow: rgba(232, 160, 32, 0.35);
  --dark-footer: #0d1b2a;
  --light-bg: #eef2f7;
  --body-text: #3d4450;
  --muted-text: #6b7280;
  --border: #d5dde7;
  --white: #fff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --ease-lift: transform 0.22s ease, box-shadow 0.22s ease;
}

/* ============================
   Animations
   ============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.22s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

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

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

a {
  text-decoration: none;
}

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

body {
  font-family: var(--font-body);
  color: var(--body-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
}

/* ============================
   Shared Section Styles
   ============================ */
section {
  padding: 80px 32px;
}

.section-label {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 3.5px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
  font-family: var(--font-body);
}

section h2,
section h1 {
  color: var(--navy);
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.2;
}

.section-intro {
  color: var(--muted-text);
  font-size: 15px;
  text-align: center;
  margin-bottom: 48px;
}

/* ============================
   Shared Buttons
   ============================ */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.2px;
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.btn-secondary {
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
  letter-spacing: 0.2px;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* ============================
   Form Labels
   ============================ */
.contact-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.8px;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* ============================
   Navigation
   ============================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
}

#main-nav {
  background: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 36px;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

header.scrolled #main-nav {
  background: rgba(26, 58, 92, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.nav-logo {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-family: var(--font-body);
}

#nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

#nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}

#nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 5px;
  font-weight: 700 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px var(--gold-glow) !important;
}

#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

#nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
}

/* ============================
   Hero
   ============================ */
#hero {
  background-image:
    linear-gradient(rgba(12, 28, 46, 0.88), rgba(18, 42, 70, 0.82)),
    url('images/hero-bg.jpg');
  background-color: #1c4070;
  background-size: cover;
  background-position: center;
  padding: 110px 32px 120px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 45%, rgba(232, 160, 32, 0.08) 0%, transparent 68%);
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.eyebrow {
  color: rgba(240, 184, 74, 0.95);
  font-size: 10.5px;
  letter-spacing: 3.5px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  font-family: var(--font-body);
  animation: fadeUp 0.7s ease both;
}

#hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0;
  color: var(--white);
  animation: fadeUp 0.7s 0.15s ease both;
}

.hero-accent-line {
  width: 52px;
  height: 3px;
  background: var(--gold);
  margin: 20px auto 22px;
  border-radius: 2px;
  animation: fadeIn 0.6s 0.35s ease both;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.65;
  animation: fadeUp 0.7s 0.35s ease both;
  font-family: var(--font-body);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.5s ease both;
}

/* ============================
   Trust Bar
   ============================ */
#trust-bar {
  background: var(--gold);
  padding: 16px 32px;
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}

#trust-bar span {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ============================
   Services
   ============================ */
#services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.service-card {
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  padding: 32px 28px;
  transition: var(--ease-lift);
  background: var(--white);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(26, 58, 92, 0.11);
  border-color: transparent;
  border-top-color: var(--gold);
}

.service-icon {
  font-size: 30px;
  margin-bottom: 14px;
  display: block;
}

.service-card h3 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.service-card p {
  color: var(--muted-text);
  font-size: 14px;
  line-height: 1.65;
}

/* ============================
   About
   ============================ */
#about {
  background: var(--light-bg);
}

.about-inner {
  display: flex;
  gap: 56px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
}

.about-text .section-label {
  text-align: left;
}

.about-text h2 {
  text-align: left;
  margin-bottom: 18px;
}

.about-text p {
  color: var(--body-text);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.badge {
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.about-photo {
  width: 240px;
  height: 280px;
  background: linear-gradient(145deg, #5c86ae, var(--navy));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  flex-shrink: 0;
  text-align: center;
  box-shadow: 0 20px 50px rgba(26, 58, 92, 0.2);
}

.about-seal {
  flex-direction: column;
  gap: 4px;
  padding: 32px 24px;
}

.seal-num {
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
}

.seal-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.seal-divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin: 14px 0;
}

.seal-sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* ============================
   Gallery
   ============================ */
#gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #b0c4d8, #7a9ab5);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 92, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* ============================
   Testimonials
   ============================ */
#testimonials {
  background: var(--navy);
  position: relative;
}

#testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(232, 160, 32, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

#testimonials .section-label {
  color: var(--gold);
}

#testimonials h2 {
  color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  border-left: 3px solid var(--gold);
  padding: 32px 28px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.11);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 6px;
  right: 18px;
  font-size: 88px;
  font-family: var(--font-display);
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 18px;
  position: relative;
}

.testimonial-card cite {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ============================
   Contact
   ============================ */
#contact {
  background: var(--white);
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-header p:not(.section-label) {
  color: var(--muted-text);
  font-size: 14px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 780px;
  margin: 0 auto;
}

.contact-info h3,
.contact-form h3 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 26px;
}

.contact-item {
  margin-bottom: 22px;
}

.contact-label {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.contact-info a {
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: var(--gold);
}

.contact-info p:not(.contact-label) {
  color: var(--body-text);
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  font-family: var(--font-body);
  margin-bottom: 14px;
  color: var(--body-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafbfc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.18);
  background: var(--white);
}

.contact-form textarea {
  resize: vertical;
}

.form-success {
  color: #1d6a32;
  background: #e8f5ec;
  border: 1px solid #a8d5b5;
  border-radius: 7px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

.form-error {
  color: #8b1f1f;
  background: #fff0f0;
  border: 1px solid #f0b8b8;
  border-radius: 7px;
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 8px;
}

.contact-form .btn-primary {
  width: 100%;
  font-size: 15px;
  padding: 14px;
}

/* ============================
   Footer
   ============================ */
footer {
  background: var(--dark-footer);
  padding: 26px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(232, 160, 32, 0.15);
}

footer span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

/* ============================
   Responsive — 768px
   ============================ */
@media (max-width: 768px) {
  header {
    position: relative;
  }

  #nav-toggle {
    display: flex;
  }

  #nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 99;
  }

  #nav-links.open {
    display: flex;
  }

  #hero {
    padding: 80px 24px 90px;
  }

  #hero h1 {
    font-size: 36px;
  }

  .hero-sub {
    font-size: 16px;
  }

  #trust-bar {
    gap: 16px;
    padding: 14px 24px;
  }

  section {
    padding: 64px 24px;
  }

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

  .about-inner {
    flex-direction: column;
  }

  .about-text .section-label,
  .about-text h2 {
    text-align: center;
  }

  .about-badges {
    justify-content: center;
  }

  .about-photo {
    width: 200px;
    height: 220px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================
   Responsive — 480px
   ============================ */
@media (max-width: 480px) {
  #hero h1 {
    font-size: 30px;
  }

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

/* ============================
   Accessibility — keyboard focus
   ============================ */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary:focus:not(:focus-visible),
.btn-secondary:focus:not(:focus-visible),
.nav-cta:focus:not(:focus-visible) {
  outline: none;
}
