/* ============================================
   CSI Design — Website Stylesheet
   Brand Colors: Navy #00475D | Orange #EA7234 | Gray #58595B
   Dark & Bold Design System
   ============================================ */

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

:root {
  --navy: #00475D;
  --navy-dark: #003344;
  --navy-deeper: #002233;
  --gray: #58595B;
  --gray-light: #8A8B8D;
  --gray-lighter: #B0B1B3;
  --accent: #EA7234;
  --gold: #EA7234;
  --accent-hover: #F08A52;
  --white: #FFFFFF;
  --off-white: #F5F6F8;
  --light-gray: #F5F5F5;
  --dark: #0F0F0F;
  --text-light: #C8CDD3;
  --success: #4CAF50;
  --font-heading: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1280px;
  --transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 100px; }

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--navy-deeper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.section-title { margin-bottom: 1.5rem; }
.section-subtitle { color: var(--text-light); font-size: 1.125rem; max-width: 640px; margin-bottom: 3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent);
  color: var(--navy-dark);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 168, 83, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy-dark);
  transform: translateY(-2px);
}

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

/* ---------- Header / Navigation ---------- */
/* Inner-page header: white, fixed. index.html overrides to transparent via inline CSS. */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  z-index: 1000;
  padding: 0.6rem 0;
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

header.scrolled {
  background-color: #ffffff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 0.4rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo img { height: 85px; width: auto; transition: var(--transition); }
.logo-text { display: none; }
header.scrolled .logo img { height: 65px; }

nav.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
  list-style: none;
}

nav.nav-links > a,
nav.nav-links > .dropdown > a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

nav.nav-links > a:hover,
nav.nav-links > .dropdown > a:hover { color: var(--accent); }

/* Dropdown */
.dropdown { position: relative; }

.dropdown-toggle::after {
  content: '\25BC';
  font-size: 0.6rem;
  margin-left: 0.4rem;
  display: inline-block;
  opacity: 0.5;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  background-color: #ffffff;
  border: 1px solid rgba(0, 71, 93, 0.15);
  border-radius: 6px;
  min-width: 240px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, margin-top 0.3s ease;
  margin-top: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

@media (hover: hover) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0.25rem;
  }
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 0.25rem;
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--navy) !important;
  text-shadow: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.88rem;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background-color: rgba(234, 114, 52, 0.06);
  color: var(--accent) !important;
}

.dropdown-menu a:last-child { border-bottom: none; }

.cta-button {
  background-color: var(--accent);
  color: #ffffff !important;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.cta-button:hover {
  background-color: #d35f25;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Hamburger toggle — hidden on desktop, shown on mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(9,26,46,0.92) 0%, rgba(27,58,92,0.75) 50%, rgba(9,26,46,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 8rem 0 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid rgba(212, 168, 83, 0.3);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .highlight { color: var(--accent); }

.hero-text {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--navy);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.trust-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- Section Spacing ---------- */
.section { padding: 6rem 0; }
.section-dark { background: var(--navy-deeper); }
.section-navy { background: var(--navy-dark); }
.section-accent { background: var(--navy); }
.section-light { background: var(--off-white); color: var(--navy-dark); }

.section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5 { color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy h4, .section-navy h5 { color: var(--white); }
.section-accent h2, .section-accent h3, .section-accent h4, .section-accent h5 { color: var(--white); }

.section-light h2, .section-light h3, .section-light h4 { color: var(--navy-dark); }
.section-light p { color: var(--gray); }
.section-light .section-label { color: var(--accent); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(212, 168, 83, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(212, 168, 83, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.service-card h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1.5rem; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.service-link:hover { gap: 0.75rem; }

/* ---------- Team Photo Safety Net ---------- */
/* Ensures team headshots never crop heads — always anchor to top of image */
.team-avatar img {
  object-fit: cover !important;
  object-position: center top !important;
}

/* ---------- Featured Project ---------- */
.featured-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.project-image {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.project-image img { width: 100%; height: 100%; object-fit: cover; }

.project-image-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--accent);
  color: var(--navy-dark);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-content h3 { font-size: 2rem; margin-bottom: 1rem; }
.project-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-light);
}

.project-meta span { display: flex; align-items: center; gap: 0.4rem; }

/* ---------- Portfolio Grid ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 168, 83, 0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.portfolio-card-image { aspect-ratio: 16/10; overflow: hidden; }
.portfolio-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-card:hover .portfolio-card-image img { transform: scale(1.05); }

.portfolio-card-content { padding: 1.75rem; }
.portfolio-card-content h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.portfolio-card-tag {
  display: inline-block;
  background: rgba(212, 168, 83, 0.12);
  color: var(--accent);
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.portfolio-card-content p { color: var(--text-light); font-size: 0.9rem; }

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

.stat-item { padding: 2rem; }

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Team Grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); }

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--navy);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  border: 3px solid rgba(212, 168, 83, 0.3);
}

.team-card h4 { margin-bottom: 0.25rem; }
.team-role { color: var(--accent); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.team-bio { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
}

.testimonial-quote {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 0.75rem; }
.testimonial-author { font-weight: 600; }
.testimonial-role { color: var(--gray-light); font-size: 0.85rem; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 16px;
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,168,83,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner h2 { margin-bottom: 1rem; position: relative; }
.cta-banner p { color: var(--text-light); font-size: 1.1rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; position: relative; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(212, 168, 83, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-item h4 { margin-bottom: 0.25rem; }
.contact-info-item p { color: var(--text-light); font-size: 0.95rem; }

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
}

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

.form-group select option {
  background: #1a1a1a;
  color: #ffffff;
}

.form-group select option:hover,
.form-group select option:checked {
  background: var(--accent);
  color: #ffffff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deeper);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about img { height: 45px; margin-bottom: 1.25rem; }
.footer-about p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-light); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-light);
  align-items: flex-start;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
  font-size: 0.9rem;
}

.social-link:hover { background: var(--accent); color: var(--navy-dark); border-color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray-light);
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  background: var(--navy-dark);
  padding: 7rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,168,83,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header h1 { margin-bottom: 1rem; position: relative; }
.page-header p { color: var(--text-light); font-size: 1.2rem; max-width: 640px; position: relative; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.breadcrumb a { color: var(--gray-light); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--gray-light); }

/* ---------- Content Sections ---------- */
.content-block { max-width: 800px; }
.content-block p { color: var(--text-light); font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }
.content-block h3 { margin-top: 2.5rem; margin-bottom: 1rem; }

.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-list { list-style: none; margin-top: 1.5rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ---------- Urgency Banner ---------- */
.urgency-banner {
  background: linear-gradient(90deg, #8B3A3A, #6B2D2D);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.urgency-banner a { color: var(--accent); text-decoration: underline; }

/* ---------- Touch Device: Disable Sticky Hover Effects ---------- */
/* On devices without a true pointer hover (phones, tablets),
   cancel transform/scale/shadow hover effects that stick on iOS.
   Simple color-change hovers are fine — only layout-shifting ones cause problems. */
@media (hover: none) {
  .btn-primary:hover,
  .btn-outline:hover,
  .btn-navy:hover {
    transform: none;
    box-shadow: none;
  }
  .service-card:hover {
    transform: none;
    box-shadow: none;
  }
  .service-card:hover::before {
    transform: scaleX(0);
  }
  .portfolio-card:hover {
    transform: none;
    box-shadow: none;
  }
  .portfolio-card:hover .portfolio-card-image img {
    transform: none;
  }
  .team-card:hover {
    transform: none;
  }
  .testimonial-card:hover {
    transform: none;
    box-shadow: none;
  }
  .social-link:hover {
    transform: none;
  }
  .service-link:hover {
    gap: 0.5rem;
  }
  a:hover {
    color: var(--accent-hover);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .featured-project { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .split-content { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  /* Typography scaling for tablet */
  h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
  h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
  h4 { font-size: 1.1rem; }
  p { font-size: 0.95rem; }

  /* Container & section padding */
  .container { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }
  .section-inner { padding: 0 1.5rem; }

  /* Navigation */
  .hamburger { display: flex; }
  nav.nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #002233 !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    gap: 0;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav.nav-links.active { display: flex; }
  nav.nav-links > a,
  nav.nav-links > .dropdown > a {
    padding: 1.1rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
    color: #ffffff !important;
    font-size: 1.15rem;
    font-weight: 600;
    text-shadow: none;
    text-align: center;
  }
  nav.nav-links > .dropdown {
    width: 100%;
    text-align: center;
  }
  nav.nav-links > a:hover,
  nav.nav-links > .dropdown > a:hover { color: var(--accent) !important; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 0;
    min-width: auto;
    text-align: center;
  }
  .dropdown-menu a {
    color: rgba(255, 255, 255, 0.7) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
  .dropdown-menu a:hover { color: var(--accent) !important; background: rgba(255, 255, 255, 0.04); }
  nav.nav-links > .cta-button {
    margin-top: 1rem;
    text-align: center;
    padding: 0.8rem;
    display: block;
  }
  .header-content { padding: 0 1rem; }
  .logo img { height: 60px; }

  /* Hero section */
  .hero-content { padding: 7rem 0 3rem; }
  .hero-badge { font-size: 0.75rem; padding: 0.35rem 0.9rem; }
  .hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.25rem; }
  .hero-text { font-size: 1rem; margin-bottom: 2rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; text-align: center; justify-content: center; padding: 1rem; }
  .hero-stat-number { font-size: 2rem; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; padding-top: 1.5rem; }
  .hero-stat-label { font-size: 0.8rem; }

  /* Trust bar */
  .trust-items { gap: 2rem; }
  .trust-item { font-size: 0.85rem; }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  .btn-primary,
  .btn-outline,
  .btn-navy {
    padding: 0.75rem 1.5rem;
  }

  /* Service cards & lists */
  .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-card { padding: 1.75rem; }
  .service-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
  .service-card p { font-size: 0.9rem; }
  .service-icon { width: 48px; height: 48px; margin-bottom: 1rem; }

  /* Lists */
  ul, ol {
    padding-left: 1.5rem;
  }
  li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
  }
  .service-list li {
    padding-left: 0.5rem;
  }
  .feature-list li {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
  }

  /* Featured project */
  .featured-project { grid-template-columns: 1fr; gap: 2rem; }
  .project-image { aspect-ratio: 16/10; }
  .project-content h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
  .project-meta { gap: 1.5rem; font-size: 0.85rem; }

  /* Portfolio grid */
  .portfolio-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .portfolio-card-content { padding: 1.25rem; }
  .portfolio-card-content h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
  .portfolio-card-content p { font-size: 0.85rem; }
  .portfolio-card-tag { font-size: 0.7rem; padding: 0.15rem 0.6rem; }

  /* Stats row */
  .stats-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .stat-item { padding: 1.25rem; }
  .stat-number { font-size: 2.5rem; }
  .stat-label { font-size: 0.85rem; }

  /* Team grid */
  .team-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .team-card { padding: 1.5rem; }
  .team-avatar { width: 80px; height: 80px; font-size: 1.75rem; margin-bottom: 1rem; }
  .team-card h4 { font-size: 1.1rem; }
  .team-role { font-size: 0.8rem; }
  .team-bio { font-size: 0.85rem; }

  /* Testimonial card */
  .testimonial-card { padding: 1.75rem; }
  .testimonial-quote { font-size: 1rem; margin-bottom: 1rem; }

  /* CTA banner */
  .cta-banner {
    padding: 3rem 1.5rem;
    border-radius: 12px;
  }
  .cta-banner::before { display: none; }
  .cta-banner h2 { font-size: 1.6rem; margin-bottom: 1rem; }
  .cta-banner p { font-size: 1rem; margin-bottom: 1.5rem; }
  .cta-buttons { flex-direction: column; gap: 0.75rem; }
  .cta-buttons .btn { width: 100%; justify-content: center; }

  /* Contact form */
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-info-item { margin-bottom: 1.5rem; }
  .contact-icon { width: 40px; height: 40px; }
  .contact-info-item h4 { font-size: 1rem; }
  .contact-info-item p { font-size: 0.9rem; }
  .form-group label { font-size: 0.8rem; margin-bottom: 0.4rem; }
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  .form-row { grid-template-columns: 1fr; gap: 1rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
  .footer-about img { height: 40px; margin-bottom: 1rem; }
  .footer-about p { font-size: 0.85rem; }
  .footer-heading { font-size: 0.8rem; margin-bottom: 1rem; }
  .footer-links li { margin-bottom: 0.5rem; }
  .footer-links a { font-size: 0.85rem; }
  .footer-contact-item { font-size: 0.85rem; margin-bottom: 0.5rem; }
  .social-link { width: 40px; height: 40px; font-size: 0.85rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; font-size: 0.8rem; }

  /* Page header */
  .page-header { padding: 5.5rem 0 1.5rem; }
  .page-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
  .page-header p { font-size: 1rem; }
  .breadcrumb { font-size: 0.8rem; margin-bottom: 1rem; }

  /* Content sections */
  .content-block { max-width: 100%; }
  .content-block p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.25rem; }
  .content-block h3 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.75rem; }

  /* Split content */
  .split-content { grid-template-columns: 1fr; gap: 2rem; }

  /* Ensure no horizontal overflow */
  .cta-banner { margin-left: 0; margin-right: 0; }
  .cta-banner::before { width: 200px; height: 200px; }

  /* Form row stacking */
  .form-row { grid-template-columns: 1fr; }

  /* Section subtitle */
  .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
}

/* ---------- Small Mobile (480px and below) ---------- */
@media (max-width: 480px) {
  /* Scroll offset */
  html { scroll-padding-top: 70px; }

  /* Typography scaling for small phones */
  h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
  h2 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); }
  h3 { font-size: clamp(1rem, 1.8vw, 1.3rem); }
  h4 { font-size: 1rem; }
  p { font-size: 0.9rem; }
  .section-label { font-size: 0.75rem; letter-spacing: 0.15em; }

  /* Container & section padding */
  .container { padding: 0 1rem; }
  .header-content { padding: 0 1rem; }
  .section-inner { padding: 0 1rem; }

  /* Header */
  .logo img { height: 55px; }
  header.scrolled .logo img { height: 48px; }

  /* Navigation toggle */
  .hamburger span { width: 20px; height: 1.5px; }
  nav.nav-links.active { padding: 5.5rem 1rem; }
  nav.nav-links.active > a { font-size: 1rem; padding: 0.6rem 0; }

  /* Hero section */
  .hero-content { padding: 6rem 0 2rem; }
  .hero-badge { font-size: 0.65rem; padding: 0.3rem 0.75rem; margin-bottom: 1.5rem; }
  .hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
  .hero-text { font-size: 0.9rem; margin-bottom: 1.75rem; line-height: 1.7; }
  .hero-buttons { gap: 0.5rem; }
  .hero-buttons .btn { padding: 0.75rem 1rem; font-size: 0.85rem; }
  .hero-stat-number { font-size: 1.75rem; }
  .hero-stat-label { font-size: 0.75rem; }
  .hero-stats { gap: 1.5rem; padding-top: 1.25rem; margin-top: 2rem; }

  /* Trust bar */
  .trust-items { gap: 1.25rem; }
  .trust-item { font-size: 0.8rem; gap: 0.4rem; }
  .trust-icon { width: 16px; height: 16px; }

  /* Buttons */
  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }
  .btn-primary,
  .btn-outline,
  .btn-navy {
    padding: 0.65rem 1.25rem;
    font-size: 0.8rem;
  }

  /* Service cards */
  .services-grid { gap: 1.25rem; }
  .service-card { padding: 1.5rem; }
  .service-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
  .service-card p { font-size: 0.85rem; margin-bottom: 1rem; }
  .service-icon { width: 40px; height: 40px; margin-bottom: 0.75rem; font-size: 1.3rem; }
  .service-link { font-size: 0.8rem; }

  /* Lists - critical for small screens */
  ul, ol {
    padding-left: 1.25rem;
    margin: 0.75rem 0;
  }
  li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
    font-size: 0.9rem;
  }
  .service-list li {
    padding-left: 0.25rem;
  }
  .feature-list li {
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
  }
  .feature-list li::before {
    margin-top: 0;
    font-size: 0.9rem;
  }

  /* Featured project */
  .featured-project { gap: 1.5rem; }
  .project-image { aspect-ratio: 16/10; border-radius: 8px; }
  .project-image-badge { top: 1rem; left: 1rem; padding: 0.3rem 0.75rem; font-size: 0.7rem; }
  .project-content h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
  .project-meta { gap: 1rem; font-size: 0.8rem; }

  /* Portfolio grid */
  .portfolio-grid { gap: 1.25rem; }
  .portfolio-card-image { aspect-ratio: 16/10; }
  .portfolio-card-content { padding: 1rem; }
  .portfolio-card-content h3 { font-size: 1rem; margin-bottom: 0.3rem; }
  .portfolio-card-content p { font-size: 0.8rem; }
  .portfolio-card-tag { font-size: 0.65rem; padding: 0.1rem 0.5rem; margin-bottom: 0.5rem; }

  /* Stats row */
  .stats-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .stat-item { padding: 1rem; }
  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.75rem; }

  /* Team grid */
  .team-grid { gap: 1.25rem; }
  .team-card { padding: 1.25rem; }
  .team-avatar { width: 70px; height: 70px; font-size: 1.5rem; margin: 0 auto 0.75rem; }
  .team-card h4 { font-size: 1rem; margin-bottom: 0.2rem; }
  .team-role { font-size: 0.75rem; margin-bottom: 0.75rem; }
  .team-bio { font-size: 0.8rem; line-height: 1.5; }

  /* Testimonial card */
  .testimonial-card { padding: 1.5rem; }
  .testimonial-quote { font-size: 0.9rem; margin-bottom: 0.75rem; line-height: 1.6; }
  .testimonial-stars { font-size: 1rem; margin-bottom: 0.5rem; }
  .testimonial-author { font-size: 0.95rem; }
  .testimonial-role { font-size: 0.8rem; }

  /* CTA banner */
  .cta-banner {
    padding: 2rem 1.25rem;
    border-radius: 8px;
    text-align: center;
  }
  .cta-banner h2 { font-size: 1.35rem; margin-bottom: 0.75rem; }
  .cta-banner p { font-size: 0.9rem; margin-bottom: 1.25rem; }
  .cta-buttons { gap: 0.5rem; }
  .cta-buttons .btn { width: 100%; padding: 0.7rem; font-size: 0.8rem; }

  /* Contact form */
  .contact-icon { width: 36px; height: 36px; }
  .contact-info-item h4 { font-size: 0.95rem; margin-bottom: 0.15rem; }
  .contact-info-item p { font-size: 0.85rem; }
  .form-group label { font-size: 0.75rem; margin-bottom: 0.35rem; }
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.65rem 0.9rem;
    font-size: 16px; /* Prevent iOS auto-zoom on focus */
    min-height: 44px; /* Touch target minimum */
  }
  .form-group textarea { min-height: 120px; }

  /* Footer */
  .footer-grid { gap: 1.5rem; margin-bottom: 1.5rem; }
  .footer-about img { height: 35px; margin-bottom: 0.75rem; }
  .footer-about p { font-size: 0.8rem; }
  .footer-heading { font-size: 0.75rem; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
  .footer-links li { margin-bottom: 0.35rem; }
  .footer-links a { font-size: 0.8rem; }
  .footer-contact-item { font-size: 0.8rem; margin-bottom: 0.35rem; }
  .social-links { gap: 0.5rem; margin-top: 1rem; }
  .social-link { width: 38px; height: 38px; font-size: 0.75rem; }
  .footer-bottom { padding-top: 1.5rem; gap: 0.75rem; font-size: 0.75rem; }

  /* Page header */
  .page-header {
    padding: 5rem 0 1.25rem;
  }
  .page-header::before { display: none; }
  .page-header h1 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin-bottom: 0.6rem; }
  .page-header p { font-size: 0.9rem; }
  .breadcrumb { font-size: 0.75rem; margin-bottom: 1rem; }

  /* Content sections */
  .content-block p { font-size: 0.9rem; line-height: 1.65; margin-bottom: 1rem; }
  .content-block h3 { font-size: 1.2rem; margin-top: 1.5rem; margin-bottom: 0.6rem; }

  /* Images */
  img { max-width: 100%; height: auto; }

  /* Urgency banner */
  .urgency-banner { font-size: 0.85rem; padding: 0.75rem 0; }

  /* Section padding reduction for small phones */
  .section { padding: 2.5rem 0; }

  /* Prevent any horizontal overflow */
  .cta-banner { padding: 1.5rem 1rem; border-radius: 8px; }
  .cta-banner h2 { font-size: 1.2rem; }
  .cta-banner p { font-size: 0.85rem; margin-bottom: 1rem; }
  .cta-buttons .btn { font-size: 0.78rem; padding: 0.6rem 1rem; }

  /* Footer bottom links wrap nicely */
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-bottom a { margin-left: 0.5rem; }

  /* Ensure containers don't overflow */
  .container { padding: 0 1rem; overflow-x: hidden; }
  body { overflow-x: hidden; }

  /* Section subtitle */
  .section-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }
}

/* ---------- iPhone / Small Mobile (390px and below) ---------- */
@media (max-width: 390px) {
  /* Scroll offset for smaller screens */
  html { scroll-padding-top: 60px; }

  /* Container & spacing */
  .container { padding: 0 0.875rem; }
  .section { padding: 2rem 0; }

  /* Typography */
  h1 { font-size: clamp(1.3rem, 4vw, 1.7rem); }
  h2 { font-size: clamp(1.12rem, 3.5vw, 1.5rem); }
  h3 { font-size: clamp(0.95rem, 3vw, 1.2rem); }
  p { font-size: 0.88rem; }

  /* Buttons — enforce 44px touch target */
  .btn {
    padding: 0.75rem 1.15rem;
    font-size: 0.78rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Hero */
  .hero-content { padding: 5.5rem 0 2rem; }
  .hero-badge { font-size: 0.6rem; padding: 0.28rem 0.65rem; }
  .hero-stats { gap: 1rem; padding-top: 1rem; margin-top: 1.5rem; }
  .hero-stat-number { font-size: 1.5rem; }
  .hero-buttons .btn { padding: 0.7rem; }

  /* Trust bar */
  .trust-item { font-size: 0.75rem; }
  .trust-items { gap: 1rem; }

  /* Stats */
  .stat-item { padding: 0.85rem; }
  .stat-number { font-size: 1.75rem; }

  /* CTA banner */
  .cta-banner { padding: 1.5rem 1rem; border-radius: 6px; }
  .cta-banner h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
  .cta-banner p { font-size: 0.82rem; margin-bottom: 0.9rem; }

  /* Social links — 44px touch target */
  .social-link { width: 40px; height: 40px; font-size: 0.8rem; }
  .social-links { gap: 0.6rem; }

  /* Footer */
  .footer-grid { gap: 1.25rem; }
  .footer-bottom { gap: 0.6rem; font-size: 0.72rem; }
  .footer-bottom a { margin-left: 0.25rem; margin-right: 0.25rem; }

  /* Page header */
  .page-header { padding: 4.5rem 0 1rem; }
  .page-header h1 { font-size: 1.25rem; }

  /* Service cards */
  .service-card { padding: 1.25rem; }

  /* Portfolio */
  .portfolio-grid { gap: 1rem; }
  .portfolio-card-content { padding: 0.85rem; }
  .portfolio-card-content h3 { font-size: 0.92rem; }

  /* Team */
  .team-avatar { width: 65px; height: 65px; font-size: 1.3rem; }

  /* FAQ items override inline styles */
  .faq-question { font-size: 0.95rem !important; }
  .faq-item { padding: 1rem 0 !important; }

  /* Form inputs — prevent iOS zoom, 44px touch target */
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
    padding: 0.6rem 0.85rem;
    min-height: 44px;
  }

  /* Nav overlay */
  nav.nav-links.active { padding: 5rem 1rem; }
  nav.nav-links.active > a { font-size: 0.95rem; }

  /* Header */
  .header-content { padding: 0 0.75rem; }
  .logo img { height: 50px; }
  header.scrolled .logo img { height: 42px; }
}

/* ---------- Extra Small (360px and below) ---------- */
@media (max-width: 360px) {
  .container { padding: 0 0.75rem; }
  h1 { font-size: clamp(1.25rem, 4vw, 1.6rem); }
  h2 { font-size: clamp(1.1rem, 3.5vw, 1.4rem); }
  .btn { padding: 0.55rem 1rem; font-size: 0.75rem; }
  .hero-badge { font-size: 0.58rem; padding: 0.25rem 0.6rem; }
  .stat-number { font-size: 1.5rem; }
  .cta-banner { padding: 1.25rem 0.75rem; }
  .trust-item { font-size: 0.75rem; }
  .footer-bottom { font-size: 0.7rem; }
  .page-header { padding: 4.25rem 0 0.75rem; }
  .page-header h1 { font-size: 1.2rem; }
}
