/* =========================================================
   STYLE.CSS — Shared stylesheet for all pages
   =========================================================
   CONFIGURABLE THEME VARIABLES
   Change the colors below to re-theme the entire site.
   Currently set to a professional Blue Theme:
   - Dark Navy   = primary brand color (header, footer, headings)
   - Sky Blue    = accent color (buttons, links, highlights)
   - Light Blue/Grey = page backgrounds
   ========================================================= */

:root {
  /* --- Brand Colors (EDIT HERE TO RE-THEME) --- */
  --color-primary: #0a2540;        /* dark navy */
  --color-primary-light: #123a63;  /* lighter navy for gradients/hover */
  --color-accent: #2196f3;         /* vibrant sky blue */
  --color-accent-hover: #42a9f5;   /* sky blue hover state */
  --color-bg: #f4f7fa;             /* light blue-grey page background */
  --color-bg-alt: #e8eef5;         /* slightly deeper section background */
  --color-white: #ffffff;
  --color-text: #1c2733;
  --color-text-light: #5a6b7d;
  --color-border: #dbe4ee;

  /* --- Layout --- */
  --max-width: 1180px;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.12);
  --transition: all 0.25s ease;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

h1, h2, h3, h4 {
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; }

p { color: var(--color-text-light); }

section {
  padding: 72px 0;
}

.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  transform: translateY(-3px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  background-color: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  color: var(--color-white);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

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

.main-nav {
  display: flex;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: var(--color-white);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 100px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 18px;
}

.hero .subtitle {
  color: #cfe0f2;
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image img {
  box-shadow: var(--shadow-md);
}

/* ---------- Page Header (for inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 64px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
}

.page-header p {
  color: #cfe0f2;
  max-width: 560px;
  margin: 12px auto 0;
}

/* ---------- Overview / Cards ---------- */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.overview-card {
  background-color: var(--color-white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.overview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.overview-card .icon {
  width: 52px;
  height: 52px;
  background-color: var(--color-bg-alt);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 700;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-accent);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.service-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.service-card h3 {
  margin-bottom: 10px;
}

.services-cta {
  margin-top: 56px;
  text-align: center;
  background: var(--color-bg-alt);
  padding: 48px 24px;
  border-radius: var(--radius);
}

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

.about-columns img {
  box-shadow: var(--shadow-md);
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stat-item h3 {
  color: var(--color-accent);
  font-size: 1.8rem;
}

.stat-item p {
  font-size: 0.9rem;
}

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

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-card img {
  border-radius: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-card .team-info {
  padding: 18px;
}

.team-card .role {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Contact Page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-info-card {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 40px 32px;
  border-radius: var(--radius);
  height: fit-content;
}

.contact-info-card h3 {
  color: var(--color-white);
  margin-bottom: 20px;
}

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

.contact-info-item .label {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.contact-info-item p,
.contact-info-item a {
  color: #dce8f5;
}

.contact-form {
  background-color: var(--color-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-bg);
  transition: var(--transition);
  color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
  background-color: var(--color-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-required {
  color: var(--color-accent);
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--color-primary);
  color: #cfe0f2;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 32px;
}

.footer-brand h3 {
  color: var(--color-white);
  margin-bottom: 10px;
}

.site-footer h4 {
  color: var(--color-white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.site-footer a {
  color: #cfe0f2;
  transition: var(--transition);
}

.site-footer a:hover {
  color: var(--color-accent);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-contact p {
  color: #cfe0f2;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
}

.footer-bottom p {
  color: #9fb6cf;
}

/* ---------- Modal (Contact form confirmation) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 37, 64, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 42px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: modalPop 0.25s ease;
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-bg-alt);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 18px;
}

.modal-box h3 {
  margin-bottom: 10px;
}

.modal-box p {
  margin-bottom: 24px;
}

.modal-close-btn {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background-color: var(--color-accent-hover);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-inner,
  .about-columns,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-image { order: -1; }

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

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

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

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    max-height: 400px;
    box-shadow: var(--shadow-md);
  }

  .nav-links {
    flex-direction: column;
    padding: 12px 24px 24px;
    gap: 4px;
  }

  .hamburger {
    display: flex;
  }

  section { padding: 56px 0; }

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

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero { padding: 64px 0; }

  .hero-cta { justify-content: center; }
}

@media (max-width: 480px) {
  .contact-form { padding: 28px 22px; }
  .contact-info-card { padding: 28px 22px; }
}
