/* ========== Global Styles ========== */

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

:root {
  --primary: #0b2538;
  --primary-light: #123a55;
  --accent: #f39c12;
  --bg: #f5f7fa;
  --text: #1f2933;
  --muted: #6b7280;
  --white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --transition-fast: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
}

/* Layout */

.container {
  width: min(1100px, 100% - 2.5rem);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-light {
  background-color: var(--bg);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* ========== Header & Navigation ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 37, 56, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.main-nav a {
  color: #dbeafe;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Mobile nav */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--white);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ========== Hero ========== */

.hero {
  position: relative;
  height: 70vh;
  min-height: 430px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 37, 56, 0.9), rgba(11, 37, 56, 0.35));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 3.2vw + 1.6rem, 3rem);
  max-width: 26rem;
  margin-bottom: 0.9rem;
}

.hero-content p {
  max-width: 30rem;
  margin-bottom: 1.8rem;
  color: #e5e7eb;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sub-hero for inner pages */

.sub-hero {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.sub-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 37, 56, 0.9), rgba(11, 37, 56, 0.4));
}

.sub-hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.sub-hero-content h1 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: var(--accent);
  color: #111827;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: #fbbf24;
}

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

.btn-secondary:hover {
  background: #1f3b53;
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

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

.btn-wrapper {
  text-align: center;
  margin-top: 2rem;
}

/* ========== Home - Intro ========== */

.intro-inner {
  display: grid;
  gap: 2rem;
}

.intro-highlight {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0b2538, #123a55);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.intro-highlight h3 {
  margin-bottom: 0.75rem;
}

.intro-highlight ul {
  list-style: none;
}

.intro-highlight li {
  margin-bottom: 0.35rem;
}

/* ========== Cards & Grids ========== */

.grid {
  display: grid;
  gap: 1.8rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

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

.card-body {
  padding: 1.3rem 1.2rem 1.4rem;
}

.card-body h3 {
  margin-bottom: 0.4rem;
}

.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Snapshots */

.snapshot-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.snapshot {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.snapshot img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.snapshot figcaption {
  padding: 0.9rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Services layout */

.service-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.service-section:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}

.service-text h3 {
  margin-bottom: 0.5rem;
}

.service-text p {
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.service-text ul {
  padding-left: 1.1rem;
}

.service-text li {
  margin-bottom: 0.3rem;
}

.service-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  max-height: 270px;
}

/* About page */

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.tick-list {
  list-style: none;
}

.tick-list li::before {
  content: "✔";
  color: var(--accent);
  margin-right: 0.5rem;
}

.tick-list li {
  margin-bottom: 0.6rem;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-details {
  list-style: none;
  margin: 1rem 0;
}

.contact-details li {
  margin-bottom: 0.4rem;
}

.contact-details a {
  color: var(--primary-light);
}

/* Form */

.contact-form {
  background: var(--white);
  padding: 1.8rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.error-message {
  display: block;
  font-size: 0.8rem;
  color: #b91c1c;
  min-height: 1em;
}

.form-note {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* CTA */

.cta {
  background: linear-gradient(135deg, #0b2538, #123a55);
  color: var(--white);
  padding: 3rem 0;
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.cta-inner p {
  margin: 0.7rem 0 1.4rem;
  color: #e5e7eb;
}

/* Footer */

.site-footer {
  background: #020617;
  color: #9ca3af;
  padding: 1.8rem 0 1.6rem;
  font-size: 0.85rem;
}

.footer-inner {
  text-align: center;
}

.site-footer a {
  color: #e5e7eb;
}

/* ========== Responsive ========== */

@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #0b2538;
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    height: 60vh;
  }

  .service-section,
  .service-section:nth-child(even),
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-image img {
    max-height: 220px;
  }

  .intro-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.9rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .card img {
    height: 160px;
  }
}
