/* ===========================================================
   TACOM — Smart Living Solutions
   Design tokens: Navy/Blue/Cyan corporate palette on white & gray
   Display: Space Grotesk · Body: Inter · Utility: IBM Plex Mono
   =========================================================== */

:root{
  /* ---- Color tokens ---- */
  --navy:        #0B1F3A;   /* deepest brand tone — header/footer/dark sections */
  --navy-700:    #122A4D;
  --blue:        #2457D9;   /* primary brand blue — CTAs, links, icon strokes */
  --blue-600:    #1C46B5;
  --blue-light:  #5C8DF6;
  --cyan:        #36C5F0;   /* sensor / "online" accent glow */
  --white:       #FFFFFF;
  --gray-50:     #F5F7FA;
  --gray-100:    #E9EDF3;
  --gray-200:    #DCE2EA;
  --gray-300:    #C3CBD6;
  --gray-500:    #7C8896;
  --gray-700:    #46505C;
  --ink:         #131C28;   /* primary body text */

  /* ---- Type ---- */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* ---- Layout ---- */
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(11,31,58,0.06);
  --shadow-md: 0 10px 30px rgba(11,31,58,0.10);
  --shadow-lg: 0 24px 60px rgba(11,31,58,0.16);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,svg{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,h5{ font-family: var(--font-display); margin:0 0 .5em; line-height: 1.15; color: var(--navy); letter-spacing: -0.01em; }
p{ margin: 0 0 1em; }
code{ font-family: var(--font-mono); font-size: 0.9em; background: var(--gray-100); padding: 2px 7px; border-radius: 6px; color: var(--blue-600); }
button{ font-family: inherit; }
:focus-visible{ outline: 2.5px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 600;
}
.eyebrow::before{
  content:"";
  width:7px; height:7px; border-radius:50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(54,197,240,0.25);
}

.section{ padding: 88px 0; }
.section-tight{ padding: 56px 0; }
.section-head{ max-width: 680px; margin-bottom: 48px; }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head p{ color: var(--gray-700); font-size: 1.05rem; }

.bg-navy{ background: var(--navy); color: var(--gray-200); }
.bg-navy h2, .bg-navy h3, .bg-navy h4{ color: var(--white); }
.bg-gray{ background: var(--gray-50); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--font-body); font-weight:600; font-size:0.95rem;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor:pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--blue-600); box-shadow: var(--shadow-md); }
.btn-outline{ background: transparent; border-color: var(--gray-300); color: var(--navy); }
.btn-outline:hover{ border-color: var(--blue); color: var(--blue); }
.btn-ghost-light{ background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost-light:hover{ background: rgba(255,255,255,0.18); }
.btn-sm{ padding: 9px 18px; font-size: 0.85rem; }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; height: 76px; gap: 24px; }
.logo{ display:flex; align-items:center; gap:10px; font-family: var(--font-display); font-weight:700; font-size:1.25rem; color: var(--navy); flex-shrink:0; }
.logo-mark{ width:200px; height:38px; flex-shrink:0; }
.logo-text{ letter-spacing: 0.01em; }
.logo-text span{ color: var(--blue); }

.main-nav ul{ display:flex; gap: 34px; }
.main-nav a{
  font-size: 0.95rem; font-weight:500; color: var(--gray-700);
  position:relative; padding: 6px 0; transition: color .15s ease;
}
.main-nav a::after{
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0%;
  background: var(--blue); transition: width .2s ease;
}
.main-nav a:hover{ color: var(--navy); }
.main-nav a:hover::after, .main-nav a.active::after{ width:100%; }
.main-nav a.active{ color: var(--navy); font-weight:600; }

.header-actions{ display:flex; align-items:center; gap: 18px; }
.status-pill{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing:0.04em;
  color: var(--gray-700); background: var(--gray-50);
  border:1px solid var(--gray-200); padding: 7px 13px; border-radius: 999px;
  white-space: nowrap;
}
.status-dot{ width:7px; height:7px; border-radius:50%; background:#22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: pulseDot 2.2s infinite; }
@keyframes pulseDot{ 0%{ box-shadow: 0 0 0 0 rgba(34,197,94,0.55);} 70%{ box-shadow: 0 0 0 6px rgba(34,197,94,0);} 100%{ box-shadow: 0 0 0 0 rgba(34,197,94,0);} }

.nav-toggle{ display:none; flex-direction:column; justify-content:center; gap:5px; width:38px; height:34px; background:none; border:none; cursor:pointer; padding:0; }
.nav-toggle span{ width:100%; height:2px; background: var(--navy); border-radius:2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{ padding: 64px 0 90px; overflow:hidden; position:relative; background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%); }
.hero-grid{ display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items:center; }
.hero h1{ font-size: clamp(2.4rem, 4vw, 3.4rem); margin-bottom: 22px; }
.hero h1 em{ font-style:normal; color: var(--blue); }
.hero-sub{ font-size: 1.1rem; color: var(--gray-700); max-width: 480px; margin-bottom: 32px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 34px; }
.hero-trust{ display:flex; gap: 28px; flex-wrap:wrap; }
.hero-trust div{ font-family: var(--font-mono); }
.hero-trust strong{ display:block; font-family: var(--font-display); font-size:1.5rem; color: var(--navy); }
.hero-trust span{ font-size:0.75rem; color: var(--gray-500); letter-spacing:0.03em; }

.hero-art{ position:relative; }
.node-dot{ animation: nodeGlow 2.6s ease-in-out infinite; }
.node-dot.d2{ animation-delay:.4s; } .node-dot.d3{ animation-delay:.8s; } .node-dot.d4{ animation-delay:1.2s; } .node-dot.d5{ animation-delay:1.6s; } .node-dot.d6{ animation-delay:2s; }
@keyframes nodeGlow{ 0%,100%{ opacity:.55; r:4; } 50%{ opacity:1; r:5.5; } }
.dash-line{ stroke-dasharray: 4 5; animation: dashFlow 5s linear infinite; }
@keyframes dashFlow{ to{ stroke-dashoffset: -100; } }

/* ---------- Value strip ---------- */
.value-strip{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.value-card{ background: var(--white); border:1px solid var(--gray-100); border-radius: var(--radius-md); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.value-card .icon-badge{ margin-bottom:16px; }
.value-card h3{ font-size:1.1rem; margin-bottom:8px; }
.value-card p{ color: var(--gray-700); font-size:0.95rem; margin:0; }

/* ---------- Icon badges (shared icon system) ---------- */
.icon-badge{
  width:56px; height:56px; border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(155deg, #EAF1FF 0%, #F4F7FD 100%);
  border: 1px solid #DCE7FB;
  flex-shrink:0;
}
.icon-badge svg{ width:30px; height:30px; stroke: var(--blue); fill:none; }
.icon-badge.lg{ width:72px; height:72px; border-radius:20px; }
.icon-badge.lg svg{ width:38px; height:38px; }
.icon-badge.dark{ background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.16); }
.icon-badge.dark svg{ stroke: var(--cyan); }
.icon-badge.sm{ width:42px; height:42px; border-radius:12px; }
.icon-badge.sm svg{ width:22px; height:22px; }

/* ---------- Service cards (grid preview) ---------- */
.service-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card{
  background: var(--white); border:1px solid var(--gray-100); border-radius: var(--radius-md);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display:flex; flex-direction:column; height:100%;
}
.service-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gray-200); }
.service-card h3{ font-size: 1.05rem; margin: 16px 0 8px; }
.service-card p{ color: var(--gray-700); font-size: 0.92rem; margin-bottom: 14px; flex-grow:1; }
.service-card .card-link{ font-size:0.85rem; font-weight:600; color: var(--blue); display:inline-flex; align-items:center; gap:6px; }
.service-card .card-link svg{ width:14px; height:14px; stroke: var(--blue); fill:none; transition: transform .15s ease; }
.service-card:hover .card-link svg{ transform: translateX(3px); }

/* ---------- Why choose us ---------- */
.why-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:24px; }
.why-card{ text-align:left; padding: 8px; }
.why-card .icon-badge{ margin-bottom:18px; }
.why-card h3{ color: var(--white); font-size:1.08rem; margin-bottom:8px; }
.why-card p{ color: var(--gray-300); font-size:0.92rem; margin:0; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue-600) 100%);
  border-radius: var(--radius-lg); padding: 56px 60px;
  display:flex; align-items:center; justify-content:space-between; gap: 32px; flex-wrap:wrap;
  color: var(--white); position:relative; overflow:hidden;
}
.cta-banner h2{ color:var(--white); margin-bottom:8px; font-size:1.8rem; }
.cta-banner p{ color: rgba(255,255,255,0.78); margin:0; max-width:480px; }
.cta-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--navy); color: var(--gray-300); padding-top: 70px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo{ color: var(--white); margin-bottom: 14px; }
.footer-brand p{ color: var(--gray-300); font-size:0.92rem; max-width: 300px; }
.footer-col h4{ color: var(--white); font-size:0.95rem; margin-bottom: 18px; letter-spacing:0.02em; }
.footer-col ul li{ margin-bottom: 11px; }
.footer-col a{ color: var(--gray-300); font-size:0.9rem; transition: color .15s ease; }
.footer-col a:hover{ color: var(--cyan); }
.footer-col address{ font-style:normal; font-size:0.9rem; color: var(--gray-300); line-height:1.8; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding: 26px 0; font-size: 0.82rem; color: var(--gray-500); flex-wrap:wrap; gap:10px; }
.footer-bottom-links{ display:flex; gap: 20px; }
.footer-bottom-links a:hover{ color: var(--cyan); }
.social-row{ display:flex; gap:10px; margin-top:18px; }
.social-row a{ width:36px; height:36px; border-radius:50%; background: rgba(255,255,255,0.07); display:flex; align-items:center; justify-content:center; transition: background .15s ease; }
.social-row a:hover{ background: var(--blue); }
.social-row svg{ width:16px; height:16px; stroke: var(--white); fill:none; }

/* ---------- Carousel (homepage showcase) ---------- */
.carousel{
  position: relative; border-radius: var(--radius-lg); overflow:hidden;
  box-shadow: var(--shadow-md); background: var(--gray-100);
}
.carousel:focus-visible{ outline: 2.5px solid var(--cyan); outline-offset: 0; }
.carousel-track{ display:flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.carousel-slide{ position:relative; min-width:100%; aspect-ratio: 16/9; background: var(--gray-100); }
.carousel-slide img{ width:100%; height:100%; object-fit: cover; display:block; }
.carousel-caption{
  position:absolute; left:0; right:0; bottom:0;
  background: linear-gradient(180deg, rgba(11,31,58,0) 0%, rgba(11,31,58,0.82) 75%);
  color:#fff; padding: 70px 36px 26px;
}
.carousel-caption .gallery-cat{ color:#9DC3F2; }
.carousel-caption h3{ color:#fff; margin: 6px 0 6px; font-size:1.3rem; }
.carousel-caption p{ color: rgba(255,255,255,0.86); margin:0; max-width:520px; font-size:0.94rem; }
.carousel-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:50%; background: rgba(255,255,255,0.92);
  border:none; display:flex; align-items:center; justify-content:center;
  cursor:pointer; box-shadow: var(--shadow-sm); transition: background .15s ease, transform .15s ease; z-index:5;
}
.carousel-arrow:hover{ background:#fff; transform: translateY(-50%) scale(1.06); }
.carousel-arrow svg{ width:20px; height:20px; stroke: var(--navy); fill:none; }
.carousel-arrow.prev{ left:18px; }
.carousel-arrow.next{ right:18px; }
.carousel-dots{ position:absolute; bottom:20px; right:28px; display:flex; gap:8px; z-index:5; }
.carousel-dot{
  width:9px; height:9px; border-radius:50%; background: rgba(255,255,255,0.5);
  border:none; cursor:pointer; padding:0; transition: background .15s ease, width .15s ease;
}
.carousel-dot.active{ background:#fff; width:24px; border-radius:5px; }

/* ---------- Page header (sub-pages) ---------- */
.page-header{
  background: var(--navy); color: var(--white); padding: 64px 0 56px; position:relative; overflow:hidden;
}
.page-header .eyebrow{ color: var(--cyan); }
.page-header h1{ color: var(--white); font-size: clamp(2rem,3.4vw,2.7rem); margin-bottom:14px; }
.page-header p{ color: var(--gray-300); max-width: 600px; font-size:1.05rem; margin:0; }
.breadcrumb{ font-family: var(--font-mono); font-size:0.78rem; color: var(--gray-500); margin-bottom: 18px; }
.breadcrumb a{ color: var(--cyan); }

/* ---------- Service detail blocks ---------- */
.service-detail{ display:grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items:center; padding: 64px 0; border-bottom: 1px solid var(--gray-100); }
.service-detail:last-child{ border-bottom:none; }
.service-detail.reverse .sd-figure{ order:2; }
.sd-tag{ font-family: var(--font-mono); font-size:0.75rem; color: var(--blue); letter-spacing:0.08em; text-transform:uppercase; margin-bottom:10px; display:block;}
.service-detail h2{ font-size: 1.7rem; margin-bottom:14px; }
.service-detail > div > p.sd-desc{ color: var(--gray-700); margin-bottom: 22px; }
.feature-list{ display:flex; flex-direction:column; gap:12px; margin-bottom: 10px; }
.feature-list li{ display:flex; gap:10px; align-items:flex-start; font-size:0.96rem; color: var(--ink); }
.feature-list svg{ width:18px; height:18px; stroke: var(--blue); fill:none; flex-shrink:0; margin-top:2px; }
.sub-icons{ display:flex; gap:14px; margin-top: 22px; flex-wrap:wrap; }
.sub-icon{ text-align:center; width: 78px; }
.sub-icon .icon-badge{ margin: 0 auto 8px; }
.sub-icon span{ font-size:0.75rem; color: var(--gray-700); font-weight:500; }

.sd-figure{ background: linear-gradient(155deg,#F2F6FD 0%, #E7EEFB 100%); border-radius: var(--radius-lg); padding: 36px; border:1px solid var(--gray-100); }

/* ---------- Solutions diagram ---------- */
.integration-wrap{ display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center; }
.steps{ display:flex; flex-direction:column; gap: 0; }
.step{ display:flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--gray-100); }
.step:last-child{ border-bottom:none; }
.step-num{ font-family: var(--font-mono); font-size:0.85rem; color: var(--blue); background: #EAF1FF; border-radius:50%; width:40px; height:40px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-weight:700; }
.step h4{ font-size:1.05rem; margin-bottom: 6px; }
.step p{ color: var(--gray-700); font-size:0.93rem; margin:0; }

.benefit-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.benefit-card{ background: var(--white); border:1px solid var(--gray-100); padding: 26px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.benefit-card h3{ font-size:1rem; margin: 14px 0 6px; }
.benefit-card p{ font-size:0.9rem; color: var(--gray-700); margin:0; }

/* ---------- Gallery ---------- */
.filter-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 40px; }
.filter-btn{
  font-family: var(--font-mono); font-size:0.8rem; padding: 9px 18px; border-radius:999px;
  border:1.5px solid var(--gray-200); background: var(--white); color: var(--gray-700); cursor:pointer;
  transition: all .15s ease;
}
.filter-btn:hover{ border-color: var(--blue); color: var(--blue); }
.filter-btn.active{ background: var(--navy); border-color: var(--navy); color: var(--white); }

.gallery-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.gallery-card{ background: var(--white); border:1px solid var(--gray-100); border-radius: var(--radius-md); overflow:hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.gallery-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); }
.gallery-figure{ background: linear-gradient(160deg,#EFF4FC,#E3EBFA); aspect-ratio: 4/3; display:flex; align-items:center; justify-content:center; padding: 18px; }
.gallery-body{ padding: 18px 20px 22px; }
.gallery-cat{ font-family: var(--font-mono); font-size:0.7rem; color: var(--blue); text-transform:uppercase; letter-spacing:0.06em; }
.gallery-body h3{ font-size:1rem; margin: 6px 0 4px; }
.gallery-body p{ font-size:0.86rem; color: var(--gray-700); margin:0; }
.gallery-item{ display:block; }
.gallery-item.hide{ display:none; }

/* ---------- Stat strip (Projects page) ---------- */
.stat-strip{ display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align:center; }
.stat-strip div{ padding: 10px; }
.stat-strip strong{ display:block; font-family: var(--font-display); font-size: 2.1rem; color: var(--navy); }
.stat-strip span{ font-family: var(--font-mono); font-size:0.75rem; color: var(--gray-500); letter-spacing:0.04em; }

/* ---------- Project cards (Projects page) ---------- */
.project-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.project-card{
  background: var(--white); border:1px solid var(--gray-100); border-radius: var(--radius-md);
  overflow:hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
  display:flex; flex-direction:column;
}
.project-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); }
.project-figure{ background: linear-gradient(160deg,#EFF4FC,#E3EBFA); aspect-ratio: 16/9; position:relative; }
.project-type{
  position:absolute; top:14px; left:14px; font-family: var(--font-mono); font-size:0.68rem;
  letter-spacing:0.06em; text-transform:uppercase; background: var(--navy); color:#fff;
  padding: 5px 11px; border-radius:999px;
}
.project-body{ padding: 22px 24px 24px; flex-grow:1; display:flex; flex-direction:column; }
.project-body .gallery-cat{ margin-bottom:2px; }
.project-body h3{ font-size: 1.15rem; margin: 4px 0 8px; }
.project-body p{ color: var(--gray-700); font-size:0.92rem; margin-bottom: 16px; }
.project-tags{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 18px; }
.project-stats{
  display:flex; gap: 18px; border-top: 1px solid var(--gray-100); padding-top: 14px; margin-top:auto; flex-wrap:wrap;
}
.project-stat{ font-family: var(--font-mono); font-size:0.78rem; color: var(--gray-700); }
.project-stat strong{ color: var(--navy); font-family: var(--font-display); font-size:0.95rem; }

/* ---------- Contact ---------- */
.contact-wrap{ display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:start; }
.contact-card{ background: var(--white); border:1px solid var(--gray-100); box-shadow: var(--shadow-md); border-radius: var(--radius-lg); padding: 38px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; margin-bottom: 18px; }
.field{ display:flex; flex-direction:column; gap:7px; margin-bottom:18px; }
.field label{ font-size:0.85rem; font-weight:600; color: var(--navy); }
.field input, .field select, .field textarea{
  font-family: var(--font-body); font-size:0.95rem; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--gray-200); background: var(--gray-50); color: var(--ink); width:100%;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--blue); background: var(--white); outline:none; }
.field textarea{ resize: vertical; min-height: 110px; }
.form-note{ font-size:0.82rem; color: var(--gray-500); margin-top: 12px; }
.form-success{ display:none; align-items:center; gap:12px; background:#EAF7EF; border:1px solid #BFE6CB; color:#1C7C3F; padding: 14px 18px; border-radius: 12px; font-size:0.92rem; margin-bottom:18px; }
.form-success.show{ display:flex; }
.form-success svg{ width:20px; height:20px; stroke:#1C7C3F; fill:none; flex-shrink:0; }

.info-list{ display:flex; flex-direction:column; gap: 24px; margin-bottom: 32px; }
.info-row{ display:flex; gap:16px; align-items:flex-start; }
.info-row h4{ font-size:0.98rem; margin-bottom:4px; }
.info-row p{ color: var(--gray-700); font-size:0.9rem; margin:0; }
.map-frame{ border-radius: var(--radius-md); overflow:hidden; border:1px solid var(--gray-100); box-shadow: var(--shadow-sm); }
.map-frame iframe{ width:100%; height: 380px; border:0; display:block; }

/* ---------- Misc shared ---------- */
.two-col{ display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center; }
.badge-row{ display:flex; gap:14px; flex-wrap:wrap; margin-top: 18px; }
.tag-chip{ font-family: var(--font-mono); font-size:0.74rem; background: var(--gray-50); border:1px solid var(--gray-200); padding:6px 12px; border-radius:999px; color: var(--gray-700); }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 1020px){
  .service-grid{ grid-template-columns: repeat(2,1fr); }
  .why-grid{ grid-template-columns: repeat(2,1fr); }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); }
  .value-strip{ grid-template-columns: 1fr; }
  .benefit-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .project-grid{ grid-template-columns: 1fr; }
  .stat-strip{ grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 880px){
  .main-nav{
    position:absolute; top:76px; left:0; right:0; background: var(--white);
    border-bottom: 1px solid var(--gray-100); box-shadow: var(--shadow-md);
    max-height:0; overflow:hidden; transition: max-height .25s ease;
  }
  .main-nav.open{ max-height: 400px; }
  .main-nav ul{ flex-direction:column; gap:0; padding: 10px 24px 18px; }
  .main-nav a{ display:block; padding: 14px 0; border-bottom:1px solid var(--gray-100); }
  .main-nav a::after{ display:none; }
  .nav-toggle{ display:flex; }
  .status-pill{ display:none; }
  .header-actions .btn-sm{ display:none; }

  .hero-grid{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; max-width: 420px; margin: 0 auto 10px; }
  .integration-wrap{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }
  .service-detail{ grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .service-detail.reverse .sd-figure{ order:0; }
  .contact-wrap{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .section{ padding: 60px 0; }
  .service-grid{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .benefit-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 30px; }
  .cta-banner{ padding: 40px 28px; flex-direction:column; align-items:flex-start; }
  .form-row{ grid-template-columns: 1fr; }
  .hero-trust{ gap: 20px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .carousel-slide{ aspect-ratio: 4/3; }
  .carousel-caption{ padding: 50px 18px 18px; }
  .carousel-caption h3{ font-size:1.1rem; }
  .carousel-caption p{ font-size:0.86rem; }
  .carousel-arrow{ width:36px; height:36px; }
  .carousel-arrow.prev{ left:10px; }
  .carousel-arrow.next{ right:10px; }
  .carousel-dots{ right:14px; bottom:12px; }
}
