:root {
  --teal: #1db5b5;
  --teal-dark: #22d4d4;
  --teal-light: rgba(29, 181, 181, 0.12);
  --orange: #f07830;
  --orange-dark: #ff9040;
  --orange-light: rgba(240, 120, 48, 0.12);
  --bg: #121212;
  --bg-section: #181818;
  --surface: #1e1e1e;
  --surface-hover: #252525;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--orange);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section-label {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.section-label::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin-top: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.section-title span {
  color: var(--teal);
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: transparent;
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--orange);
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
}

.logo-link:hover {
  color: var(--text);
}

.logo-link img {
  height: 56px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

.logo-text-footer .logo-name {
  font-size: 1rem;
}

.logo-text-footer .logo-tagline {
  font-size: 0.65rem;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--orange);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header-cta {
  flex-shrink: 0;
}

/* Hero */
.hero {
  background: var(--bg);
  padding: 6rem 0 7rem;
  position: relative;
  overflow: hidden;
}

.hero-has-bg {
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75)),
    url("../assets/images/hero-bg.jpeg") center/cover no-repeat;
  background-attachment: fixed;
}

.hero-has-bg::before {
  display: none;
}

.hero-grid {
  display: block;
  position: relative;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  grid-template-rows: auto auto;
  column-gap: 3.5rem;
  row-gap: 1.75rem;
  align-items: start;
  max-width: 1080px;
}

.hero-headline {
  grid-column: 1;
  grid-row: 1;
}

.hero-brand-badge {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  border-bottom: 3px solid var(--orange);
}

.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
}

.hero-title-accent {
  color: var(--teal);
  margin-bottom: 0 !important;
}

.hero-lead {
  grid-column: 1;
  grid-row: 2;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0;
  max-width: 640px;
}

/* Pillars */
.pillars {
  padding: 4rem 0;
  background: var(--bg-section);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border-bottom: 4px solid var(--orange);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pillar h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.pillar p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.pillars-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Services */
.services {
  padding: 4rem 0;
  background: var(--bg);
}

.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.service-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.service-tab {
  padding: 0.6rem 1.25rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--text-muted);
  cursor: default;
}

.service-tab.active {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}

.service-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.service-card h4 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.92rem;
}

.service-card-bg {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  border-left: none;
  overflow: hidden;
  padding-top: 6rem;
}

.service-card-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 45%, rgba(0, 0, 0, 0.35));
  border-radius: inherit;
}

.service-card-bg h4,
.service-card-bg p {
  position: relative;
  z-index: 1;
}

.service-card-bg h4 {
  color: var(--white);
}

.service-card-bg p {
  color: rgba(255, 255, 255, 0.88);
}

a.service-card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

a.service-card-link:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

a.service-card-link:hover h4 {
  color: var(--orange);
}

/* Featured service cards with image on top */
.service-card-featured {
  padding: 0;
  overflow: hidden;
  border-left: none;
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.service-card-featured:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.service-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-card-featured:hover .service-card-image img {
  transform: scale(1.06);
}

.service-card-body {
  padding: 1.5rem 1.35rem 1.65rem;
  border-top: 3px solid var(--orange);
  flex: 1;
}

.service-card-body h4 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--text);
}

.service-card-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Section background images (Why Us, About) */
.section-with-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.section-with-bg .container {
  position: relative;
  z-index: 1;
}

.section-with-bg .why-item {
  background: rgba(30, 30, 30, 0.85);
}

.section-with-bg .trait {
  background: transparent;
}

/* Why choose us */
.why-us {
  padding: 4rem 0;
  background: var(--bg-section);
}

.why-us-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.why-us-header p {
  color: var(--text-muted);
  margin: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
}

.why-item .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.why-item h4 {
  margin: 0;
  font-size: 1rem;
}

.why-cta {
  text-align: center;
}

/* About */
.about {
  padding: 3rem 0 3.5rem;
}

.about .section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.traits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.25rem;
  margin-bottom: 1.75rem;
}

.trait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0;
  text-align: center;
}

.trait img,
.trait-icon svg {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  opacity: 0.92;
}

.trait-icon {
  color: var(--text);
  line-height: 0;
}

.trait h4 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.about-blurb {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.9;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(180deg, #1a1a1a 0%, var(--bg) 100%);
  padding: 3rem 0;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%231db5b5' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0;
  color: var(--text);
}

.page-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* Projects */
.projects-section {
  padding: 3rem 0 4rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card .placeholder-img {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--surface-hover), var(--bg-section));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 1rem;
  text-align: center;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.project-card p {
  padding: 1rem 1.25rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Quote form */
.quote-section {
  padding: 3rem 0 4rem;
}

.quote-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29, 181, 181, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.visible {
  display: block;
}

.form-success h2 {
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: #0a0a0a;
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer .section-label {
  color: var(--orange);
}

.site-footer .section-label::after {
  background: var(--teal);
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--orange);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 0.75rem;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-list .arrow {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.2s;
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--orange);
}

/* Hero tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero-tags span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  color: var(--teal);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero-sub {
  margin-top: 0.75rem !important;
}

.hero-btn {
  margin-top: 1.5rem;
}

/* About */
.about-text {
  max-width: 780px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.software-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
}

.software-label {
  font-weight: 700;
  color: var(--teal);
}

.software-bar span:not(.software-label) {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  background: var(--bg-section);
  border-radius: 999px;
}

/* Compact services grid */
.services-grid-compact {
  grid-template-columns: repeat(2, 1fr);
}

.service-card a {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Industries */
.industries {
  padding: 4rem 0;
  background: var(--teal-light);
}

/* FAQ */
.faq {
  padding: 4rem 0;
  background: var(--bg-section);
}

.faq-list {
  max-width: 760px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
  padding: 1.15rem 1.25rem;
}

.faq-item h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Service detail page */
.service-details {
  padding: 3rem 0 4rem;
}

.service-detail {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
  overflow: hidden;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 0;
  align-items: stretch;
}

.service-detail:nth-child(even) .service-detail-grid {
  grid-template-columns: 1fr minmax(240px, 320px);
}

.service-detail:nth-child(even) .service-detail-image {
  order: 2;
}

.service-detail:nth-child(even) .service-detail-content {
  order: 1;
}

.service-detail-image {
  position: relative;
  min-height: 220px;
  background: var(--bg);
}

.service-detail-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.15), transparent);
  pointer-events: none;
}

.service-detail:nth-child(even) .service-detail-image::after {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.15), transparent);
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.service-detail-content {
  padding: 2rem 2rem 1.5rem;
}

.service-detail h2 {
  color: var(--text);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.service-detail h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 1rem;
  font-weight: 600;
}

.service-detail p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.service-detail ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.service-detail li {
  margin-bottom: 0.35rem;
}

.service-note {
  font-style: italic;
  font-size: 0.92rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Contact page */
.contact-section {
  padding: 3rem 0 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--orange);
  box-shadow: var(--shadow);
}

.contact-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.contact-details p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.contact-location {
  font-weight: 600;
  color: var(--teal) !important;
  margin-bottom: 1.5rem !important;
}

.contact-list-page {
  margin: 0 0 1.75rem;
}

.contact-list-page a {
  color: var(--text);
  font-size: 1.05rem;
}

.contact-list-page .arrow {
  color: var(--orange);
}

.footer-brand .logo-link {
  align-items: flex-start;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    padding: 4rem 0 5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 1.5rem;
    max-width: none;
  }

  .hero-headline,
  .hero-brand-badge,
  .hero-lead {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-brand-badge {
    max-width: 280px;
    align-self: start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-intro {
    grid-template-columns: 1fr;
  }

  .traits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid-compact {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-grid,
  .service-detail:nth-child(even) .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) .service-detail-image,
  .service-detail:nth-child(even) .service-detail-content {
    order: unset;
  }

  .service-detail-image img {
    min-height: 200px;
    max-height: 240px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid var(--border);
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 0.5rem;
  }

  .header-cta {
    display: none;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .logo-link {
    flex: 1;
    min-width: 0;
    gap: 0.65rem;
  }

  .logo-text {
    display: flex;
    min-width: 0;
  }

  .logo-name {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    white-space: normal;
    line-height: 1.2;
  }

  .logo-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-align: left;
    white-space: normal;
    line-height: 1.25;
  }

  .logo-link img {
    height: 44px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}
