:root {
  --bg: #ffffff;
  --muted: #6b7280;
  --text: #111827;
  --primary: #0b4a6f; /* deeper teal/blue */
  --accent: #10708f;
  --max-width: 1200px;
  --container-pad: 1rem;
}

* { box-sizing: border-box; }
html,body { height:100%; }
body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{ margin:0 0 0.5rem 0; font-weight:600; color:var(--text); }
p{ margin:0 0 1rem 0; color:var(--muted); }
a{ color:inherit; text-decoration:none; }

/* Layout container */
.container{ 
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--container-pad);
  position: relative;
  z-index: 1;
}

.container > * {
  position: relative;
  z-index: 2;
}

/* Navigation */
nav{ border-bottom:1px solid #eef2f6; background:linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.95)); position:sticky; top:0; z-index:40; }
.nav-container{ display:flex; align-items:center; justify-content:space-between; max-width:var(--max-width); margin:0 auto; padding:0.75rem var(--container-pad); }
.logo{ height:56px; width:auto; display:block; opacity:1; }
.header-logo-small{ height:44px; opacity:1; }
/* Prevent header logo from stretching the header - keep a firm max-height */
.logo, .header-logo-small { max-height:48px; }
.nav-menu{ list-style:none; margin:0; padding:0; display:flex; gap:1.25rem; align-items:center; }
.nav-menu a{ font-weight:600; color:var(--muted); padding:0.5rem; border-radius:6px; }
.nav-menu a:hover{ color:var(--primary); background:rgba(16,112,143,0.04); }
.nav-menu a.active{ color:var(--primary); box-shadow:inset 0 -3px 0 var(--primary); }

/* Mobile menu toggle */
.nav-toggle{ display:none; background:none; border:1px solid transparent; padding:0.5rem; border-radius:6px; }
.nav-toggle svg{ display:block; }

/* Background patterns */
.bg-pattern {
  position: relative;
  overflow: hidden;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/backgrounds/peaks-pattern.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}

.bg-mountain {
  position: relative;
  overflow: hidden;
}

.bg-mountain::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/backgrounds/mountain-bg.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
}

/* Hero */
.hero{ 
  text-align: center;
  padding: 4.5rem 1rem;
  position: relative;
  color: var(--text);
}

/* Hero specific background adjustments */
.hero.bg-mountain-section::before {
  opacity: 0.15; /* Slightly reduced for better contrast */
}

.hero .container{ 
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

/* About and Mission sections */
.about-intro-wrapper {
  position: relative;
  padding: 4rem 0;
  background-color: rgba(255, 255, 255, 0.97);
}

.about-intro-wrapper::before {
  opacity: 0.12;
}

.about-intro {
  position: relative;
  z-index: 1;
  padding: 0;
}

.about-intro h1 {
  font-size: 2.25rem;
  margin-bottom: 1.75rem;
  color: var(--text);
  font-weight: 600;
}

.about-intro.container {
  max-width: 900px;
  margin: 0 auto;
}

/* Mission section */
.mission-section {
  background: var(--primary);
  color: white;
  padding: 4rem 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.mission-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(11,74,111,0.95) 0%, rgba(16,112,143,0.95) 100%);
  z-index: -1;
}

.mission-section .container {
  max-width: 900px;
}

.mission-content {
  position: relative;
}

.mission-section h2 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: 1.75rem;
  font-weight: 600;
}

.mission-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.mission-section p b {
  display: block;
  font-size: 1.75rem;
  line-height: 1.4;
  margin: 2rem 0;
  color: white;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mission-intro {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: white;
}

.mission-section ul {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 1.75rem 0;
  padding-left: 1.75rem;
}

.mission-section li {
  margin-bottom: 0.75rem;
  position: relative;
}

.mission-section li::before {
  content: "•";
  color: rgba(255, 255, 255, 0.5);
  position: absolute;
  left: -1.25rem;
}
.hero h1{ font-size:2rem; color:var(--text); margin-bottom:0.5rem; }
.hero .subtitle{ font-size:1.125rem; color:var(--muted); margin-bottom:1.25rem; }
.cta{ display:inline-block; background:var(--primary); color:#fff; padding:0.7rem 1.25rem; border-radius:8px; font-weight:700; box-shadow:0 6px 18px rgba(11,74,111,0.12); }
.cta.secondary{ background:transparent; color:var(--primary); border:1px solid rgba(11,74,111,0.08); box-shadow:none; }

/* Hero logo (larger on homepage) */
.hero-flex {
  display: flex;
  align-items: center;
  gap: 4rem;
  text-align: left;
  margin-bottom: 2rem;
}

.hero-logo-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column; /* place brand below the logo */
  align-items: center; /* center horizontally under logo */
  gap: 0.5rem;
}

.hero-content-col {
  flex: 1 1 auto;
}

.hero-logo{ 
  display: block;
  width: 320px; /* slightly smaller to fit the hero area */
  max-width: 100%;
  height: auto;
  background: transparent;
  max-height: 280px;
}

/* Brand name under hero logo */
.hero-brand {
  margin-top: 0.85rem;
  text-align: center;
}

/* Brand typography: Optimus on the first line (bold, Arial 22px), subtitle below */
.brand-name { display: inline-block; text-align: center; }
.brand-main {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: #000;
  line-height: 1;
}
.brand-sub {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 44px; /* match main line size */
  font-weight: 400; /* regular weight; only 'Optimus' is bold */
  color: #000;
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .brand-main { font-size: 36px; }
  .brand-sub { font-size: 36px; }
}

@media (max-width: 1024px) {
  .hero-flex {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-logo {
    width: 260px; /* reduced on smaller screens */
    margin: 0 auto;
  }

  /* stack logo and brand on smaller screens */
  .hero-logo-col { flex-direction: column; align-items: center; gap: 0.5rem; }
}

/* Sections */
.services-section, .case-studies-content, .team-content, .contact-content{ background:transparent; }
.narrow{ max-width:760px; margin:0 auto; }
.service-block{ margin-bottom:1.5rem; }

/* Services grid */
.services-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:1.25rem; margin-top:1rem; }
.service-card{ background:#fff; padding:1.1rem; border-radius:10px; box-shadow:0 6px 18px rgba(16,112,143,0.06); display:flex; gap:0.9rem; align-items:flex-start; }
.service-icon{ width:56px; height:56px; flex:0 0 56px; border-radius:8px; }
.service-card h3{ margin:0 0 0.25rem 0; font-size:1.05rem; }
.service-card p{ margin:0; color:var(--muted); }

/* Case studies listing */
.case-studies-wrapper {
  position: relative;
  padding: 4rem 0;
  background-color: rgba(255, 255, 255, 0.97);
}

.case-studies-wrapper::before {
  opacity: 0.12;
}

.case-studies-wrapper h1 {
  font-size: 2.25rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.case-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

/* Case Study Listing - Report Card Style */
.case-item {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(11,74,111,0.08), 0 0 0 1px rgba(11,74,111,0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.case-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, #13a2bf 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-item:hover::before {
  opacity: 1;
}

.case-item:hover {
  box-shadow: 0 12px 32px rgba(11,74,111,0.12), 0 0 0 1px rgba(11,74,111,0.08);
  transform: translateY(-4px);
}

.case-item h3 {
  font-size: 1.35rem;
  margin: 0 0 1.5rem 0;
  padding: 2rem 2rem 0 2rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

/* Meta grid - vertical stack of key stats */
.case-meta-grid {
  padding: 0 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.case-meta-grid .meta-tag {
  flex: 1 1 calc(50% - 0.375rem);
  min-width: 140px;
  margin-bottom: 0;
  padding: 0.85rem;
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(16,112,143,0.1);
  transition: all 0.2s ease;
}

.case-item:hover .meta-tag {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(11,74,111,0.08);
}

.case-meta-grid .property-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(11,74,111,0.6);
  margin-bottom: 0.4rem;
  display: block;
}

.case-meta-grid .property-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

/* Summary section for longer content fields */
.case-item .case-summary {
  padding: 0 2rem 2rem 2rem;
  margin: 0;
}

.case-property {
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border-left: 3px solid rgba(16,112,143,0.15);
  transition: border-color 0.2s ease;
}

.case-item:hover .case-property {
  border-left-color: var(--primary);
}

.property-label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.property-value {
  display: block;
  color: var(--text);
  line-height: 1.5;
  font-size: 0.95rem;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
}

.case-header {
  margin-bottom: 2rem;
}

.case-metadata {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(16,112,143,0.04);
  border-radius: 8px;
}

.date-range {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.case-properties {
  display: grid;
  gap: 0.5rem;
}

.case-summary {
  margin-top: 1.5rem;
}

.case-property {
  margin-bottom: 1rem;
}

.property-label {
  display: inline-block;
  font-weight: 600;
  color: var(--text);
  min-width: 100px;
  margin-right: 1rem;
}

.property-value {
  color: var(--muted);
  line-height: 1.6;
}

/* Diagram in detailed modal view */
.case-diagram-detail {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(16,112,143,0.1);
}

.case-diagram-detail h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.case-diagram-detail img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.case-card{ background:#fff; padding:1rem; border-radius:10px; box-shadow:0 8px 22px rgba(11,74,111,0.06); cursor:pointer; transition:transform .16s ease, box-shadow .16s ease; }
.case-card:hover{ transform:translateY(-6px); box-shadow:0 18px 50px rgba(11,74,111,0.09); }
.case-card h3{ margin:0 0 0.5rem 0; }

/* Modal for case study - Professional Template Style */
.case-modal{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(3,7,18,0.65); z-index:90; padding:1.5rem; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .3s ease, visibility .3s ease; backdrop-filter: blur(6px); }
.case-modal.open{ opacity:1; visibility:visible; pointer-events:auto; }
.case-modal .panel{ background:#fff; max-width:1100px; width:100%; max-height:92vh; overflow:auto; border-radius:16px; padding:0; position:relative; transform:translateY(16px) scale(.97); transition:transform .35s cubic-bezier(.2,.9,.2,1), box-shadow .35s ease; box-shadow:0 24px 80px rgba(3,7,18,0.25); }
.case-modal.open .panel{ transform:translateY(0) scale(1); }
.case-modal .close-btn{ position:absolute; right:2rem; top:2rem; background:rgba(255,255,255,0.95); border:0; font-size:1.4rem; cursor:pointer; width:42px; height:42px; border-radius:50%; box-shadow:0 4px 12px rgba(0,0,0,0.15); z-index:10; display:flex; align-items:center; justify-content:center; color:var(--text); transition:all 0.25s ease; font-weight:300; }
.case-modal .close-btn:hover{ background:var(--primary); color:white; transform:rotate(90deg) scale(1.05); box-shadow:0 6px 20px rgba(11,74,111,0.3); }

/* Report sheet styling inside modal - Simple Report Card Style */
.report-sheet {
  padding: 2.5rem;
  background: white;
}

.report-sheet .case-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(16,112,143,0.1);
}

.report-sheet h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
}

/* Meta grid - 2-column layout like summary cards */
.report-sheet .case-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 2rem 0;
}

.report-sheet .meta-tag {
  background: white;
  border: 1px solid rgba(16,112,143,0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease;
}

.report-sheet .meta-tag:hover {
  border-color: rgba(19,162,191,0.3);
}

.report-sheet .meta-tag .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(11,74,111,0.6);
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.report-sheet .meta-tag .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

/* Body content - keep simple */
.report-sheet p {
  margin: 1.25rem 0;
  line-height: 1.7;
  color: var(--text);
  font-size: 0.95rem;
}

.report-sheet h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin: 2.5rem 0 1rem 0;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(16,112,143,0.1);
  position: relative;
}

.report-sheet h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, #13a2bf 100%);
}

.report-sheet ul {
  margin: 1rem 0 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.report-sheet ul li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
}

.report-sheet ul li::before {
  content: '▸';
  position: absolute;
  left: 0.25rem;
  color: var(--primary);
  font-weight: bold;
}

.report-sheet ul li strong {
  color: var(--primary);
  font-weight: 600;
}

/* Design / Illustration section - click to expand */
.case-diagram-detail {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(16,112,143,0.1);
  position: relative;
}

.case-diagram-detail::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, #13a2bf 100%);
}

.diagram-toggle {
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid rgba(16,112,143,0.12);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.diagram-toggle:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(11,74,111,0.08);
  background: rgba(16,112,143,0.02);
}

.diagram-toggle svg {
  flex-shrink: 0;
}

/* Diagram lightbox - full page overlay */
.diagram-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.diagram-lightbox.open {
  opacity: 1;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 95vh;
  height: auto;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
  background: white;
  transform: scale(1.1);
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
  color: var(--text);
}

/* Blog */
.posts-list{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:1rem; margin-top:1rem; }
.post-card{ background:#fff; padding:1rem; border-radius:10px; box-shadow:0 8px 22px rgba(11,74,111,0.06); }

/* "What We Do" list view */
.what-we-do{ margin-top:1rem; display:flex; flex-direction:column; gap:0.9rem; }
.what-item{ display:flex; gap:1rem; align-items:flex-start; background:#fff; padding:1rem; border-radius:10px; box-shadow:0 8px 22px rgba(11,74,111,0.06); }
.what-item{ display:flex; gap:1rem; align-items:flex-start; background:#fff; padding:1rem; border-radius:10px; box-shadow:0 8px 22px rgba(11,74,111,0.06); }
.what-item .icon-wrap{ flex:0 0 84px; display:flex; align-items:center; justify-content:center; }
.what-item .icon-wrap img{ width:72px; height:72px; border-radius:8px; }
.what-item .what-body{ flex:1; }
.what-item h3{ margin:0 0 0.35rem 0; font-size:1.1rem; }
.what-item p{ margin:0; color:var(--muted); }
.what-item .meta{ margin-top:0.5rem; font-size:0.95rem; color:var(--muted); }
.what-item .read-more{ display:inline-block; margin-top:0.65rem; background:transparent; color:var(--primary); border:1px solid rgba(11,74,111,0.08); padding:0.45rem 0.8rem; border-radius:8px; font-weight:700; text-decoration:none; }
.what-item .read-more:hover{ background:var(--primary); color:#fff; }

/* Read-more as compact icon */
.read-more-icon{ display:inline-flex; width:36px; height:36px; align-items:center; justify-content:center; margin-left:0.5rem; border-radius:8px; border:1px solid rgba(11,74,111,0.08); color:var(--primary); text-decoration:none; }
.read-more-icon svg{ width:18px; height:18px; display:block; }
.read-more-icon:hover{ background:var(--primary); color:#fff; border-color:transparent; }

@media (max-width:700px){
  .what-item{ flex-direction:column; align-items:flex-start; }
  .what-item .icon-wrap{ flex:0 0 56px; }
  .what-item .icon-wrap img{ width:48px; height:48px; }
  .what-item .what-keywords{ flex-direction:row; gap:0.75rem; margin-top:0.5rem; }
  .what-item .what-keywords .kw{ font-size:0.95rem; }
}

/* Subtle animations and interactions */
.what-item, .service-card, .case-card{ transition:transform .22s ease, box-shadow .22s ease; will-change:transform; }
.what-item:hover, .service-card:hover{ transform:translateY(-6px); box-shadow:0 20px 48px rgba(11,74,111,0.09); }
.what-item:focus-within, .service-card:focus-within{ transform:translateY(-4px); box-shadow:0 12px 34px rgba(11,74,111,0.08); }
.what-item .icon-wrap img, .service-icon{ transition:transform .28s cubic-bezier(.2,.9,.2,1); transform-origin:center; }
.what-item:hover .icon-wrap img, .service-card:hover .service-icon{ transform:translateY(-4px) rotate(-3deg) scale(1.04); }

/* subtle color shift for SVG fills on hover */
.what-item:hover svg * , .service-card:hover svg * { transition:fill .22s ease, opacity .22s ease; }

/* Modal accessibility: reduce motion if user prefers */
@media (prefers-reduced-motion: reduce){
  .what-item, .service-card, .case-card, .case-modal .panel { transition: none !important; transform: none !important; }
}

/* Team grid */
.team-list{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:1.5rem; }
.team-member{ background:#fff; padding:1.25rem; border-radius:10px; box-shadow:0 6px 18px rgba(16,112,143,0.06); text-align:left; }
.team-member .headshot{ width:120px; height:120px; object-fit:cover; border-radius:50%; float:right; margin-left:1rem; }
.team-member h3{ margin-top:0; }

/* Contact form */
.contact-form{ max-width:620px; }
.contact-form label{ display:block; margin:0.6rem 0 0.4rem 0; font-weight:600; color:var(--text); }
.contact-form input, .contact-form textarea{ width:100%; padding:0.7rem 0.8rem; border:1px solid #e6e9ef; border-radius:8px; font-size:1rem; background:#fff; }
.contact-form input:focus, .contact-form textarea:focus{ outline:2px solid rgba(16,112,143,0.12); border-color:var(--accent); }
.contact-form button{ margin-top:0.6rem; background:var(--primary); color:#fff; padding:0.65rem 1rem; border-radius:8px; border:none; font-weight:700; }

/* Footer */
footer{ text-align:center; padding:1.5rem 1rem; color:var(--muted); font-size:0.95rem; border-top:1px solid #f1f5f9; }

/* Responsive */
@media (max-width:900px){
  .logo{ height:48px; }
  .nav-toggle{ display:inline-flex; align-items:center; }
  .nav-menu{ position:fixed; right:0; top:72px; background:linear-gradient(180deg,#fff,#fbfdff); height:calc(100% - 72px); width:280px; flex-direction:column; padding:1rem; gap:0.5rem; transform:translateX(110%); transition:transform .28s ease; box-shadow:-8px 24px 60px rgba(11,74,111,0.12); }
  .nav-menu.open{ transform:translateX(0%); }
  .nav-menu a{ padding:0.75rem 0.5rem; display:block; }
  
  /* Stack case meta grid on tablets */
  .case-meta-grid{ grid-template-columns: 1fr; }
  
  /* Modal adjustments */
  .case-modal .panel{ max-width: 95vw; padding: 1rem; }
  .report-sheet{ padding: 1.5rem; }
}

@media (max-width:640px){
  /* Smaller containers and spacing */
  .container{ padding: 1.5rem 1rem; }
  .hero{ padding: 3rem 1rem; }
  
  /* Service grid single column */
  .services-grid{ grid-template-columns: 1fr; }
  
  /* Case items more compact */
  .case-item{ padding: 1rem; }
  .case-header h2{ font-size: 1.25rem; }
  
  /* Team cards stack */
  .team-grid{ grid-template-columns: 1fr; }
  
  /* Lightbox adjustments */
  .lightbox-close{ top: 1rem; right: 1rem; width: 40px; height: 40px; }
}

@media (max-width:480px){
  .hero h1{ font-size: 1.5rem; }
  
  /* Tighter spacing */
  .report-sheet{ padding: 1rem; }
  .report-sheet h2{ font-size: 1.15rem; }
  
  /* Touch-friendly buttons */
  .diagram-toggle{ padding: 0.875rem 1rem; font-size: 0.95rem; }
  
  /* Service items more compact */
  .what-item{ padding: 1rem; }
}
