/* =========================================================
   ADNEX — Design tokens
   ========================================================= */
:root{
  --bg:        #0B0F10;
  --bg-panel:  #12181A;
  --bg-panel-2:#171F21;
  --teal:      #18C0C4;
  --teal-dim:  #0E8C90;
  --charcoal:  #3A3D40;
  --white:     #F4F7F7;
  --muted:     #8B9AA0;
  --border:    rgba(244,247,247,0.08);
  --border-2:  rgba(244,247,247,0.14);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --surface-alt: #F4F7F7;
  --bg-rgb: 11,15,16;
  --accent-bg: #18C0C4;
  --accent-bg-dim: #0E8C90;
  --accent-text: #04191A;
  --accent-text-rgb: 4,25,26;
}

[data-theme="light"]{
  --bg-rgb: 251,252,252;
  --accent-bg: #207b7e;
  --accent-bg-dim: #072A2C;
  --accent-text: #F4F7F7;
  --accent-text-rgb: 244,247,247;
}

/* Light theme override */
[data-theme="light"]{
  --bg:        #FBFCFC;
  --bg-panel:  #FFFFFF;
  --bg-panel-2:#F1F4F4;
  --teal:      #0EA8AC;
  --teal-dim:  #0C8286;
  --charcoal:  #2B2E30;
  --white:     #1B1F20;
  --muted:     #626C6F;
  --border:    rgba(27,31,32,0.09);
  --border-2:  rgba(27,31,32,0.16);
}

body, .site-header, .site-footer, .chat-window, .card{
  transition:background-color .35s ease, color .35s ease, border-color .35s ease;
}

/* Theme toggle switch */
.theme-toggle{
  width:44px; height:44px; border-radius:50%; border:1px solid var(--border-2);
  display:flex; align-items:center; justify-content:center; background:none; color:var(--white);
  flex:none; transition:border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover{ border-color:var(--teal); transform:rotate(20deg); }
.theme-toggle .icon-moon{ display:none; }
[data-theme="light"] .theme-toggle .icon-sun{ display:none; }
[data-theme="light"] .theme-toggle .icon-moon{ display:block; }

/* Scroll reveal */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }
.reveal-stagger.in-view > *{ animation:staggerUp .6s ease both; }
.reveal-stagger.in-view > *:nth-child(1){ animation-delay:.02s; }
.reveal-stagger.in-view > *:nth-child(2){ animation-delay:.08s; }
.reveal-stagger.in-view > *:nth-child(3){ animation-delay:.14s; }
.reveal-stagger.in-view > *:nth-child(4){ animation-delay:.2s; }
.reveal-stagger.in-view > *:nth-child(5){ animation-delay:.26s; }
.reveal-stagger.in-view > *:nth-child(6){ animation-delay:.32s; }
@keyframes staggerUp{ from{ opacity:0; transform:translateY(22px);} to{ opacity:1; transform:translateY(0);} }
@media(prefers-reduced-motion: reduce){
  .reveal, .reveal-stagger > *{ opacity:1 !important; transform:none !important; animation:none !important; }
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

/* Smooth cross-page transitions (Chromium browsers; ignored elsewhere, no harm) */
@view-transition{ navigation: auto; }
::view-transition-old(root){ animation: view-fade-out .28s ease both; }
::view-transition-new(root){ animation: view-fade-in .32s ease both; }
@keyframes view-fade-out{ to{ opacity:0; transform:translateY(-6px); } }
@keyframes view-fade-in{ from{ opacity:0; transform:translateY(6px); } }
body{
  margin:0;
  background:var(--bg);
  color:var(--white);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }

h1,h2,h3,h4{
  font-family:var(--font-display);
  line-height:1.08;
  margin:0;
  font-weight:600;
  letter-spacing:-0.01em;
}

.container{ max-width:var(--container); margin:0 auto; padding:0 28px; }
.section{ padding:110px 0; position:relative; }
.section-tight{ padding:70px 0; }

.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:clamp(2rem, 4vw, 2.9rem); }
.section-head p{ color:var(--muted); font-size:1.08rem; margin-top:14px; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px; border-radius:100px;
  font-weight:600; font-size:0.95rem;
  border:1px solid transparent;
  transition:transform .25s ease, background .25s ease, border-color .25s ease;
}
.btn-primary{ background:var(--accent-bg); color:var(--accent-text); position:relative; }
.btn-primary:hover{ transform:translateY(-2px); background:var(--accent-bg-dim); box-shadow:0 8px 24px rgba(24,192,196,0.35); }
[data-theme="light"] .btn-primary:hover{ background:#0F4F52; }
.btn-outline{ border-color:var(--border-2); color:var(--white); }
.btn-outline:hover{ border-color:var(--teal); color:var(--teal); }
.btn-dark{ background:#207b7e; color:white; }

/* =========================================================
   Header
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:200;
  background:rgba(var(--bg-rgb),0.82);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height:36px; width:auto; }
.main-nav{ display:flex; align-items:center; gap:36px; }
.main-nav ul{ display:flex; gap:32px; }
.main-nav a{
  font-size:0.95rem; font-weight:500; color:var(--white);
  position:relative; padding:4px 0;
}
.main-nav a::after{
  content:''; position:absolute; left:0; bottom:0; height:2px; width:0;
  background:var(--teal); transition:width .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after{ width:100%; }
.has-dropdown{ position:relative; }
.dropdown{
  position:absolute; top:100%; left:0; margin-top:14px;
  background:var(--bg-panel); border:1px solid var(--border); border-radius:12px;
  min-width:220px; padding:8px; opacity:0; visibility:hidden;
  transform:translateY(8px); transition:all .2s ease;
  box-shadow:0 20px 40px rgba(0,0,0,0.4);
}
.has-dropdown:hover .dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.dropdown a{ display:block; padding:10px 12px; border-radius:8px; font-size:0.92rem; }
.dropdown a:hover{ background:var(--bg-panel-2); color:var(--teal); }
.dropdown a::after{ display:none; }
.header-actions{ display:flex; align-items:center; gap:18px; }
.header-phone{ font-size:0.92rem; color:var(--muted); }
.header-phone strong{ color:var(--white); display:block; font-size:0.98rem; }
.nav-toggle{
  display:none; background:none; border:none; color:var(--white);
  width:40px; height:40px; align-items:center; justify-content:center;
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  padding:90px 0 70px;
  position:relative; overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns:1.15fr 0.85fr; gap:50px; align-items:center;
}
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  color:var(--teal); font-size:0.9rem; font-weight:600; margin-bottom:22px;
}
.hero-eyebrow span{ width:6px; height:6px; border-radius:50%; background:var(--teal); }
.hero h1{
  font-size:clamp(2.6rem, 5.4vw, 4.6rem);
  color:var(--white);
}
.hero h1 em{ font-style:normal; color:var(--teal); }
.hero p.lead{
  color:var(--muted); font-size:1.15rem; max-width:520px; margin:26px 0 36px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:40px; margin-top:56px; }
.hero-stats div strong{ font-family:var(--font-display); font-size:2rem; display:block; color:var(--white); }
.hero-stats div span{ color:var(--muted); font-size:0.88rem; }

.hero-mark{
  position:relative; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center;
  perspective:800px; transition:transform .3s ease-out, filter .3s ease;
  cursor:pointer;
}
.hero-mark:hover{ filter:drop-shadow(0 0 30px rgba(24,192,196,0.35)); }
.hero-mark:hover .ring{ stroke-opacity:0.95 !important; }
.hero-mark:hover .accent-dot{ animation:dot-pulse 1.1s ease-in-out infinite; }
@keyframes dot-pulse{ 0%,100%{ transform:scale(1); opacity:1; } 50%{ transform:scale(1.35); opacity:0.7; } }
.accent-dot{ transform-box:fill-box; transform-origin:center; }
.hero-mark svg{ width:100%; height:100%; }
.hero-mark .ring{ animation:spin 40s linear infinite; transform-origin:center; }
.hero-mark-logo{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:52%; max-width:220px; filter:drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}
[data-theme="light"] .hero-mark-logo{ filter:drop-shadow(0 8px 20px rgba(0,0,0,0.12)); }
.hero-mark.logo-failed .hero-mark-logo{ display:none; }
.hero-mark.logo-failed::after{
  content:'A'; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  font-family:var(--font-display); font-weight:700; font-size:5rem; color:var(--teal);
}
@keyframes spin{ from{ transform:rotate(0deg);} to{ transform:rotate(360deg);} }

@media(prefers-reduced-motion: reduce){
  .hero-mark .ring{ animation:none; }
  html{ scroll-behavior:auto; }
}

/* fade up on load, orchestrated once */
.hero-eyebrow,.hero h1,.hero p.lead,.hero-actions,.hero-stats{
  opacity:0; transform:translateY(18px);
  animation:reveal .7s ease forwards;
}
.hero h1{ animation-delay:.08s; }
.hero p.lead{ animation-delay:.16s; }
.hero-actions{ animation-delay:.24s; }
.hero-stats{ animation-delay:.32s; }
.hero-mark{ opacity:0; animation:reveal .9s ease forwards; animation-delay:.2s; }
@keyframes reveal{ to{ opacity:1; transform:translateY(0);} }

/* =========================================================
   Marquee / video
   ========================================================= */
.video-block{
  background:var(--bg-panel); border:1px solid var(--border); border-radius:24px;
  padding:8px; overflow:hidden;
}
.video-embed{ position:relative; padding-top:56.25%; border-radius:18px; overflow:hidden; }
.video-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

/* =========================================================
   Services list
   ========================================================= */
.services-list{ border-top:1px solid var(--border); }
.service-row{
  display:grid; grid-template-columns:56px 1.3fr 1.7fr 90px;
  align-items:center; gap:28px;
  padding:34px 0; border-bottom:1px solid var(--border);
  transition:background .2s ease;
}
.service-row:hover{ background:rgba(24,192,196,0.04); }
.service-icon{
  width:52px; height:52px; border-radius:14px; background:rgba(24,192,196,0.12); color:var(--teal);
  display:flex; align-items:center; justify-content:center; flex:none;
  transition:background .25s ease, transform .25s ease;
}
.service-row:hover .service-icon{ transform:translateY(-3px); background:rgba(24,192,196,0.2); }
.service-row h3{ font-size:1.5rem; color:var(--teal); }
.service-row p{ color:var(--muted); margin:0; font-size:0.98rem; }
.service-arrow{
  width:44px; height:44px; border-radius:50%; border:1px solid var(--border-2);
  display:flex; align-items:center; justify-content:center;
  transition:all .25s ease; justify-self:end;
}
.service-row:hover .service-arrow{ background:var(--accent-bg); border-color:var(--accent-bg); color:var(--accent-text); transform:rotate(45deg); }

/* =========================================================
   Services card grid ("What we do")
   ========================================================= */
.services-card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.service-card{
  position:relative; background:var(--bg-panel); border:1px solid var(--border);
  border-radius:var(--radius); padding:32px 28px; min-height:230px;
  display:flex; flex-direction:column; overflow:hidden;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .4s ease;
}
.service-card:hover{ transform:translateY(-8px); border-color:var(--border-2); box-shadow:0 20px 40px rgba(0,0,0,0.25); }
.service-card:not(.featured):hover{
  background:linear-gradient(145deg, var(--accent-bg-dim), var(--accent-bg)); border-color:transparent;
}
.service-card h3{ font-size:1.3rem; color:var(--white); margin-bottom:12px; transition:color .4s ease; }
.service-card:not(.featured):hover h3{ color:var(--accent-text); }
.service-card p{ color:var(--muted); font-size:0.95rem; margin:0; line-height:1.6; transition:color .4s ease; }
.service-card:not(.featured):hover p{ color:rgba(var(--accent-text-rgb),0.78); }
.service-card-icon{
  width:68px; height:68px; border-radius:16px; background:rgba(24,192,196,0.12); color:var(--teal);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px;
  transition:transform .35s ease, background .4s ease, color .4s ease;
}
.service-card-icon svg{ width:30px; height:30px; }
.service-card:hover .service-card-icon{ transform:scale(1.1) rotate(-6deg); background:#FFFFFF; color:var(--accent-bg); }
.service-card-num{
  position:absolute; right:18px; bottom:6px; font-family:var(--font-display); font-weight:700;
  font-size:4rem; color:var(--white); opacity:0.05; line-height:1; pointer-events:none;
  transition:opacity .3s ease, color .4s ease;
}
.service-card:hover .service-card-num{ opacity:0.09; }
.service-card:not(.featured):hover .service-card-num{ color:var(--accent-text); opacity:0.14; }
.service-card.featured{
  background:linear-gradient(145deg, var(--accent-bg-dim), var(--accent-bg));
  border-color:transparent; color:var(--accent-text); grid-row:span 1;
}
.service-card.featured h3{ color:var(--accent-text); font-size:1.5rem; }
.service-card.featured p{ color:rgba(var(--accent-text-rgb),0.75); }
.service-card.featured .service-card-num{ color:var(--accent-text); opacity:0.12; }
.service-card.featured:hover .service-card-num{ opacity:0.2; }

/* =========================================================
   Portfolio grid (asymmetric)
   ========================================================= */
.portfolio-grid{
  display:grid; grid-template-columns:repeat(6,1fr); gap:22px;
}
.portfolio-item{
  position:relative; border-radius:var(--radius); overflow:hidden;
  grid-column:span 3; aspect-ratio:4/3.2;
  background:var(--bg-panel);
}
.portfolio-item.wide{ grid-column:span 4; }
.portfolio-item.narrow{ grid-column:span 2; }
.portfolio-item img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.portfolio-item:hover img{ transform:scale(1.06); }
.portfolio-overlay{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end;
  padding:24px; background:linear-gradient(180deg, transparent 40%, rgba(6,9,10,0.92) 100%);
}
.portfolio-overlay span{ color:var(--teal); font-size:0.82rem; font-weight:600; text-shadow:0 1px 6px rgba(0,0,0,0.5); }
.portfolio-overlay h4{ color:#FFFFFF; font-size:1.25rem; margin-top:6px; text-shadow:0 2px 8px rgba(0,0,0,0.55); }

.gallery-grid.portfolio-grid{ grid-template-columns:repeat(3,1fr); }
.gallery-grid .portfolio-item{ grid-column:span 1; aspect-ratio:4/3.2; }

.category-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:16px;
  margin-bottom:32px; padding-bottom:16px; border-bottom:1px solid var(--border);
}
.category-head h2{ font-size:1.8rem; }
.category-count{ color:var(--muted); font-size:0.88rem; white-space:nowrap; }

/*
.project-gallery{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.project-gallery-img{ width:100%; object-fit:cover; border-radius:var(--radius); display:block; cursor:zoom-in; transition:transform .3s ease, box-shadow .3s ease; }
.project-gallery-img:hover{ transform:scale(1.015); box-shadow:0 16px 34px rgba(0,0,0,0.25); }
*/

/*Added by AppSols for Landscape and Portrait Work Gallery images issue */
.project-gallery {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:24px;
  align-items:start;
}

.project-gallery-img {
  width:100%;
  height:auto;
  object-fit:contain;
  border-radius:var(--radius);
  display:block;
  cursor:zoom-in;
  transition:transform .3s ease, box-shadow .3s ease;
}

/* Wide / landscape images take the full row */
.project-gallery-img.gallery-wide {
  grid-column:1 / -1;
}

/* Portrait and square images occupy one column */
.project-gallery-img.gallery-half {
  grid-column:span 1;
}

.project-gallery-img:hover {
  transform:scale(1.015);
  box-shadow:0 16px 34px rgba(0,0,0,0.25);
}

@media(max-width:640px){
  .project-gallery {
    grid-template-columns:1fr;
    gap:18px;
  }

  .project-gallery-img,
  .project-gallery-img.gallery-wide,
  .project-gallery-img.gallery-half {
    grid-column:1;
  }
}





/* Lightbox */
.lightbox-overlay{
  position:fixed; inset:0; z-index:900; background:rgba(6,9,10,0.92); backdrop-filter:blur(6px);
  display:none; align-items:center; justify-content:center; padding:40px;
}
.lightbox-overlay.open{ display:flex; }
.lightbox-overlay img{ max-width:100%; max-height:88vh; border-radius:12px; box-shadow:0 30px 70px rgba(0,0,0,0.5); }
.lightbox-close{
  position:absolute; top:24px; right:28px; width:46px; height:46px; border-radius:50%;
  background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.2); color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; border-radius:50%;
  background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.2); color:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.lightbox-nav.prev{ left:24px; } .lightbox-nav.next{ right:24px; }
@media(max-width:640px){
  .project-gallery{ grid-template-columns:1fr; }
  .lightbox-nav{ width:42px; height:42px; }
}

/* =========================================================
   Portfolio carousel ("Selected work")
   ========================================================= */
.portfolio-carousel{ position:relative; }
.portfolio-track{
  display:flex; gap:22px; overflow-x:auto; scroll-snap-type:x mandatory;
  scroll-behavior:smooth; padding-bottom:6px; scrollbar-width:none;
}
.portfolio-track::-webkit-scrollbar{ display:none; }
.portfolio-slide{
  position:relative; flex:0 0 auto; width:calc((100% - 44px)/3); aspect-ratio:4/3;
  border-radius:var(--radius); overflow:hidden; scroll-snap-align:start; background:var(--bg-panel);
}
.portfolio-slide img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.portfolio-slide:hover img{ transform:scale(1.05); }
.carousel-controls{ display:flex; align-items:center; justify-content:center; gap:20px; margin-top:28px; }
.carousel-arrow{
  width:46px; height:46px; border-radius:50%; border:1px solid var(--border-2); background:none; color:var(--white);
  display:flex; align-items:center; justify-content:center; transition:all .2s ease; flex:none;
}
.carousel-arrow:hover{ background:var(--accent-bg); border-color:var(--accent-bg); color:var(--accent-text); }
.carousel-dots{ display:flex; gap:8px; }
.carousel-dots button{
  width:8px; height:8px; border-radius:50%; background:var(--border-2); border:none; padding:0; transition:all .25s ease;
}
.carousel-dots button.active{ background:var(--teal); width:22px; border-radius:100px; }

/* =========================================================
   Clients strip
   ========================================================= */
.clients-marquee{ overflow:hidden; position:relative; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.clients-track{ display:flex; align-items:center; gap:28px; width:max-content; animation:marquee 28s linear infinite; }
.client-logo-card{
  flex:none; background:var(--surface-alt); border-radius:16px; padding:24px 36px;
  display:flex; align-items:center; justify-content:center;
  width:220px; height:120px; box-shadow:0 10px 30px rgba(0,0,0,0.15);
  transition:transform .25s ease, box-shadow .25s ease;
}
.client-logo-card:hover{ transform:translateY(-4px); box-shadow:0 16px 36px rgba(0,0,0,0.22); }
.client-logo-card img{ max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media(prefers-reduced-motion: reduce){ .clients-track{ animation:none; flex-wrap:wrap; justify-content:center; } }
.clients-strip{
  display:flex; flex-wrap:wrap; gap:50px; align-items:center; justify-content:space-between;
  padding:40px 0;
}
.clients-strip img{ height:56px; width:auto; max-width:160px; object-fit:contain; transition:transform .25s ease; }
.clients-strip img:hover{ transform:scale(1.08); }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonial-track{
  display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth;
  padding-bottom:10px; scrollbar-width:none;
}
.testimonial-track::-webkit-scrollbar{ display:none; }
.testimonial-card{
  scroll-snap-align:start; flex:0 0 auto; width:calc((100% - 24px)/2);
  background:var(--bg-panel); border:1px solid var(--border); border-radius:var(--radius);
  padding:34px;
}
.testimonial-card .quote-icon{ color:var(--teal); opacity:0.5; margin-bottom:14px; }
.testimonial-card .star-rating{ display:flex; gap:3px; color:var(--teal); margin-bottom:16px; }
.testimonial-card p.quote{ font-size:1.08rem; color:var(--white); min-height:110px; }
.testimonial-person{ display:flex; align-items:center; gap:14px; margin-top:24px; }
.testimonial-person img{ width:58px; height:58px; border-radius:50%; object-fit:cover; border:2px solid var(--teal); }
.testimonial-person strong{ display:block; font-size:0.98rem; }
.testimonial-person span{ color:var(--muted); font-size:0.85rem; }

/* =========================================================
   Blog
   ========================================================= */
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.blog-card{
  background:var(--bg-panel); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; transition:transform .25s ease, border-color .25s ease;
}
.blog-card:hover{ transform:translateY(-4px); border-color:var(--border-2); }
.blog-card img{ height:190px; width:100%; object-fit:cover; }
.blog-card-body{ padding:24px; }
.blog-meta{ display:flex; gap:12px; align-items:center; color:var(--muted); font-size:0.82rem; margin-bottom:12px; }
.blog-meta .tag{ color:var(--teal); background:rgba(24,192,196,0.1); padding:3px 10px; border-radius:100px; }
.blog-card h3{ font-size:1.2rem; color:var(--white); margin-bottom:10px; }
.blog-card p{ color:var(--muted); font-size:0.92rem; }

/* =========================================================
   About / light panel
   ========================================================= */
.panel-light{
  background:var(--surface-alt); color:var(--charcoal);
}
.panel-light .muted{ color:#63696D; }
.panel-light .section-head p{ color:#63696D; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list{ border-top:1px solid var(--border); }
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{
  width:100%; background:none; border:none; color:var(--white); text-align:left;
  display:flex; justify-content:space-between; align-items:center;
  padding:26px 0; font-family:var(--font-display); font-size:1.15rem;
  transition:color .2s ease;
}
.faq-q:hover{ color:var(--teal); }
.faq-q .plus{
  width:30px; height:30px; border-radius:50%; border:1px solid var(--border-2);
  display:flex; align-items:center; justify-content:center; flex:none;
  transition:transform .25s ease;
}
.faq-item.open .faq-q .plus{ transform:rotate(45deg); background:var(--accent-bg); border-color:var(--accent-bg); color:var(--accent-text); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-a p{ color:var(--muted); padding-bottom:24px; margin:0; max-width:760px; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band{
  background:linear-gradient(135deg, var(--accent-bg-dim), var(--accent-bg));
  border-radius:28px; padding:64px 56px; color:var(--accent-text);
  display:flex; justify-content:space-between; align-items:center; gap:30px; flex-wrap:wrap;
}
.cta-band h2{ font-size:clamp(1.8rem,3vw,2.5rem); color:var(--accent-text); max-width:520px; }
.cta-band .btn-dark{ background:var(--accent-text); color:var(--accent-bg); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background:var(--bg-panel); border-top:1px solid var(--border); padding:80px 0 30px; margin-top:60px;}
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; }
.footer-brand img{ height:34px; margin-bottom:16px; }
.footer-brand p{ color:var(--muted); font-size:0.92rem; max-width:280px; }
.footer-social{ display:flex; gap:12px; margin-top:22px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--border-2);
  display:flex; align-items:center; justify-content:center; transition:all .2s ease;
}
.footer-social a:hover{ background:var(--accent-bg); border-color:var(--accent-bg); color:var(--accent-text); }
.footer-col h4{ font-size:0.95rem; margin-bottom:18px; color:var(--white); }
.footer-col ul li{ margin-bottom:12px; }
.footer-col ul a{ color:var(--muted); font-size:0.92rem; }
.footer-col ul a:hover{ color:var(--teal); }
.footer-form{ display:flex; gap:0; margin-top:6px; }
.footer-form input{
  flex:1; background:var(--bg); border:1px solid var(--border-2); border-radius:100px 0 0 100px;
  padding:12px 16px; color:var(--white); font-family:inherit; outline:none;
}
.footer-form button{
  background:var(--accent-bg); border:none; border-radius:0 100px 100px 0; padding:0 20px; color:var(--accent-text);
}
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  margin-top:60px; padding-top:24px; border-top:1px solid var(--border);
  color:var(--muted); font-size:0.85rem;
}
.footer-bottom a{ color:var(--muted); }
.footer-bottom a:hover{ color:var(--teal); }

/* =========================================================
   Generic inner-page header
   ========================================================= */
.page-header{ padding:150px 0 60px; }
.page-header .crumb{ color:var(--muted); font-size:0.9rem; margin-bottom:16px; }
.page-header .crumb a:hover{ color:var(--teal); }
.page-header h1{ font-size:clamp(2.2rem,4.5vw,3.4rem); }

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:60px; }
.contact-info-item{ display:flex; gap:18px; padding:20px 0; border-bottom:1px solid var(--border); }
.contact-info-item .ic{
  width:46px; height:46px; border-radius:12px; background:rgba(24,192,196,0.12); color:var(--teal);
  display:flex; align-items:center; justify-content:center; flex:none;
}
.contact-info-item h4{ font-size:1rem; margin-bottom:4px; }
.contact-info-item p{ color:var(--muted); margin:0; font-size:0.92rem; }

.offices-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:22px; }
.office-card{
  background:var(--bg-panel); border:1px solid var(--border); border-radius:var(--radius);
  padding:28px; transition:transform .25s ease, border-color .25s ease;
}
.office-card:hover{ transform:translateY(-4px); border-color:var(--border-2); }
.office-card h3{ font-size:1.2rem; margin-bottom:16px; color:var(--teal); }
.office-card .contact-info-item{ padding:10px 0; border-bottom:none; }
.office-card .contact-info-item .ic{ width:36px; height:36px; }

.form-field{ margin-bottom:18px; }
.form-field label{ display:block; font-size:0.85rem; color:var(--muted); margin-bottom:8px; }
.form-field input, .form-field textarea{
  width:100%; background:var(--bg-panel); border:1px solid var(--border-2); border-radius:10px;
  padding:14px 16px; color:var(--white); font-family:inherit; font-size:0.98rem; outline:none;
  transition:border-color .2s ease;
}
.form-field input:focus, .form-field textarea:focus{ border-color:var(--teal); }
.form-msg{ padding:14px 18px; border-radius:10px; margin-bottom:20px; font-size:0.92rem; }
.form-msg.ok{ background:rgba(24,192,196,0.12); color:var(--teal); }
.form-msg.err{ background:rgba(220,80,80,0.12); color:#e57373; }

/* =========================================================
   Team
   ========================================================= */
.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; }
.team-card img{ border-radius:var(--radius); aspect-ratio:3/3.4; object-fit:cover; }
.team-card h4{ margin-top:16px; font-size:1.05rem; }
.team-card span{ color:var(--muted); font-size:0.88rem; }

/* =========================================================
   Live chat widget
   ========================================================= */
.chat-launcher{
  position:fixed; bottom:26px; right:26px; z-index:400;
  width:60px; height:60px; border-radius:50%; background:var(--accent-bg); color:var(--accent-text);
  display:flex; align-items:center; justify-content:center; border:none;
  box-shadow:0 10px 30px rgba(24,192,196,0.4); transition:transform .2s ease;
}
.chat-launcher:hover{ transform:scale(1.06); }
.chat-window{
  position:fixed; bottom:100px; right:26px; z-index:400;
  width:340px; max-width:90vw; height:460px; max-height:70vh;
  background:var(--bg-panel); border:1px solid var(--border-2); border-radius:18px;
  display:none; flex-direction:column; overflow:hidden;
  box-shadow:0 30px 60px rgba(0,0,0,0.5);
}
.chat-window.open{ display:flex; }
.chat-head{ background:var(--accent-bg); color:var(--accent-text); padding:16px 18px; display:flex; justify-content:space-between; align-items:center; }
.chat-head strong{ font-family:var(--font-display); }
.chat-head button{ background:none; border:none; color:var(--accent-text); }
.chat-body{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; }
.chat-bubble{ max-width:80%; padding:10px 14px; border-radius:14px; font-size:0.9rem; line-height:1.4; }
.chat-bubble.visitor{ align-self:flex-end; background:var(--accent-bg); color:var(--accent-text); border-bottom-right-radius:4px; }
.chat-bubble.admin{ align-self:flex-start; background:var(--bg-panel-2); border-bottom-left-radius:4px; }
.chat-setup{ padding:18px; display:flex; flex-direction:column; gap:10px; }
.chat-setup input{ background:var(--bg); border:1px solid var(--border-2); border-radius:8px; padding:10px 12px; color:var(--white); }
.chat-input{ display:flex; border-top:1px solid var(--border); }
.chat-input input{ flex:1; background:none; border:none; padding:14px 16px; color:var(--white); outline:none; }
.chat-input button{ background:none; border:none; color:var(--teal); padding:0 16px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .portfolio-slide{ width:calc((100% - 22px)/2); }
  .testimonial-card{ width:100%; }
  .main-nav{ position:fixed; inset:64px 0 0 0; background:var(--bg); flex-direction:column; padding:30px 28px; display:none; }
  .main-nav.open{ display:flex; }
  .main-nav ul{ flex-direction:column; gap:6px; width:100%; }
  .main-nav a{ display:block; padding:14px 0; border-bottom:1px solid var(--border); }
  .dropdown{ position:static; opacity:1; visibility:visible; transform:none; display:none; margin-top:0; border:none; padding:0 0 0 14px; }
  .has-dropdown.open .dropdown{ display:block; }
  .nav-toggle{ display:flex; }
  .header-phone{ display:none; }
  .hero-grid{ grid-template-columns:1fr; }
  .hero-mark{ max-width:280px; margin:0 auto; order:-1; }
  .service-row{ grid-template-columns:44px 1fr 44px; gap:16px; }
  .services-card-grid{ grid-template-columns:1fr; }
  .service-card{ min-height:auto; }
  .service-icon{ width:40px; height:40px; }
  .service-row p{ grid-column:1/-1; margin-top:6px; }
  .portfolio-grid{ grid-template-columns:repeat(2,1fr); }
  .portfolio-item, .portfolio-item.wide, .portfolio-item.narrow{ grid-column:span 1; aspect-ratio:1/1; }
  .gallery-grid.portfolio-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid .portfolio-item{ aspect-ratio:1/1; }
  .blog-grid{ grid-template-columns:1fr; }
  .team-grid{ grid-template-columns:repeat(2,1fr); }
  .contact-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .cta-band{ flex-direction:column; text-align:center; }
  .section{ padding:70px 0; }
}
@media (max-width:560px){
  .portfolio-slide{ width:100%; }
  .footer-grid{ grid-template-columns:1fr; }
  .hero-stats{ flex-wrap:wrap; gap:24px; }
}

:focus-visible{ outline:2px solid var(--teal); outline-offset:3px; }

/* =========================================================
   New sections: tagline banner, stat strip, why-us, process,
   values grid, timeline, service extras, back-to-top
   ========================================================= */
.tagline-banner{
  background:var(--bg-panel); border-bottom:1px solid var(--border);
  padding:12px 0; text-align:center;
}
.tagline-banner p{
  margin:0; font-size:0.9rem; color:var(--muted); letter-spacing:.02em;
}
.tagline-banner strong{ color:var(--teal); font-weight:600; }

.stat-strip{
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
  background:var(--bg-panel); border:1px solid var(--border); border-radius:var(--radius);
  padding:40px 20px; text-align:center;
}
.stat-strip div strong{
  font-family:var(--font-display); font-size:2.6rem; color:var(--teal); display:block;
}
.stat-strip div span{ color:var(--muted); font-size:0.9rem; }

.why-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.why-card{
  position:relative; background:var(--bg-panel); border:1px solid var(--border); border-radius:var(--radius);
  padding:28px 24px; overflow:hidden;
  transition:transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease;
}
.why-card::before{
  content:''; position:absolute; inset:0; border-radius:var(--radius); padding:1px;
  background:linear-gradient(135deg, var(--teal), transparent 60%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:0; transition:opacity .35s ease; pointer-events:none;
}
.why-card:hover{ transform:translateY(-8px) scale(1.02); border-color:transparent; box-shadow:0 24px 44px rgba(0,0,0,0.28); }
.why-card:hover::before{ opacity:1; }
.why-card .ic{
  width:48px; height:48px; border-radius:12px; background:rgba(24,192,196,0.12); color:var(--teal);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
  transition:transform .4s cubic-bezier(.34,1.56,.64,1), background .3s ease;
}
.why-card:hover .ic{ transform:scale(1.15) rotate(8deg); background:rgba(24,192,196,0.22); }
.why-card h4{ font-size:1.05rem; margin-bottom:8px; transition:color .3s ease; }
.why-card:hover h4{ color:var(--teal); }
.why-card p{ color:var(--muted); font-size:0.9rem; margin:0; }

.process-steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; }
.process-step{ position:relative; padding:0 20px 0 0; }
.process-step .pnum{
  font-family:var(--font-display); font-size:2.2rem; color:var(--teal); opacity:0.5; display:block; margin-bottom:14px;
}
.process-step h4{ font-size:1.05rem; margin-bottom:8px; }
.process-step p{ color:var(--muted); font-size:0.88rem; margin:0; }
.process-step:not(:last-child)::after{
  content:''; position:absolute; top:14px; right:0; width:60%; height:1px;
  background:repeating-linear-gradient(90deg,var(--border-2) 0 6px, transparent 6px 12px);
}

.values-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.value-card{ border:1px solid var(--border); border-radius:var(--radius); padding:28px; background:var(--bg-panel); }
.value-card{ display:flex; flex-direction:column; gap:14px; transition:transform .25s ease, border-color .25s ease; }
.value-card:hover{ transform:translateY(-6px); border-color:var(--border-2); }
.value-card .ic{
  width:48px; height:48px; border-radius:12px; background:rgba(24,192,196,0.12); color:var(--teal);
  display:flex; align-items:center; justify-content:center;
}
.value-card h4{ font-size:1.1rem; margin:0; color:var(--white); }
.value-card p{ color:var(--muted); font-size:0.92rem; margin:0; }

.mv-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.mv-card{
  border:1px solid var(--border-2); border-radius:var(--radius); padding:32px; background:var(--bg-panel);
  border-top:3px solid var(--teal); position:relative;
}
.mv-card .ic{
  width:52px; height:52px; border-radius:14px; background:rgba(24,192,196,0.12); color:var(--teal);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px;
}
.mv-card h3{ font-size:1.3rem; margin-bottom:12px; }
.mv-card p{ color:var(--muted); margin:0; }

.about-hero-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:50px; align-items:center; }
.about-hero-grid .eyebrow{ color:var(--teal); font-weight:600; font-size:0.9rem; margin-bottom:16px; display:block; }
.about-hero-grid h1{ font-size:clamp(2.4rem,4.6vw,3.6rem); margin-bottom:20px; }
.about-stats-inline{ display:flex; gap:36px; margin-top:32px; flex-wrap:wrap; }
.about-stats-inline div strong{ font-family:var(--font-display); font-size:2rem; color:var(--teal); display:block; }
.about-stats-inline div span{ color:var(--muted); font-size:0.85rem; }

.timeline{ border-left:2px solid var(--border-2); padding-left:32px; display:flex; flex-direction:column; gap:36px; }
.timeline-item{ position:relative; }
.timeline-item::before{
  content:''; position:absolute; left:-40px; top:4px; width:14px; height:14px; border-radius:50%;
  background:var(--teal); border:3px solid var(--bg);
}
.timeline-item h4{ font-family:var(--font-display); color:var(--teal); font-size:0.95rem; margin-bottom:6px; }
.timeline-item p{ color:var(--muted); margin:0; font-size:0.92rem; }

.service-feature-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:24px; }
.service-feature{ display:flex; gap:12px; align-items:flex-start; }
.service-feature .tick{
  width:24px; height:24px; border-radius:50%; background:rgba(24,192,196,0.12); color:var(--teal);
  display:flex; align-items:center; justify-content:center; flex:none; margin-top:2px;
}
.service-feature p{ margin:0; color:var(--muted); font-size:0.92rem; }

.image-collage{ position:relative; }
.image-collage img{ border-radius:var(--radius); }
.image-collage .float-card{
  position:absolute; bottom:-24px; left:-24px; background:var(--bg-panel); border:1px solid var(--border-2);
  border-radius:12px; padding:16px 20px; box-shadow:0 20px 40px rgba(0,0,0,0.3);
}
[data-theme="light"] .image-collage .float-card{ box-shadow:0 20px 40px rgba(0,0,0,0.1); }
.image-collage .float-card strong{ display:block; font-family:var(--font-display); font-size:1.4rem; color:var(--teal); }
.image-collage .float-card span{ color:var(--muted); font-size:0.8rem; }

.back-to-top{
  position:fixed; bottom:26px; left:26px; z-index:390;
  width:46px; height:46px; border-radius:50%; background:var(--bg-panel); border:1px solid var(--border-2);
  color:var(--white); display:none; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(0,0,0,0.3);
}
.back-to-top.show{ display:flex; }

@media(max-width:980px){
  .stat-strip{ grid-template-columns:repeat(2,1fr); }
  .why-grid{ grid-template-columns:repeat(2,1fr); }
  .process-steps{ grid-template-columns:1fr; gap:28px; }
  .process-step::after{ display:none; }
  .values-grid{ grid-template-columns:1fr; }
  .mv-grid{ grid-template-columns:1fr; }
  .about-hero-grid{ grid-template-columns:1fr; }
  .about-stats-inline{ gap:24px; }
  .service-feature-grid{ grid-template-columns:1fr; }
  .image-collage .float-card{ position:static; margin-top:16px; }
}