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

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --radius: 8px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--gray-900);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links .btn {
  color: var(--white);
}

.nav-links .btn:hover {
  color: var(--white);
}

.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(--gray-800);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--gray-900);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(30, 58, 138, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 20px 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--gray-400);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

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

.hero .contact-form {
  background: var(--gray-800);
  border-radius: var(--radius);
  padding: 36px;
}

/* ===== Section Styles ===== */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ===== Services ===== */
.services {
  padding: 100px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  color: var(--blue);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== About ===== */
.about {
  padding: 100px 0;
  background: var(--gray-50);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.7;
}

.about-list {
  margin-bottom: 24px;
}

.about-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}

.about-list li:last-child {
  border-bottom: none;
}

.about-list strong {
  color: var(--gray-900);
  font-size: 1rem;
}

.about-list span {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.about-local {
  padding: 16px 20px;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-left: 4px solid var(--gray-400);
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.about-affiliate {
  padding: 16px 20px;
  background: var(--blue-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--blue);
  font-size: 0.95rem;
}

.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  border-radius: var(--radius);
}

/* ===== Gallery ===== */
.gallery {
  padding: 100px 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ===== Project Cards (homepage) ===== */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition);
  display: block;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-card-body {
  padding: 24px;
}

.project-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.project-card-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.project-card-link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
}

.project-card:hover .project-card-link {
  color: var(--blue-dark);
}

/* ===== Project Hero (projects page) ===== */
.project-hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1e3a8a 100%);
  padding: 140px 0 60px;
  text-align: center;
}

.project-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.project-hero p {
  color: var(--gray-400);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Project Detail (projects page) ===== */
.project-detail {
  padding: 80px 0;
}

.project-detail h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.project-description {
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 32px;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  background: var(--gray-900);
}

.contact .section-title {
  color: var(--white);
}

.contact-centered {
  text-align: center;
}

.contact-subtitle {
  color: var(--gray-400);
  margin-bottom: 40px;
  font-size: 1.15rem;
  line-height: 1.7;
}

.contact-centered .contact-methods {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gray-400);
  transition: color var(--transition);
}

a.contact-method:hover {
  color: var(--white);
}

.contact-method strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
}

.contact-method span {
  font-size: 0.9rem;
}

.contact-form {
  background: var(--gray-800);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.contact-form p {
  color: var(--gray-400);
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-700);
  border-radius: var(--radius);
  background: var(--gray-900);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-600);
}

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

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

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-800);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-700);
}

.footer-brand p {
  color: var(--gray-400);
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 320px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-socials a {
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer-socials a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom p {
  color: var(--gray-600);
  font-size: 0.85rem;
  text-align: center;
}

/* ===== Service Areas ===== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.area-card {
  display: block;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all var(--transition);
}

.area-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.area-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.area-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.5;
}

.service-area-page {
  padding: 80px 0;
}

.service-area-page .area-intro {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.8;
  max-width: 750px;
  margin-bottom: 48px;
}

.service-area-page .area-services-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.area-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.area-service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-800);
}

.area-service-item svg {
  color: var(--blue);
  flex-shrink: 0;
}

.area-cta {
  text-align: center;
  padding: 48px 0;
  margin-bottom: 48px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.area-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.area-cta p {
  color: var(--gray-600);
  margin-bottom: 24px;
}

.nearby-areas h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.nearby-areas-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nearby-areas-list a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
  transition: all var(--transition);
}

.nearby-areas-list a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links .btn {
    width: 100%;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

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

  .hero-content {
    padding: 100px 20px 60px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    text-align: center;
  }

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

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

  .about-image {
    order: -1;
  }

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

  .project-cards {
    grid-template-columns: 1fr;
  }

  .contact-centered .contact-methods {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

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

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

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

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-hero {
    padding: 120px 0 40px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .service-card {
    padding: 24px;
  }

  .hero .contact-form {
    padding: 28px 20px;
  }
}
