/* Base */
:root{
  --steel: #66768D;
  --glass: #CEDFE4;
  --slate: #67828B;
  --stone: #494949;
  
  /* Light Theme (Default) */
  --bg: #ffffff;
  --fg: #494949;
  --muted: #f4f6f8;
  --line: #e0e6ed;
  --accent: #CEDFE4;
  --brand: #66768D;
  --header-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 20px 40px rgba(0,0,0,0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --input-bg: #ffffff;
}

/* Dark Theme */
body.dark-theme {
  --bg: #212734;
  --fg: #e8eaed;
  --muted: #191E25;
  --line: #4E545E;
  --accent: #2d3440;
  --brand: #ffffff;
  --header-bg: rgba(33, 39, 52, 0.95);
  --shadow: 0 18px 60px rgba(0,0,0,.5);
  --panel-bg: #1a1f26;
  --input-bg: var(--panel-bg);
  --link-accent: #b8d4e0;
  --gallery-accent-dark: var(--link-accent);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--fg);
  line-height:1.6;
  letter-spacing:.01em;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

/* Layout */
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 24px}
.section{padding:80px 0;border-top:none}
.section.flush{padding:0;border-top:none}
.section.muted{background:var(--muted)}
/* Less top space on services listing and service detail pages */
body.page-services main .section:first-child,
body.page-service-detail main .section:first-child{padding-top:32px}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:40px}
.grid{display:grid;gap:24px}
.projects-grid{grid-template-columns:repeat(3,1fr)}
.blog-grid{grid-template-columns:repeat(3,1fr)}
.services-grid{grid-template-columns:repeat(3,1fr)}

/* Splash */
.splash{position:fixed;inset:0;background:var(--bg);display:flex;align-items:center;justify-content:center;z-index:1000;transition:opacity .4s ease;cursor:pointer}
.splash.hidden{opacity:0;pointer-events:none}
.splash-inner{display:flex;flex-direction:column;align-items:center;gap:16px}
.logo-spin{width:120px;height:auto;animation:spin 3s ease-out 1}
body.dark-theme .logo-spin { filter: invert(1); }
.brand{font-weight:800;letter-spacing:.08em}
@keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}

/* Header - Glassmorphic pill (Mac-style) */
.site-header{position:sticky;top:0;z-index:500;background:transparent;width:100%;padding:12px 24px;border-bottom:none}
.site-header .header-row{display:flex;align-items:center;justify-content:space-between;height:64px;gap:24px;width:100%;max-width:1200px;margin:0 auto;padding:0 28px;background:rgba(30,35,45,0.75);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-radius:999px;border:1px solid rgba(255,255,255,0.1);box-shadow:0 4px 24px rgba(0,0,0,0.12)}
body.dark-theme .site-header .header-row{background:rgba(15,18,25,0.34);border:1px solid rgba(255,255,255,0.06);box-shadow:0 4px 24px rgba(0,0,0,0.4)}
.header-row{display:flex;align-items:center;justify-content:space-between;height:80px;gap:24px;width:100%}
.logo-wordmark{font-weight:700;letter-spacing:-0.02em;font-size:20px;color:#fff}
.site-header .site-nav a{color:rgba(255,255,255,0.9);opacity:0.85;padding:8px 14px;border-radius:999px;transition:opacity .2s, background .2s, box-shadow .2s}
.site-header .site-nav a:hover{opacity:1;color:#fff;background:rgba(255,255,255,0.06)}
.site-header .site-nav a.active{opacity:1;color:#fff;font-weight:600;background:rgba(255,255,255,0.18);backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);border:1px solid rgba(255,255,255,0.2);box-shadow:0 2px 12px rgba(0,0,0,0.12)}
.site-header .site-nav a.admin{border:1px solid rgba(255,255,255,0.25);color:#fff;padding:8px 16px;border-radius:999px}
.site-nav ul{display:flex;gap:24px;list-style:none;margin:0;padding:0;align-items:center}
.site-nav li{position:relative}
.site-nav li.nav-cta{margin-left:auto}
.site-nav a{font-weight:500;font-size:15px;color:var(--fg);opacity:0.8;transition:opacity .2s}
.site-nav a:hover{opacity:1}
.site-nav a.active{opacity:1;color:var(--brand)}
.site-nav a.admin{border:1px solid var(--line);padding:8px 16px;border-radius:999px}
.site-header .theme-toggle{color:rgba(255,255,255,0.9)}
.site-header .theme-toggle:hover{color:#fff}
.site-header .mobile-menu-toggle span{background:#fff}

/* Dropdown */
.site-nav .dropdown{position:absolute;top:100%;left:0;min-width:240px;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px;display:none;box-shadow:var(--shadow);z-index:999}
.site-nav li:hover .dropdown{display:block;animation:fadeIn .2s ease}
.dropdown-group{display:grid;gap:4px}
.dropdown a{display:block;padding:8px 12px;border-radius:8px}
/* Ensure dropdown links stay readable — override nav link styles (which use white) */
.site-header .site-nav .dropdown a{color:var(--fg);opacity:0.9}
.site-header .site-nav .dropdown a:hover{opacity:1;background:var(--muted);color:var(--fg)}

/* Theme Toggle */
.theme-toggle{background:transparent;border:none;cursor:pointer;font-size:20px;color:var(--fg);padding:8px}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
}
.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Split */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 40px;
  min-height: 80vh;
  padding: 40px 0;
  overflow: hidden;
}
.hero-split.container {
  padding-left: 24px;
  padding-right: 24px;
}
.hero-content {
  padding-right: 20px;
}
.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  font-weight: 300;
  margin: 0 0 24px;
  color: var(--fg);
}
.hero-content h1 strong {
  font-weight: 600;
}
.hero-content .subtitle {
  font-size: 18px;
  color: var(--slate);
  margin-bottom: 32px;
  max-width: 400px;
}
/* Hero Image Container - Fixed Aspect Ratio */
.hero-image {
  position: relative;
  aspect-ratio: 4/5;
  height: auto;
  max-height: 80vh;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: opacity 0.8s ease-in-out;
}

/* Hero Nav Arrows */
.hero-nav {
  position: static;
  display: block; 
}
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}
.hero-nav-btn.prev {
  left: 24px;
}
.hero-nav-btn.next {
  right: 24px;
}
.hero-nav-btn:hover {
  background: rgba(255,255,255,0.8);
  color: #000;
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .hero-image { height: 400px; }
  .hero-nav-btn { width: 36px; height: 36px; font-size: 16px; }
  .hero-nav-btn.prev { left: 12px; }
  .hero-nav-btn.next { right: 12px; }
}

/* Services */
.service-card {
  padding: 0;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.dark-theme .service-card { background: var(--input-bg); }
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.service-card:hover .service-image img {
  transform: scale(1.05);
}
.service-card h4 {
  margin: 24px 24px 8px;
  color: var(--brand);
}
.service-card p {
  margin: 0 24px 24px;
  color: var(--slate);
}

/* Service detail page (single service) */
.service-detail-intro .container { text-align: left; }
.service-detail-back { margin: 0 0 12px; }
.service-detail-title { margin: 0 0 12px; font-size: 2.25rem; font-weight: 600; color: var(--fg); line-height: 1.2; }
.service-detail-desc { margin: 0 0 28px; font-size: 1.125rem; color: var(--slate); max-width: 42rem; }
.service-detail-image { margin-bottom: 32px; margin-left: auto; margin-right: auto; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; max-height: 420px; max-width: 900px; box-shadow: var(--shadow); }
.service-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.service-what-we-do { background: var(--muted); border-radius: var(--radius); padding: 28px 32px; margin-top: 8px; border: 1px solid var(--line); }
.service-what-we-do-title { margin: 0 0 20px; font-size: 1.25rem; font-weight: 600; color: var(--fg); }
.service-what-we-do-list { margin: 0; padding-left: 24px; line-height: 1.85; color: var(--fg); list-style: disc; }
.service-what-we-do-list li { margin-bottom: 12px; max-width: 52rem; }
.service-what-we-do-list li:last-child { margin-bottom: 0; }
.service-what-we-do-list strong { color: var(--brand); font-weight: 600; }

@media (max-width: 768px) {
  .service-image {
    height: 180px;
  }
  .service-card h4 {
    margin: 20px 20px 8px;
  }
  .service-card p {
    margin: 0 20px 20px;
  }
}

/* Our Process - Zig Zag */
.process-section {
  padding: 100px 0;
  overflow: hidden;
}
.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 20px;
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
/* Staggered layout for zig-zag effect */
.step:nth-child(odd) {
  margin-top: 0; /* 1, 3, 5 are UP */
}
.step:nth-child(even) {
  margin-top: 120px; /* 2, 4 are DOWN */
}
/* SVG connecting line - HIDDEN */
.process-svg-line {
  display: none;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-icon {
  width: 80px;
  height: 80px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  transition: all .3s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.step:hover .step-icon {
  border-color: var(--brand);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.step h4 { 
  margin: 0 0 8px; 
  font-size: 14px; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  color: var(--slate);
}
.step h4 span {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .process-steps { 
    flex-direction: column; 
    gap: 40px; 
    align-items: center;
  }
  .step:nth-child(even) { margin-top: 0; }
  .process-svg-line { display: none; }
  /* Remove vertical lines on mobile - clean vertical layout */
  .step::after {
    display: none !important;
  }
  .step {
    width: 100%;
    max-width: 300px;
  }
}

/* Client Cards */
.client-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.client-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.client-card h4 { margin: 0 0 4px; font-size: 16px; color: var(--brand); }
.client-card p { margin: 0; font-size: 13px; color: var(--slate); }

/* Project Categories */
.project-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cat-pill {
  font-size: 14px;
  color: var(--slate);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.cat-pill:hover,
.cat-pill.active {
  background: var(--bg);
  color: var(--brand);
  border-color: var(--line);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Review Card */
.review-card {
  background: var(--bg);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  /* Gentle wave animation */
  animation: wave 6s ease-in-out infinite;
}
.review-card:nth-child(2) { animation-delay: 2s; }
.review-card:nth-child(3) { animation-delay: 4s; }

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.review-stars {
  color: #f5b61d;
  font-size: 18px;
  letter-spacing: 2px;
}
.review-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  font-style: italic;
  flex: 1;
}
.reviewer strong {
  display: block;
  font-size: 14px;
  color: var(--brand);
}
.reviewer span {
  font-size: 12px;
  color: var(--slate);
}
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: none;
  box-shadow: none;
}
.project-card .thumb {
  aspect-ratio: 4/5;
  background: #eee;
  border-radius: var(--radius);
  overflow: hidden;
}
.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .thumb img {
  transform: scale(1.05);
}
.project-card .meta {
  padding: 16px 0;
}
.project-card h4 { margin: 0 0 4px; font-size: 18px; }
.project-card p { margin: 0; color: var(--slate); font-size: 14px; }

/* Single project gallery */
.project-gallery {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.project-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--muted);
}
.project-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Gallery title – subtle arrow on hover */
.gallery-title-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gallery-title-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
}

.gallery-title-link:hover {
  color: var(--steel);
  opacity: 0.9;
}

body.dark-theme .gallery-title-link:hover {
  color: var(--gallery-accent-dark);
}

.gallery-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  color: var(--steel);
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  pointer-events: none;
}

.gallery-title-wrapper:hover .gallery-arrow {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.gallery-arrow:hover {
  transform: translateX(2px);
  color: var(--steel);
}

body.dark-theme .gallery-arrow {
  color: var(--gallery-accent-dark);
}

body.dark-theme .gallery-title-wrapper:hover .gallery-arrow {
  opacity: 1;
}

body.dark-theme .gallery-arrow:hover {
  color: #ffffff;
}

/* Explore page gallery section */
.explore-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.explore-gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--muted);
  display: block;
  aspect-ratio: 4/3;
}
.explore-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.explore-gallery-item:hover img {
  transform: scale(1.05);
}
.explore-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* Blog List */
.blog-list{display:flex;flex-direction:column;gap:0}
.blog-list-item{display:flex;gap:20px;padding:22px;border-bottom:1px solid var(--line);align-items:center;transition:background .2s ease}
.blog-list-item:hover{background:var(--muted)}
.blog-list-item:last-child{border-bottom:none}
.blog-thumb{width:120px;height:80px;flex-shrink:0;border-radius:var(--radius-sm);background:#eee}
.blog-content{flex:1}
.blog-content h4{margin:0 0 6px;font-size:18px}
.blog-content p{margin:0;font-size:14px;color:var(--slate)}

/* Forms */
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-label{display:block;margin-bottom:6px;font-size:14px;font-weight:500;color:var(--fg)}
.form-required{font-size:14px;font-weight:700;color:#ef4444;margin-left:4px}
.file-size-warning{display:block;margin-top:6px;font-size:13px;color:#b45309}
.form-input,.form-select,.form-textarea{width:100%;padding:12px 14px;border:1px solid var(--line);background:var(--input-bg);color:var(--fg);border-radius:12px;font:inherit}
.form-input:focus,.form-select:focus,.form-textarea:focus{outline:none;border-color:var(--fg);box-shadow:0 0 0 3px rgba(245,245,245,.08)}
.form-help{display:block;font-size:13px;color:#bdbdbd;margin-bottom:6px}

/* Auth */
.auth-shell{min-height:calc(100vh - 72px);display:flex;align-items:center;justify-content:center;padding:44px 24px}
.auth-card{width:100%;max-width:460px;background:var(--muted);border:1px solid var(--line);border-radius:var(--radius);padding:32px;box-shadow:var(--shadow);text-align:center}
.auth-logo{width:150px;margin:0 auto 18px}
.auth-title{margin:0 0 8px}
.auth-subtitle{margin:0 0 18px;color:#bdbdbd}
body.dark-theme .auth-logo { filter: invert(1); }

/* Buttons - Modern Glassmorphic Style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #e0e0e0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: var(--fg);
  border-radius: 12px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: #e8e8e8;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn.primary {
  background: #9aadc4;
  border: 1px solid rgba(102, 118, 141, 0.5);
  color: var(--steel);
  box-shadow: 0 4px 16px rgba(102, 118, 141, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn.primary:hover {
  background: #a8b9ce;
  border-color: rgba(102, 118, 141, 0.6);
  box-shadow: 0 6px 20px rgba(102, 118, 141, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Dark Mode Button Overrides - fallback */
body.dark-theme .btn {
  background: #2d2d2d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8e8e8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark-theme .btn:hover {
  background: #383838;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-theme .btn.primary {
  background: #4a5a6e;
  border: 1px solid rgba(102, 118, 141, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(102, 118, 141, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-theme .btn.primary:hover {
  background: #5a6a7e;
  border-color: rgba(102, 118, 141, 0.6);
  box-shadow: 0 6px 20px rgba(102, 118, 141, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  .btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .btn:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .btn.primary {
    background: rgba(102, 118, 141, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 118, 141, 0.3);
    box-shadow: 0 4px 16px rgba(102, 118, 141, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .btn.primary:hover {
    background: rgba(102, 118, 141, 0.3);
    border-color: rgba(102, 118, 141, 0.4);
    box-shadow: 0 6px 20px rgba(102, 118, 141, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  body.dark-theme .btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  body.dark-theme .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  body.dark-theme .btn.primary {
    background: rgba(102, 118, 141, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 118, 141, 0.4);
    box-shadow: 0 4px 16px rgba(102, 118, 141, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  body.dark-theme .btn.primary:hover {
    background: rgba(102, 118, 141, 0.35);
    border-color: rgba(102, 118, 141, 0.5);
    box-shadow: 0 6px 20px rgba(102, 118, 141, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}

/* Contact page – subsection below Send button */
.contact-direct-subsection {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-direct-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--steel);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.contact-direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-direct-addresses-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

@media (max-width: 520px) {
  .contact-direct-addresses-row {
    grid-template-columns: 1fr;
  }
}

.contact-direct-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(102, 118, 141, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.contact-direct-item:hover {
  background: rgba(102, 118, 141, 0.1);
  border-color: var(--steel);
  box-shadow: 0 2px 8px rgba(102, 118, 141, 0.1);
}

.contact-direct-icon {
  font-size: 18px;
  color: var(--steel);
  flex-shrink: 0;
}

.contact-direct-item:hover .contact-direct-icon {
  color: var(--brand);
}

.contact-direct-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.3;
}

.contact-direct-address {
  cursor: default;
  align-items: flex-start;
  min-width: 0;
}

.contact-direct-address:hover {
  background: rgba(102, 118, 141, 0.06);
  border-color: var(--line);
  box-shadow: none;
}

.contact-direct-address-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-direct-address-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-direct-address .contact-direct-value {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  white-space: pre-line;
}

body.dark-theme .contact-direct-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .contact-direct-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .contact-direct-heading {
  color: var(--link-accent);
}

body.dark-theme .contact-direct-icon {
  color: var(--link-accent);
}

body.dark-theme .contact-direct-item:hover .contact-direct-icon {
  color: #ffffff;
}

body.dark-theme .contact-direct-address:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .contact-direct-address-label {
  color: var(--link-accent);
}

/* Footer */
.site-footer {
  background: var(--muted);
  color: var(--stone);
  border-top: none;
  padding: 80px 0 40px;
}
.footer-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 60px; }
.site-footer h4 { color: var(--stone); margin: 0 0 20px; }
.site-footer a { color: var(--slate); display: block; margin-bottom: 12px; }
.site-footer a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 32px; text-align: center; color: var(--slate); font-size: 13px; }
.footer-attribution {
  margin-top: 8px;
  text-align: left;
  font-size: 6px;
  color: var(--slate);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.footer-attribution .sep { opacity: 0.6; }
.footer-attribution a { display: inline; margin: 0; text-decoration: underline; }

/* Footer Dark Mode Overrides */
body.dark-theme .site-footer {
  color: #e0e0e0;
}

body.dark-theme .site-footer h4 {
  color: #ffffff;
  font-weight: 600;
}

body.dark-theme .site-footer p {
  color: #d0d0d0;
}

body.dark-theme .site-footer p strong {
  color: #e8e8e8;
  font-weight: 600;
}

body.dark-theme .site-footer a {
  color: var(--link-accent);
}

body.dark-theme .site-footer a:hover {
  color: #ffffff;
}

body.dark-theme .footer-bottom {
  color: #c0c0c0;
}

body.dark-theme .footer-attribution {
  color: #b0b0b0;
}

body.dark-theme .footer-attribution a {
  color: var(--link-accent);
}

/* Mobile & Responsive */
/* Nav bar: scale spacing and font with viewport so links don't jumble before hamburger */
@media (max-width: 1024px) {
  .site-header .header-row { gap: 16px; padding: 0 20px; }
  .site-header .site-nav ul { gap: 16px; }
  .site-header .site-nav a { font-size: 14px; }
  .logo-wordmark { font-size: 18px; }
}
@media (max-width: 900px) {
  .projects-grid,.blog-grid{grid-template-columns:1fr 1fr}
  .services-grid{grid-template-columns:1fr 1fr}
  .site-header .header-row { gap: 12px; padding: 0 16px; }
  .site-header .site-nav ul { gap: 12px; }
  .site-header .site-nav a { font-size: 13px; }
  .logo-wordmark { font-size: 17px; }
}

@media (max-width: 768px) {
  /* Mobile Navigation - Hamburger Menu */
  .mobile-menu-toggle {
    display: flex;
  }
  .site-nav {
    position: fixed;
    top: 88px;
    left: 12px;
    right: 12px;
    width: auto;
    margin: 0 auto;
    max-width: 600px;
    background: rgba(30,35,45,0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.2s ease;
    padding: 0;
    z-index: 1000;
  }
  body.dark-theme .site-nav {
    background: rgba(15,18,25,0.95);
    border-color: rgba(255,255,255,0.06);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .site-nav.active {
    max-height: 80vh;
    padding: 20px 0;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 0 24px;
  }
  .site-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav li:last-child {
    border-bottom: none;
  }
  .site-nav a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    width: 100%;
    text-align: left;
  }
  /* Hamburger menu: same dark glass as nav bar — white text on dark translucent background */
  .site-header .site-nav a { color: rgba(255,255,255,0.95); opacity: 1; padding: 16px 20px; margin: 4px 16px; border-radius: 12px; }
  .site-header .site-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
  .site-header .site-nav a.active { color: #fff; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
  .site-header .site-nav a.admin { color: #fff; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); margin: 4px 16px; }
  .site-header .site-nav .dropdown a { color: rgba(255,255,255,0.85); }
  .site-header .site-nav .dropdown a:hover { color: #fff; background: rgba(255,255,255,0.08); }
  .site-nav .dropdown {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding: 0 0 0 24px;
    background: transparent;
    margin-top: 8px;
  }
  .site-nav li.active .dropdown,
  .site-nav li:hover .dropdown {
    display: block;
    animation: none;
  }
  .dropdown a {
    padding: 12px 0;
    font-size: 14px;
  }
  .theme-toggle {
    order: -1;
  }
  
  /* Hero adjustments */
  .hero-split { grid-template-columns: 1fr; gap: 20px; padding-top: 0; }
  .hero-split.container { padding-left: 24px; padding-right: 24px; }
  .hero-content h1 { font-size: 40px; }
  
  /* Process section - clean vertical layout */
  .process-steps { 
    flex-direction: column; 
    gap: 40px; 
    align-items: center;
  }
  .step:nth-child(even) { margin-top: 0; }
  .process-svg-line { display: none; }
  .step::after {
    display: none !important;
  }
  .step {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 640px){
  .projects-grid,.blog-grid{grid-template-columns:1fr}
  .hero-split.container { padding-left: 16px; padding-right: 16px; }
  .site-header{padding:12px 16px}
  .site-header .container{padding:0 16px!important}
  .site-header .header-row{height:56px;padding:0 20px}
  .header-row { 
    height: 80px; 
    padding: 0 16px; 
    flex-wrap: nowrap; 
  }
  .blog-list-item{flex-direction:column;align-items:flex-start;gap:12px}
  .blog-thumb{width:100%;height:180px}
  .footer-content{grid-template-columns:1fr;gap:32px}
}

@keyframes fadeIn {from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
