/* ============================================================
   Theme variables — change brand colors here
   ============================================================ */
:root {
  --green: #3DB246;
  --green-dark: #2e8a34;
  --green-alt: #12b76a;
  --dark: #101418;
  --dark-2: #171c22;
  --dark-card: #1d232a;
  --text: #1a1a1a;
  --text-muted: #555;
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --bg-sidebar: #f2f3f5;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0,0,0,.08);
  --font: "Segoe UI", Tahoma, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17.5px; }
html, body { overflow-x: hidden; overflow-x: clip; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 16px; }
.section-title.center { text-align: center; }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 720px; margin: 0 auto 48px; }
.section-eyebrow {
  display: inline-block; color: var(--green); font-weight: 700; font-size: .9rem;
  border: 1px solid rgba(61,178,70,.4); padding: 4px 16px; border-radius: 999px; margin-bottom: 14px;
}
.center-eyebrow { display: block; width: fit-content; margin: 0 auto 14px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 10px; font-weight: 700;
  border: none; cursor: pointer; transition: all .3s ease; font-size: 1rem;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(61,178,70,.35); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--green-alt); color: var(--green-alt); background: transparent; }
.btn-outline:hover { background: var(--green-alt); color: #fff; }
.btn-white { background: #fff; color: var(--green-dark); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ============ Topbar (dark, green diagonal block on the left) ============ */
.topbar { background: var(--dark); color: #fff; font-size: .85rem; }
.topbar-inner { display: flex; direction: ltr; justify-content: space-between; align-items: stretch; height: 40px; }
.topbar-contact {
  position: relative;
  display: flex; align-items: center; gap: 22px; flex-wrap: nowrap;
  background: linear-gradient(90deg, var(--green), var(--green-alt));
  padding-left: 20px; padding-right: 24px;
  margin-left: -20px; /* bleed past container padding */
}
.topbar-contact::before { /* bleed the green to the viewport edge */
  content: ""; position: absolute; top: 0; bottom: 0; right: 100%;
  width: 50vw; background: inherit;
}
.topbar-contact::after { /* diagonal right edge */
  content: ""; position: absolute; top: 0; bottom: 0; left: 100%;
  width: 24px; background: linear-gradient(90deg, var(--green-alt), var(--green-alt));
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.topbar-item { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.topbar-item svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.topbar-social { display: flex; gap: 14px; align-items: center; }
.topbar-social a { display: inline-flex; opacity: .95; transition: transform .2s, opacity .2s; }
.topbar-social a:hover { opacity: 1; transform: scale(1.1); }
.topbar-social svg { width: 20px; height: 20px; }

/* ============ Header (dark) ============ */
.sticky-wrap { position: sticky; top: 0; z-index: 100; }
.site-header {
  background: var(--dark);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { font-size: 1.35rem; font-weight: 800; color: #fff; white-space: nowrap; }
.logo img { height: 54px; width: auto; display: block; }
.logo .accent { color: var(--green); }
.main-nav { display: flex; gap: 26px; }
.main-nav a { font-weight: 600; color: #e5e9ee; transition: color .2s; font-size: .95rem; }
.main-nav a:hover, .main-nav a.active { color: var(--green); }
.header-cta { padding: 11px 30px; font-size: 1rem; border-radius: 999px; white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }
.mobile-header-icons { display: none; align-items: center; gap: 14px; margin-inline-start: auto; }
.mobile-header-icons a { display: inline-flex; }
.mobile-header-icons svg { width: 26px; height: 26px; }

/* ============ Hero slider ============ */
.hero { position: relative; height: 500px; overflow: hidden; }
.slider { position: relative; height: 100%; }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease; display: flex; align-items: center;
  background-color: var(--dark-2); /* fallback while image loads / if missing */
}
.slide.active { opacity: 1; z-index: 1; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(0,0,0,.65), rgba(0,0,0,.3)); }
.slide-content { position: relative; z-index: 2; max-width: 640px; color: #fff; }
.slide-content h1 { font-size: clamp(1.5rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 16px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.slide-content p { font-size: clamp(.95rem, 2vw, 1.15rem); color: rgba(255,255,255,.92); margin-bottom: 24px; }
.slider-pagination { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.slider-pagination .dot { width: 12px; height: 12px; border-radius: 6px; background: rgba(255,255,255,.5); cursor: pointer; transition: all .3s; }
.slider-pagination .dot.active { width: 32px; background: #fff; }

.slider-arrow {
  position: absolute; bottom: 24px; z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.35); color: #fff; font-size: 1.6rem;
  transition: background .3s; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.25);
}
.slider-arrow:hover { background: rgba(0,0,0,.6); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { left: 76px; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px 200px; align-items: center; }
.about-text { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 18px; }
.about-side { display: flex; align-items: center; }
.about-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
/* Desktop/laptop only: push the button stack to the column's left edge so
   the pills' left edges line up under the header CTA */
@media (min-width: 901px) {
  .about-side { direction: ltr; }
  .about-actions { align-items: flex-end; direction: rtl; }
}
@media (max-width: 900px) {
  .about-side { justify-content: center; }
  .about-actions { align-items: center; }
}
.about-more { border-radius: 999px; padding: 10px 26px 10px 16px; gap: 6px; font-size: .95rem; }
.about-more .arr { font-size: 1.1em; line-height: 1; transition: transform .2s; }
.about-more:hover .arr { transform: translateX(-4px); }
.about-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #dcfae6; color: #067647; font-weight: 700;
  padding: 10px 22px; border-radius: 999px; font-size: .95rem;
}

/* ============ Features: 2x2 cards + hover gallery ============ */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #c9ced4; border-radius: var(--radius); overflow: hidden; align-self: start; }
.about-card { padding: 26px 22px; border: 1px solid #c9ced4; margin: -0.5px; background: #f6f7f8; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.about-card-ico {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--green); font-size: 1.15rem;
}
.about-card-ico svg { width: 22px; height: 22px; display: block; }
.about-card h3 { font-size: 1.02rem; margin: 0; }
.about-card p { color: var(--text-muted); font-size: .88rem; flex-basis: 100%; margin-top: 4px; }

/* Gallery: three vertical strips; hover expands one full-size with thumb picker bottom-left */
.xgal { position: relative; display: flex; gap: 10px; min-height: 420px; }
.xgal > img {
  flex: 1; width: 0; min-width: 0; height: auto; object-fit: cover;
  border-radius: var(--radius); cursor: pointer;
  transition: opacity .3s ease; background: var(--bg-soft);
}
.xgal.expanded > img { flex: 0 0 0; opacity: 0; pointer-events: none; }
.xgal.expanded > img.on {
  position: absolute; inset: 0; width: 100%; height: 100%;
  flex: none; opacity: 1; z-index: 2; pointer-events: none; cursor: default;
}
.xgal-thumbs { position: absolute; bottom: 14px; left: 14px; z-index: 3; display: none; gap: 8px; }
.xgal.expanded .xgal-thumbs { display: flex; }
.xgal-thumbs img {
  width: 82px; height: 62px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid rgba(255,255,255,.7); opacity: .85; transition: .2s; background: var(--bg-soft);
}
.xgal-thumbs img:hover, .xgal-thumbs img.active { border-color: var(--green); opacity: 1; }

/* Touch / small screens: strips only, stacked under the cards */
@media (hover: none), (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr; }
  .xgal { order: 2; min-height: 0; height: 380px; }
  .xgal > img { cursor: default; }
  .xgal-thumbs { display: none !important; }
}
@media (max-width: 640px) {
  .xgal { height: 240px; }
  .about-cards { grid-template-columns: 1fr; }
}
.collage-badge {
  position: absolute; bottom: -14px; right: -10px; background: var(--green); color: #fff;
  border-radius: var(--radius); padding: 14px 20px; text-align: center; box-shadow: var(--shadow);
}
.collage-badge span { display: block; font-size: 1.6rem; font-weight: 800; }
.collage-badge small { font-size: .8rem; }

/* ============ Services ============ */
.services { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.08); transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.service-card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark-card); }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-badge {
  position: absolute; top: 12px; right: 12px; background: #f5a623; color: #1a1a1a;
  font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 6px;
}
.service-card .card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.15rem; line-height: 1.6; margin-bottom: 8px; color: var(--dark); }
.service-card p {
  font-size: .9rem; color: var(--text-muted); margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.service-card-more { margin-top: auto; color: var(--green); font-weight: 700; font-size: .95rem; }
.service-card:hover .service-card-more { color: var(--green-dark); }

/* ============ Dark sections ============ */
.dark { background: var(--dark); color: #eef1f4; }
.dark .section-title { color: #fff; }
.dark-head { margin-bottom: 40px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--dark-card); border: 1px solid #262d35; cursor: pointer;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 26, .7);
  box-shadow: 0 0 0 1px rgba(255, 122, 26, .4), 0 14px 42px rgba(255, 94, 0, .32);
}
.project-card:focus-visible { outline: 2px solid #ff7a1a; outline-offset: 2px; }
.project-card-media { position: relative; height: 190px; overflow: hidden; flex: none; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-card-media img { transform: scale(1.05); }
.project-card .cat {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: var(--green); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.project-card-body { padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-card-body h3 { color: #fff; font-size: 1.05rem; line-height: 1.5; }
.project-card-body > p {
  color: #aeb6bf; font-size: .85rem; line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pfeats { list-style: none; padding: 0; margin: 0; }
.pfeats li { display: flex; align-items: center; gap: 9px; color: #cfd4da; font-size: .82rem; line-height: 1.5; }
.pfeats .p-check { color: var(--green-alt); width: 17px; height: 17px; flex: none; }
.project-card-btn {
  margin-top: auto; align-self: center;
  background: #1a2128; color: #fff; border: 1px solid #2a3138;
  border-radius: 999px; padding: 8px 26px; font-size: .85rem; font-weight: 600;
  transition: border-color .25s;
}
.project-card:hover .project-card-btn { border-color: rgba(255, 122, 26, .7); }

/* ---------- Project detail modal ---------- */
.project-modal {
  position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
}
.project-modal.open { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
.project-modal-box {
  background: var(--dark-card); border: 1px solid #262d35; border-radius: var(--radius);
  width: min(580px, 100%); max-height: 90vh; overflow-y: auto; position: relative;
  transform: translateY(16px); transition: transform .25s;
}
.project-modal.open .project-modal-box { transform: translateY(0); }
.project-modal-box:focus { outline: none; }
.project-modal-close {
  position: absolute; top: 12px; left: 12px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.5); color: #fff; font-size: 1.35rem; line-height: 1;
  transition: background .2s;
}
.project-modal-close:hover { background: rgba(0,0,0,.75); }
.project-modal-media { position: relative; height: 270px; background: var(--dark); }
.project-modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-modal-media .cat {
  position: absolute; bottom: 14px; right: 14px;
  background: var(--green); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
}
.project-modal-body { padding: 24px 24px 28px; }
.project-modal-body h3 { color: #fff; font-size: 1.3rem; text-align: center; line-height: 1.5; }
.project-modal-desc { color: #aeb6bf; font-size: .9rem; line-height: 1.9; margin: 12px 0 20px; }
.project-modal-body h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.project-modal .pfeats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.project-modal .pfeats li {
  background: #1a2128; border: 1px solid #262d35; border-radius: 10px;
  padding: 10px 12px; font-size: .8rem; align-items: flex-start;
}
.project-modal .pfeats .p-check { margin-top: 1px; }
.project-modal-cta { display: table; margin: 0 auto; padding: 12px 34px; }
@media (max-width: 560px) {
  .project-modal .pfeats { grid-template-columns: 1fr; }
  .project-modal-media { height: 210px; }
}

.project-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.project-filters button {
  background: var(--dark-card); color: #cfd4da; border: 1px solid #2a3138;
  padding: 8px 20px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem;
  transition: all .25s;
}
.project-filters button:hover, .project-filters button.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ============ Testimonials ============ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.testimonial-card { background: var(--dark-card); border: 1px solid #262d35; border-radius: var(--radius); padding: 28px; }
.testimonial-card .stars { color: #f5a623; font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { color: #b8bec5; margin-bottom: 16px; font-size: .95rem; }
.testimonial-card .name { font-weight: 700; color: #fff; }

/* ============ Stats band ============ */
.stats-band { background: var(--bg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
.stat { text-align: center; padding: 24px 12px; }
.stat-num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--green); }
.stat-label { color: var(--text-muted); font-size: .95rem; }

/* ============ CTA banner ============ */
.cta-banner { background: linear-gradient(120deg, var(--green-dark), var(--green-alt)); color: #fff; padding: 64px 0; text-align: center; }
.cta-banner h2 { font-size: 2rem; margin-bottom: 8px; }
.cta-banner p { margin-bottom: 24px; opacity: .9; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-top: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  padding: 14px 16px; border: 1px solid #ddd; border-radius: 10px;
  font-family: inherit; font-size: 1rem; transition: border-color .2s;
}
.contact-form input[type="tel"] { direction: ltr; text-align: right; }
.contact-form input[type="tel"]::placeholder { direction: rtl; text-align: right; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); }
.form-note { font-size: .85rem; color: var(--text-muted); }
.contact-info {
  background: var(--bg-sidebar); border-radius: var(--radius); padding: 28px; height: fit-content;
  border-inline-start: 1px solid #e0e2e6;
  padding-inline-start: 40px;
}
.contact-info-title { font-size: 1.15rem; color: var(--green-dark); margin-bottom: 14px; }
.info-item { padding: 10px 0; border-bottom: 1px solid #e4e6ea; }
.info-item:last-child { border-bottom: none; }
.info-item strong { color: var(--green-dark); margin-left: 6px; }
.info-item a { color: inherit; display: inline-block; }
.info-item a:hover { text-decoration: underline; }

.contact-about { padding-top: 0; }
.contact-about .container { border-top: 1px solid #e4e6ea; padding-top: 56px; }

/* ============ Contact modal ============ */
.contact-modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
}
.contact-modal.open { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
.contact-modal-box {
  background: #fff; border-radius: var(--radius);
  width: 100%; max-width: 480px; padding: 32px 28px;
  position: relative;
  transform: translateY(16px); transition: transform .25s;
  max-height: 90vh; max-height: 90dvh; overflow-y: auto;
}
.contact-modal.open .contact-modal-box { transform: translateY(0); }
.contact-modal-close {
  position: absolute; top: 12px; inset-inline-end: 14px;
  background: none; border: none; font-size: 1.8rem; line-height: 1;
  color: var(--text-muted); cursor: pointer;
}
.contact-modal-close:hover { color: var(--dark); }
.contact-modal-box:focus { outline: none; }
.contact-modal-title { font-size: 1.4rem; margin: 0 0 6px; }
.contact-modal-sub { font-size: .9rem; color: var(--text-muted); margin-bottom: 18px; }

/* ============ Footer ============ */
.site-footer { background: var(--dark); color: #cfd4da; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: 56px 20px 36px; }
.footer-logo { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.footer-tagline { opacity: .7; margin-bottom: 18px; }
.footer-heading { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.footer-links a:hover { color: var(--green); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { opacity: .8; transition: opacity .2s; display: inline-flex; }
.footer-social svg { width: 24px; height: 24px; }
.footer-social a:hover { opacity: 1; }
.social-pending { cursor: default; }
.footer-map-wrap { padding: 0 20px 40px; }
.footer-map { border-radius: 10px; overflow: hidden; background: var(--dark-card); }
.footer-map iframe { width: 100%; height: clamp(220px, 32vw, 400px); border: 0; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 18px; font-size: .9rem; opacity: .7; }

/* ============ Floating contact buttons ============ */
.float-stack {
  position: fixed; bottom: 24px; left: 24px; z-index: 200;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  position: relative;
  width: 52px; height: 52px; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: transform .3s;
}
.float-btn:hover { transform: scale(1.1); }
.float-call { background: #0078FF; }
.float-wa { background: #25D366; }
.float-btn .ripple {
  position: absolute; inset: 0; border-radius: 50%;
  background: inherit;
  animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
  opacity: .35; z-index: -1;
}
@keyframes ping {
  0%   { transform: scale(1);    opacity: .35; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-inline-start: none; padding-inline: 28px; border-top: 1px solid #e0e2e6; }
}
/* ============ Tablet: hamburger menu, CTA still visible ============ */
@media (max-width: 900px) {
  /* Topbar: black background, phone number only, centered */
  .topbar { background: var(--dark); }
  .topbar-inner { justify-content: center; height: 44px; }
  .topbar-hide-mobile { display: none; }
  .topbar-contact { gap: 0; background: none; padding: 0; margin: 0; }
  .topbar-contact::before, .topbar-contact::after { display: none; }

  .main-nav {
    position: fixed; top: 112px; right: 0; left: 0;
    background: var(--dark-2); flex-direction: column; padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,.35);
    transform: translateY(-150%); transition: transform .3s;
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .mobile-header-icons { display: flex; }
  /* Left cluster: CTA, then icons, then hamburger at the far edge */
  .header-cta { order: 1; margin-inline-start: auto; }
  .mobile-header-icons { order: 2; margin-inline-start: 0; }
  .nav-toggle { order: 3; margin-inline-end: 24px; }
}

/* ============ Phone ============ */
@media (max-width: 640px) {
  .main-nav { top: 116px; }
  .header-inner { gap: 10px; height: 64px; }
  .logo img { height: 42px; }
  .header-cta { padding: 8px 18px; font-size: .85rem; }
  .mobile-header-icons { gap: 10px; }
  .nav-toggle { margin-inline-end: 12px; }
  .hero { height: 420px; }
  .slider-arrow { display: none; }
  .services-grid, .projects-grid, .testimonials-grid, .stats-grid, .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .mobile-header-icons { display: none; }
}
@media (max-width: 480px) {
  .logo img { height: 38px; }
  .header-inner { gap: 8px; }
  .header-inner.container { padding: 0 12px; }
  .header-cta { padding: 7px 16px; font-size: .85rem; }
  .nav-toggle { margin-inline-end: 6px; }
}
.nav-cta { display: none; }
@media (max-width: 400px) {
  .header-cta { display: none; }
  .nav-cta { display: inline-flex; margin-top: 12px; }
  .logo img { height: 40px; }
}

/* ============ About page ============ */
.about-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-page-imgs { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-page-imgs img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--bg-soft);
}
.about-page-imgs img:nth-child(even) { transform: translateY(-18px); }
.about-page-imgs img:nth-child(n+3) { margin-top: 24px; }
.about-page-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #e4e6ea; }
.about-page-feat { display: flex; gap: 12px; align-items: flex-start; }
.about-page-feat-ico {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: #dcfae6; color: var(--green-dark); display: inline-flex; align-items: center; justify-content: center;
}
.about-page-feat-ico svg { width: 22px; height: 22px; }
.about-page-feat h3 { font-size: 1rem; margin-bottom: 4px; }
.about-page-feat p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 900px) {
  .about-page-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-page-imgs { order: 0; }
}
@media (max-width: 480px) {
  .about-page-feats { grid-template-columns: 1fr; }
  .about-page-imgs { gap: 12px; }
}
.about-quality { padding-top: 0; }
.about-quality .section-title { max-width: 760px; margin-inline: auto; text-align: center; }
.about-quality-text { max-width: 960px; margin-inline: auto; text-align: center; }

/* ============ Service detail pages ============ */
.svc-hero {
  position: relative; min-height: 280px; background-size: cover; background-position: center;
  background-color: var(--dark-2); display: flex; align-items: flex-end; color: #fff;
}
.svc-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.35)); }
.svc-hero::after { content: ""; position: absolute; bottom: 0; right: 0; width: 120px; height: 4px; background: var(--green); }
.svc-hero-inner { position: relative; z-index: 1; padding-top: 28px; padding-bottom: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.svc-hero h1 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); font-weight: 800; line-height: 1.5; max-width: 820px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.svc-back { font-size: .9rem; opacity: .9; }
.svc-back:hover { opacity: 1; text-decoration: underline; }
.svc-badge { background: #f5a623; color: #1a1a1a; font-weight: 700; font-size: .8rem; padding: 3px 14px; border-radius: 6px; }
.svc-main { padding: 56px 0 72px; }
.svc-narrow { max-width: 820px; }
.svc-lead {
  border-inline-start: 5px solid var(--green); background: #eef4f0; border-radius: var(--radius);
  padding: 22px 26px; font-size: 1.15rem; font-style: italic; line-height: 2; color: #26332a; margin-bottom: 36px;
}
.svc-article h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.svc-article h3 { font-size: 1.05rem; margin: 18px 0 4px; }
.svc-article p { color: var(--text-muted); margin-bottom: 12px; }
.svc-article ul, .svc-article ol { color: var(--text-muted); padding-inline-start: 22px; margin-bottom: 12px; }
.svc-article li { margin-bottom: 8px; }
.svc-article li strong { color: var(--text); }
.svc-related { margin-top: 48px; padding-top: 24px; border-top: 1px solid #e4e6ea; }
.svc-related h3 { font-size: 1rem; margin-bottom: 12px; }
.svc-related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.svc-related a { display: inline-block; padding: 6px 16px; border: 1px solid #d5d9de; border-radius: 999px; font-size: .9rem; color: var(--text-muted); transition: .2s; }
.svc-related a:hover { border-color: var(--green); color: var(--green-dark); }
@media (max-width: 640px) {
  .svc-hero { min-height: 220px; }
  .svc-lead { padding: 16px 18px; font-size: 1rem; }
}

/* ============ Services page: your idea ============ */
.idea-sec { background: var(--bg-soft); }
.idea-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.idea-card { background: #fff; border-radius: var(--radius); padding: 24px 22px; box-shadow: 0 4px 18px rgba(0,0,0,.05); border-top: 3px solid var(--green); }
.idea-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.idea-card p { font-size: .9rem; color: var(--text-muted); }
.idea-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; }
@media (max-width: 1000px) { .idea-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .idea-grid { grid-template-columns: 1fr; } }

/* ============ Dark page intro (projects page) ============ */
.page-hero-dark { background: #0a0d10; color: #fff; text-align: center; padding: 56px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.page-hero-eyebrow { display: block; color: var(--green); font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.page-hero-title { font-size: clamp(1.7rem, 4.5vw, 2.8rem); font-weight: 800; line-height: 1.4; margin-bottom: 14px; }
.page-hero-text { color: #b8bec5; max-width: 760px; margin: 0 auto; font-size: .95rem; }
.page-hero-dark + .projects { padding-top: 40px; }
.page-hero-dark + .projects .dark-head { margin-bottom: 32px; }
.page-hero-dark + .projects .project-filters { justify-content: center; margin-top: 0; }

/* ============ Legal pages ============ */
.legal-inner { max-width: 860px; margin: 0 auto; }
.legal h2 { color: var(--green-dark); font-size: 1.15rem; margin: 28px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-muted); line-height: 1.9; font-size: .95rem; }
.legal ul { padding-inline-start: 22px; margin: 8px 0 0; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--green); font-weight: 600; }
