:root {
  --teal: #5499ab;
  --teal-dark: #3d7a8a;
  --yellow: #f5c518;
  --text: #1a1a1a;
  --text-muted: #555;
  --bg: #ffffff;
  --bg-alt: #f7f9fa;
  --border: #e2e8ec;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

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

.logo img {
  height: 56px;
  width: auto;
}

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

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--teal);
}

.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(--text);
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  background: var(--teal);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 800px;
  margin-inline: auto;
}

.hero a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero a:hover {
  opacity: 0.85;
}

.hero-sub {
  margin-top: 1.25rem;
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  opacity: 0.95;
}

.hero-email {
  margin-top: 1.25rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.hero-email a {
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.hero-email a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.28);
}

.hero-cta {
  margin-top: 1.5rem;
}

.btn-hero {
  display: inline-block;
  background: var(--yellow);
  color: var(--text);
  padding: 0.85rem 2rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-hero:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Expertise cards */
.expertise {
  padding: 4rem 0;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.expertise-card {
  text-align: center;
}

.expertise-card img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.expertise-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--teal-dark);
}

.expertise-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.btn-link {
  display: inline-block;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-link:hover {
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}

/* Section titles */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text);
}

/* Contact */
.contact {
  background: var(--bg-alt);
  padding: 4rem 0;
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  margin-bottom: 1rem;
}

.contact-email-lead {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.contact-email-lead a {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-contact {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.contact-form {
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(84, 153, 171, 0.15);
}

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

.btn-submit {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  justify-self: start;
}

.btn-submit:hover {
  background: var(--teal-dark);
}

.form-success {
  display: none;
  text-align: center;
  color: var(--teal-dark);
  font-weight: 500;
  padding: 1rem;
  background: rgba(84, 153, 171, 0.1);
  border-radius: var(--radius);
}

.form-success.visible {
  display: block;
}

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

.form-error {
  display: none;
  text-align: center;
  color: #b42318;
  font-weight: 500;
  padding: 1rem;
  background: rgba(180, 35, 24, 0.08);
  border-radius: var(--radius);
  margin-top: 1rem;
}

.form-error a {
  color: var(--teal-dark);
  text-decoration: underline;
}

.form-error.visible {
  display: block;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Services */
.services {
  padding: 4rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.service-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.service-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--teal-dark);
}

.service-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Clients */
.clients {
  background: var(--bg-alt);
  padding: 4rem 0;
}

.clients-carousel {
  position: relative;
  overflow: hidden;
}

.clients-track {
  display: flex;
  gap: 2rem;
  animation: scroll-clients 40s linear infinite;
  width: max-content;
}

.clients-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-clients {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

.client-logo img {
  max-height: 70px;
  max-width: 140px;
  object-fit: contain;
}

/* About */
.about {
  padding: 4rem 0;
  text-align: center;
}

.about p {
  max-width: 640px;
  margin-inline: auto;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Media */
.media {
  background: var(--bg-alt);
  padding: 4rem 0;
}

.media-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  align-items: center;
}

.media-item {
  text-align: center;
}

.media-item img {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-inline: auto;
}

.media-item span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: #ccc;
  padding: 2.5rem 0;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-social a {
  color: #fff;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--yellow);
}

.site-footer p {
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .expertise-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

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

/* Subpages */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: var(--max-width);
  margin-inline: auto;
  width: min(100% - 2rem, var(--max-width));
}

.breadcrumbs a {
  color: var(--teal);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.page-hero {
  background: var(--teal);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.page-hero--compact {
  padding: 2rem 0;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.page-hero .lead {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.05rem;
  opacity: 0.95;
}

.page-content {
  padding: 3rem 0 4rem;
}

.category-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

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

.project-card a {
  display: block;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.project-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

.project-card h3 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1.1rem;
  color: var(--teal-dark);
}

.project-card p {
  padding: 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-card .btn-link {
  display: inline-block;
  margin: 0.75rem 1rem 1.25rem;
}

.project-card--text a {
  padding: 1.25rem 1.25rem 1rem;
}

.project-card--text h3 {
  padding: 0;
}

.project-card--text p {
  padding: 0.5rem 0 0;
}

.services-list article {
  margin-bottom: 2rem;
}

.faq-section {
  margin-top: 3rem;
}

.faq-section > h2 {
  margin-bottom: 1.25rem;
}

.faq-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.filter-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-nav a {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.filter-nav a:hover {
  background: var(--teal);
  color: #fff;
}

.page-cta {
  text-align: center;
  margin-top: 3rem;
}

.page-cta p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.related-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-links h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.related-links ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.related-links a {
  color: var(--teal);
  font-weight: 500;
}

.project-detail-body {
  padding-bottom: 4rem;
}

.project-gallery {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.project-gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-text {
  max-width: 760px;
  margin-bottom: 2rem;
}

.project-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.project-text a {
  color: var(--teal);
  text-decoration: underline;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.related-projects {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-projects h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.35rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.office-info address {
  font-style: normal;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.social-list li {
  margin-bottom: 0.5rem;
}

.social-list a {
  color: var(--teal);
  font-weight: 500;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  color: var(--teal-dark);
}

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

.prose-list {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.prose-list li {
  margin-bottom: 0.5rem;
}

.prose-list a {
  color: var(--teal);
}

.services-grid--page {
  margin-bottom: 2rem;
}

.home-links {
  padding: 2rem 0 4rem;
  background: var(--bg-alt);
}

.home-links .container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.home-links a {
  padding: 0.65rem 1.5rem;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  color: var(--teal);
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.home-links a:hover {
  background: var(--teal);
  color: #fff;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #ccc;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--yellow);
}

.clients-static {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.clients-static .client-logo {
  width: 100%;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    padding-inline: 0.25rem;
  }

  .hero-email {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    padding-inline: 0.25rem;
  }

  .hero-email a {
    display: block;
    max-width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 0.85rem;
    word-break: break-word;
  }

  .hero-cta {
    margin-top: 1.25rem;
    padding-inline: 0.25rem;
  }

  .btn-hero {
    display: block;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    text-align: center;
  }

  .expertise {
    padding: 2.5rem 0;
  }

  .contact {
    padding: 2.5rem 0;
  }

  .contact h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    padding-inline: 0.25rem;
  }

  .contact-email-lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-inline: 0.25rem;
  }

  .contact-email-lead a {
    display: inline-block;
    font-size: clamp(1.1rem, 4.5vw, 1.25rem);
    margin-top: 0.35rem;
    word-break: break-word;
  }

  .contact-form {
    width: 100%;
    max-width: none;
  }

  .btn-submit {
    width: 100%;
    min-height: 48px;
    justify-self: stretch;
    text-align: center;
  }

  .form-success,
  .form-error {
    max-width: none;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .home-links {
    padding: 1.5rem 0 3rem;
  }

  .home-links .container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .home-links a {
    display: block;
    text-align: center;
    min-height: 48px;
    line-height: 1.2;
    padding: 0.85rem 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .logo img {
    height: 44px;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .service-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
