:root {
  --primary: #1e3a5f;
  --primary-dark: #152a45;
  --accent: #f57c00;
  --accent-hover: #ef6c00;
  --text: #2c3e50;
  --text-light: #546e7a;
  --bg: #f8f9fa;
  --white: #ffffff;
  --border: #e0e4e8;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* HEADER */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

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

.brand {
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav a {
  padding: 0.5rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
  background: rgba(30, 58, 95, 0.05);
}

.call {
  background: var(--accent);
  color: var(--white);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.call:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* HERO */
.hero {
  background-size: cover;
  background-position: center;
  color: var(--white);
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero .overlay {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.85), rgba(21, 42, 69, 0.75));
  width: 100%;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.hero-inner {
  text-align: center;
  width: 100%;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.lead {
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  margin: 0 auto 2rem;
  max-width: 600px;
  line-height: 1.5;
  opacity: 0.95;
  font-weight: 400;
}

.cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

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

.btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn.ghost {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
}

.btn.ghost:hover {
  background: transparent;
  color: var(--white);
}

/* SECTIONS */
.section {
  padding: 4rem 1rem;
}

.section h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.section > p {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* GALLERY */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.grid figure {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.grid figure:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.grid a {
  display: block;
  position: relative;
  overflow: hidden;
}

.grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.grid figure:hover img {
  transform: scale(1.05);
}

.grid figcaption {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* SERVICE CARDS */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.cards article {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  text-align: center;
}

.cards article:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.cards article h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 0.75rem 0 0.75rem;
  font-weight: 700;
}

.cards article p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.service-icon {
  font-size: 3rem;
  display: block;
  margin: 0 auto;
  filter: grayscale(0.2);
}

/* CONTACT FORM */
.contact-form {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  max-width: 520px;
  margin: 2rem auto 0;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  margin-top: 0.4rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.thanks {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #d4edda;
  color: #155724;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* IMAGE MODAL */
.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

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

.img-modal img {
  max-width: 95%;
  max-height: 95%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.img-modal .img-modal-inner {
  position: relative;
}

.img-modal button {
  position: absolute;
  top: -50px;
  right: 0;
  background: var(--white);
  border: 0;
  color: var(--text);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.img-modal button:hover {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.1);
}

/* FOOTER */
footer.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 2rem;
  text-align: center;
  border-top: 4px solid var(--accent);
}

.footer-logo {
  height: 60px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

footer.site-footer p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--accent);
  color: var(--white);
  padding: 1rem;
  z-index: 10001;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* RESPONSIVE - MOBILE FIRST */

/* Small phones */
@media (max-width: 480px) {
  .hero {
    min-height: 420px;
  }
  
  .hero .overlay {
    padding: 2.5rem 0;
  }
  
  .hero-title {
    font-size: 1.85rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .cta {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .btn {
    width: 100%;
    padding: 1rem 2rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .brand {
    order: 1;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
  
  .nav {
    order: 2;
    width: 100%;
    justify-content: center;
    gap: 0.25rem;
  }
  
  .nav a {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }
  
  .call {
    order: 3;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Tablets and up */
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero {
    min-height: 550px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .grid img {
    height: 260px;
  }
  
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero {
    min-height: 650px;
  }
  
  .hero .overlay {
    padding: 4rem 0;
  }
  
  .section {
    padding: 5rem 1rem;
  }
  
  .container {
    padding: 0 2rem;
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  .hero {
    min-height: 700px;
  }
}

/* Ensure images keep aspect ratio */
img {
  max-width: 100%;
  height: auto;
}

/* Performance optimization */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}