/* ===== AquaKem — Home (Index) | Cooling Water Treatment Style ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Cooling-style ISO palette */
    --bg:           #ffffff;
    --fg:           #333333;
    --surface:      #f0f7ff;
    --surface-2:    #e8f4ff;
    --line:         rgba(0, 123, 255, 0.15);
    --muted:        #666666;
    --brand:        #007BFF;
    --brand-deep:   #0056c7;
    --brand-bright: #3399FF;
    --accent:       #FFC000;
    --accent-deep:  #e6ac00;
    --max:          1320px;
    --display:      Arial, Helvetica, sans-serif;
    --sans:         "Inter", system-ui, sans-serif;
    --mono:         "JetBrains Mono", ui-monospace, monospace;

    /* Legacy aliases kept so JS / inline styles still work */
    --blue-primary:    var(--brand);
    --blue-secondary:  var(--brand-bright);
    --color-gold:      var(--accent);
    --color-light-bg:  var(--bg);
    --color-white:     #ffffff;
    --color-text-dark: var(--fg);
    --color-text-grey: var(--muted);
}

/* ===== RESET & BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
ul, ol { list-style: none; }
em { font-style: normal; color: var(--accent); }

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.08;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

/* ===== Eyebrow / Divider ===== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}
.divider-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: var(--accent);
    vertical-align: middle;
    margin-right: 12px;
}

/* ===== Section base ===== */
.section { padding: 6rem 0; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }
.section.alt { background: var(--surface); }
.section-head { margin-bottom: 3.5rem; text-align: left; }
.section-head h2 { color: var(--brand-deep); max-width: 42rem; }

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex; align-items: center; gap: .6rem;
    background: var(--accent); color: #ffffff;
    padding: .75rem 1.4rem; border-radius: 50px; font-weight: 500;
    font-size: .9rem;
    border: none; cursor: pointer;
    transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* ===== 1. HERO ===== */
.hero.split-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 60%, #003f9e 100%);
    padding: 0;
    min-height: auto;
    margin-top: 65px;
    display: flex;
    align-items: center;
}

.hero-slider {
    position: relative;
    width: 100%;
    min-height:900px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1s ease;
    display: flex;
    align-items: center;
}
.slide.active { opacity: 1; transform: translateX(0); }
.slide.exit-left { transform: translateX(-100%); opacity: 0; }

.hero-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    min-height: auto;
    padding: 7rem 1.5rem 4rem;
}

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 7fr 5fr;
        gap: 4rem;
        padding: 8rem 2.5rem 6rem;
    }

    .hero-slider {
    position: relative;
    width: 100%;
    min-height:100vh;
    overflow: hidden;
    }
}

.hero-text { display: flex; flex-direction: column; }
.hero-text h3 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: rgba(255,255,255,.85);
    letter-spacing: .02em;
}
.hero-text h1 {
    color: #fff;
    margin: .5rem 0 1.25rem;
}
.hero-text h1 em { color: var(--accent); font-family: var(--display); }
.hero-text h2 {
    font-family: var(--sans);
    font-size: 1.125rem;
    font-weight: 400;
    color: rgba(255,255,255,.85);
    line-height: 1.7;
    max-width: 36rem;
    letter-spacing: 0;
}
.hero-text p {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: rgba(255,255,255,.85);
    line-height: 1.7;
    max-width: 36rem;
}

.hero-image {
    position: relative;
    min-height: 460px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.45);
    background-color: rgba(255,255,255,0.05);
}
.hero-image-tag {
    position: absolute;
    left: 16px; bottom: 16px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--brand-deep);
    background: rgba(255,255,255,0.92);
    padding: 6px 10px;
    border-radius: 4px;
    backdrop-filter: blur(6px);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 1rem;
    pointer-events: none;
}
.slider-controls button {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background .25s, border-color .25s;
    pointer-events: auto;
}
.slider-controls button:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Slider Dots */
.dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dots button {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background .25s, transform .25s;
}
.dots button.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* ===== 2. ABOUT ===== */
.about-section { background: var(--bg); color: var(--fg); text-align: left; }
.about-title h2 {
    color: var(--brand-deep);
    margin-top: .25rem;
}

.about-container.overview {
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .about-container.overview {
        grid-template-columns: 6fr 5fr;
        gap: 4rem;
    }
}

.about-container .copy p {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    max-width: 38rem;
    text-align: left;
}
.about-container .copy b { color: var(--brand-deep); font-weight: 600; }

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    align-items: start;
}

.about-images img {
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* الصورة الأولى */
.about-images img:first-child {
    width: 200px;
    height: 400px;
}

/* الصورة الثانية */
.about-images img:last-child {
    width: 200px;
    height: 400px;
    margin-top: 60px;
}
.about-images .img-wrap {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0,123,255,.08);
}
.about-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 0;
}

/* ===== 3. ABOUT INLINE STATS (no boxes, no borders) ===== */
.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem 4rem;
    margin-top: 2.5rem;
    padding: 0;
    background: none;
    border: none;
}
.about-stat {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.about-stat-value {
    font-family: var(--display);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1;
    color: var(--brand-deep);
    letter-spacing: -0.03em;
}
.about-stat-label {
    font-family: var(--sans);
    font-size: .95rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .02em;
}

/* ===== ROI SECTION - Isolated from components.js ===== */

.aq-roi-section {
  --aq-roi-bg: #ffffff;
  --aq-roi-fg: #333333;
  --aq-roi-surface: #f0f7ff;
  --aq-roi-line: rgba(0, 123, 255, 0.15);
  --aq-roi-muted: #666666;
  --aq-roi-brand: #007BFF;
  --aq-roi-brand-deep: #0056c7;
  --aq-roi-accent: #FFC000;
  --aq-roi-sans: "Inter", system-ui, sans-serif;
  --aq-roi-mono: "JetBrains Mono", ui-monospace, monospace;
  --aq-roi-display: Arial, Helvetica, sans-serif;

  padding: 5rem 1.5rem;
  background: var(--aq-roi-bg);
  color: var(--aq-roi-fg);
  font-family: var(--aq-roi-sans);
  position: relative;
  z-index: 1;
}

.aq-roi-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

/* Sidebar */
.aq-roi-sidebar {
  background: linear-gradient(180deg, var(--aq-roi-brand), var(--aq-roi-brand-deep));
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aq-roi-mode-btn {
  border: none;
  border-radius: 8px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  font: 500 13px var(--aq-roi-sans);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  text-align: center;
}

.aq-roi-mode-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.aq-roi-mode-btn.is-active {
  color: var(--aq-roi-brand-deep);
  background: var(--aq-roi-accent);
  font-weight: 600;
}

/* Frame */
.aq-roi-frame {
  background: #ffffff;
  border: 1px solid var(--aq-roi-line);
  border-top: 3px solid var(--aq-roi-accent);
  border-radius: 18px;
  padding: 3rem 2.5rem 6.5rem;
  box-shadow: 0 8px 30px rgba(0, 123, 255, 0.08);
  text-align: center;
  position: relative;
  min-height: 420px;

  /* مهم جداً حتى لا يتم قص القوائم */
  overflow: visible;
}

.aq-roi-title {
  font-family: var(--aq-roi-mono);
  color: var(--aq-roi-muted);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.aq-roi-big-number {
  font-family: var(--aq-roi-display);
  color: var(--aq-roi-brand-deep);
  margin: 0.5rem 0 1.25rem;
  font-size: clamp(32px, 6vw, 64px);
  letter-spacing: 0;
  line-height: 1.08;
  word-break: break-word;
}

.aq-roi-unit {
  color: var(--aq-roi-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Controls */
.aq-roi-controls {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  justify-content: center;

  /* أعلى من الهيدر والمكونات الأخرى */
  z-index: 9999;
}

.aq-roi-controls.is-hidden {
  display: none;
}

.aq-roi-select {
  position: relative;
  display: inline-block;
}

.aq-roi-select-btn {
  border: 1px solid var(--aq-roi-line);
  color: var(--aq-roi-brand-deep);
  background: #ffffff;
  padding: 10px 28px;
  border-radius: 50px;
  font: 500 13px var(--aq-roi-sans);
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 140px;
}

.aq-roi-select-btn:hover {
  background: var(--aq-roi-accent);
  color: #ffffff;
  border-color: var(--aq-roi-accent);
}

/* القائمة مخفية بدون استعمال open/closed */
.aq-roi-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid var(--aq-roi-line);
  border-radius: 12px;
  min-width: 160px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.12);
  z-index: 10000;
  overflow: hidden;
}

/* الفتح يتم عبر data attribute وليس class open */
.aq-roi-select[data-aq-roi-expanded="true"] .aq-roi-menu {
  display: flex;
  flex-direction: column;
}

.aq-roi-menu button {
  width: 100%;
  padding: 11px 16px;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid var(--aq-roi-line);
  color: var(--aq-roi-brand-deep);
  font: 500 13px var(--aq-roi-sans);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.aq-roi-menu button:last-child {
  border-bottom: none;
}

.aq-roi-menu button:hover {
  background: var(--aq-roi-surface);
  color: var(--aq-roi-brand);
}

/* Responsive */
@media (max-width: 900px) {
  .aq-roi-container {
    grid-template-columns: 1fr;
  }

  .aq-roi-sidebar {
    flex-direction: row;
    padding: 1rem;
  }

  .aq-roi-mode-btn {
    flex: 1;
  }
}

/* ===== 5. SOLUTIONS ===== */
.services-section { background: var(--bg); color: var(--fg); }
.services-title h2 { color: var(--brand-deep); margin-top: .25rem; }

.carousel-wrapper { position: relative; }

.services-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-items: stretch;
}

.services-horizontal-card.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.06);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.services-horizontal-card.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.14);
    border-top-color: var(--accent);
}

.services-card-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.services-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: .75rem;
    flex: 1;
}

.services-card-content .tag {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .22em;
    color: var(--accent-deep);
    background: var(--surface);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.services-card-title {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--brand-deep);
    letter-spacing: -0.01em;
    margin: 0;
}

.services-card-text {
    font-family: var(--sans);
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.services-card-link {
    margin-top: .5rem;
}

/* ===== 6. CLIENTS ===== */
.referenc-section { background: var(--surface); }
.referenc-title h2 { color: var(--brand-deep); margin-top: .25rem; }

.logo-slider {
    overflow: hidden;
    width: 100%;
    padding: 1rem 0;
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 3rem;
}
.logo-track img {
    height: 56px;
    flex-shrink: 0;
    filter: grayscale(100%);
    opacity: .75;
    transition: filter .3s, opacity .3s, transform .3s;
}
.logo-track img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.08);
}
/* ================================================================
   FULL RESPONSIVE PACK — Phone / Tablet / Laptop / Large Desktop
   ================================================================ */
/* ================================================================
   FULL RESPONSIVE PACK — Phone / Tablet / Laptop / Large Desktop
   ================================================================ */
/* ================================================================
   تحديث الشاشات الكبيرة والعملاقة (توسيع الحاوية وزيادة الضخامة)
   ================================================================ */

/* ==========================================================
   LARGE DESKTOP (1440px+)
   ========================================================== */
@media (min-width: 1440px){

    :root{
        --max:1600px;
    }

    .container{
        max-width:var(--max);
        padding-inline:3rem;
    }

    body{
        font-size:18px;
    }

    /* ---------- Typography ---------- */

    h1{
        font-size:clamp(4rem,4vw,5.5rem);
    }

    h2{
        font-size:clamp(2.6rem,2.5vw,3.8rem);
    }

    h3{
        font-size:clamp(1.5rem,1.5vw,2rem);
    }

    p{
        font-size:clamp(1.1rem,1vw,1.35rem);
    }

    /* ---------- Sections ---------- */

    .section{
        padding:9rem 0;
    }

    /* ---------- HERO ---------- */

    .hero-slider{
        min-height:100vh;
    }

    .hero-inner{

        grid-template-columns:7fr 5fr;

        align-items:center;

        gap:clamp(4rem,5vw,7rem);

        padding:8rem 0 6rem;
    }

    .hero-text h1{
        font-size:clamp(4rem,4vw,5.5rem);
    }

    .hero-text h2{

        font-size:clamp(1.3rem,1.2vw,1.8rem);

        max-width:700px;
    }

    .hero-text p{

        font-size:clamp(1.15rem,1vw,1.4rem);

        max-width:700px;
    }

    .hero-image{

        min-height:700px;

        border-radius:20px;
    }

    /* ---------- ABOUT ---------- */

    .about-container.overview{

        grid-template-columns:6fr 5fr;

        align-items:start;

        gap:clamp(4rem,5vw,7rem);
    }

    .about-container .copy p{

        font-size:clamp(1.2rem,1vw,1.45rem);

        line-height:1.9;

        max-width:820px;
    }

    /* ---------- IMAGES ---------- */

    .about-images{

        display:grid;

        grid-template-columns:repeat(2,1fr);

        gap:2rem;

        align-items:start;
    }

    .about-images img{

        width:100%;

        object-fit:cover;

        border-radius:20px;
    }

    .about-images img:first-child{

        width:100%;

        height:560px;

        margin-top:0;
    }

    .about-images img:last-child{

        width:100%;

        height:500px;

        margin-top:80px;
    }

    /* ---------- STATS ---------- */

    .about-stats{

        gap:4rem;
    }

    .about-stat-value{

        font-size:4rem;
    }

    .about-stat-label{

        font-size:1.2rem;
    }

    /* ---------- SERVICES ---------- */

    .services-carousel{

        grid-template-columns:repeat(3,1fr);

        gap:2rem;
    }

    .services-card-image{

        height:260px;
    }

    /* ---------- ROI ---------- */

    .aq-roi-container{

        max-width:var(--max);

        grid-template-columns:320px 1fr;

        gap:2rem;
    }

    /* ---------- LOGOS ---------- */

    .logo-track{

        gap:4rem;
    }

    .logo-track img{

        height:64px;
    }

}



/* ==========================================================
   ULTRA WIDE (1920px+)
   ========================================================== */

@media (min-width:1920px){

    :root{

        --max:1840px !important;
    }

    .container{

        max-width:var(--max) !important;

        padding-inline:4rem !important;
    }

    body{

        font-size:20px !important;
    }

    /* ---------- Typography ---------- */

    h1{

        font-size:clamp(5rem,5vw,6.5rem) !important;
    }

    h2{

        font-size:clamp(3rem,3vw,4.5rem) !important;
    }

    h3{

        font-size:clamp(1.8rem,2vw,2.4rem) !important;
    }

    p{

        font-size:clamp(1.25rem,1.2vw,1.5rem) !important;
    }

    /* ---------- HERO ---------- */

    .hero-inner{

        gap:8rem !important;

        padding:9rem 0 7rem !important;
    }

    .hero-image{

        min-height:850px !important;
    }

    .hero-text h2{

        font-size:1.7rem!important;
    }

    .hero-text p{

        font-size:1.4rem !important;
    }

    /* ---------- ABOUT ---------- */

    .about-container.overview{

        gap:8rem;

        align-items:start !important;
    }

    .about-container .copy p{

        font-size:1.45rem !important;

        line-height:2;
    }

    .about-images{

        gap:2.5rem !important;
    }

    .about-images img:first-child{

        height:760px !important;
    }

    .about-images img:last-child{

        height:690px !important;

        margin-top:110px !important;
    }

    /* ---------- STATS ---------- */

    .about-stat-value{

        font-size:5rem !important;
    }

    .about-stat-label{

        font-size:1.4rem !important;
    }

    /* ---------- SERVICES ---------- */

    .services-carousel{

        gap:3rem !important;
    }

    .services-card-image{

        height:320px !important;
    }

    .services-card-title{

        font-size:2rem !important;
    }

    .services-card-text{

        font-size:1.2rem !important;
    }

    /* ---------- ROI ---------- */

    .aq-roi-container{

        grid-template-columns:360px 1fr !important;
    }

    .aq-roi-big-number{

        font-size:5rem !important;
    }

    /* ---------- CLIENTS ---------- */

    .logo-track img{

        height:72px !important;
    }

}

/* ================================================================
   MOBILE — نسخة الهاتف (معاد بناؤها بالكامل)
   Tablet: ≤ 1024px | Phone: ≤ 768px | Small phone: ≤ 430px
   ================================================================ */

/* ==========================================================
   TABLET (768px → 1024px)
========================================================== */
@media (min-width: 768px) and (max-width: 1024px) {

  .container { padding-inline: 28px; }
  .section   { padding: 5rem 0; }

  .hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
  }
  .hero-image { min-height: 340px; }

  .about-container.overview { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
  .about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .about-images img { width: 100% !important; height: 260px !important; margin: 0 !important; }

  .services-carousel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

  .aq-roi-container { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
  .aq-roi-sidebar   { display: flex; flex-direction: row; flex-wrap: wrap; gap: .75rem; }
  .aq-roi-mode-btn  { flex: 1 1 auto; min-height: 46px; font-size: .85rem; }
  .aq-roi-title     { font-size: .9rem; line-height: 1.7; }
  .aq-roi-select-btn{ min-height: 46px; font-size: .95rem; }
  .aq-roi-menu button { min-height: 44px; }
  .aq-roi-big-number{ font-size: 3.5rem; }
  .hero-slider { overflow: hidden; }
}

/* ==========================================================
   PHONE (≤ 767px)
========================================================== */
@media (max-width: 767px) {

  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body { font-size: 16px; line-height: 1.7; -webkit-text-size-adjust: 100%; }

  img, video, iframe { max-width: 100%; height: auto; }

  .container { width: 100%; max-width: 100%; padding-inline: 20px; }
  .section   { padding: 3.5rem 0; }

  /* ---------- Typography ---------- */
  h1 { font-size: 1.95rem; line-height: 1.25; }
  h2 { font-size: 1.5rem;  line-height: 1.3; }
  h3 { font-size: 1.15rem; line-height: 1.4; }
  p  { font-size: 1rem;    line-height: 1.8; }

  .section-head { text-align: center; margin-bottom: 2rem; }
  .section-head h2 { max-width: 100%; margin-inline: auto; }
  .eyebrow { justify-content: center; font-size: 10px; letter-spacing: .18em; }
  .divider-line { width: 26px; margin-right: 10px; }

  /* ---------- HERO ---------- */
  .hero.split-hero { margin-top: 64px; }

  .hero-slider { min-height: auto; height: auto; }

  .slide {
    position: relative;
    inset: auto;
    display: none;
    opacity: 0;
    transform: none;
  }
  .slide.active { display: block; opacity: 1; transform: none; }

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 2.5rem 0 3rem;
  }

  .hero-text { text-align: center; align-items: center; }
  .hero-text h3 { font-size: .95rem; letter-spacing: .02em; margin-bottom: .35rem; }
  .hero-text h1 { font-size: 2rem; line-height: 1.22; margin: .4rem 0 .9rem; }
  .hero-text h2 { font-size: 1.05rem; line-height: 1.65; max-width: 100%; font-weight: 400; }
  .hero-text p  { font-size: 1rem; line-height: 1.8; max-width: 100%; }

  .hero-image {
    width: 100%;
    min-height: 260px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
  }
  .hero-image-tag { font-size: 10px; padding: 6px 10px; }

  .slider-controls { display: none; }
  .dots { position: relative; bottom: auto; margin-top: 1.25rem; display: flex; justify-content: center; gap: 8px; }

  /* ---------- ABOUT ---------- */
  .about-section { text-align: left; }
  .about-title { text-align: center; margin-bottom: 1.75rem; }

  .about-container.overview { display: flex; flex-direction: column; gap: 2.25rem; }
  .about-container .copy { order: 1; }
  .about-container .copy p { font-size: 1rem; line-height: 1.85; margin-bottom: 1.1rem; max-width: 100%; }

  .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--line);
  }
  .about-stat { text-align: center; }
  .about-stat-value { font-size: 2.25rem; line-height: 1.1; }
  .about-stat-label { font-size: .85rem; line-height: 1.5; }

  .about-images { order: 2; display: flex; flex-direction: column; gap: 1rem; }
  .about-images .img-wrap { width: 100%; }
  .about-images img {
    width: 100% !important;
    height: 230px !important;
    margin: 0 !important;
    border-radius: 16px;
    object-fit: cover;
  }

  /* ---------- ROI ---------- */
  .aq-roi-section { padding-inline: 0; }

  .aq-roi-container { display: flex; flex-direction: column; gap: 1.25rem; }

  .aq-roi-sidebar { display: flex; flex-direction: column; gap: .6rem; width: 100%; }
  .aq-roi-mode-btn { width: 100%; min-height: 46px; text-align: center; padding: .9rem 1rem; font-size: .85rem; letter-spacing: .08em; }

  .aq-roi-frame { padding: 1.75rem 1.15rem 1.75rem; }
  .aq-roi-title { font-size: .85rem; line-height: 1.7; letter-spacing: .06em; }
  .aq-roi-big-number { font-size: 3rem; line-height: 1.05; word-break: break-word; }
  .aq-roi-unit { font-size: .95rem; }

  .aq-roi-controls {
    position: static;
    transform: none;
    left: auto; right: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: .6rem;
    margin-top: 1.5rem;
    padding-inline: 0;
  }
  .aq-roi-select { width: 100%; position: relative; }
  .aq-roi-select-btn { width: 100%; min-height: 46px; justify-content: center; padding: .85rem 1rem; font-size: .9rem; }
  .aq-roi-menu { width: 100%; left: 0; right: 0; }

  /* ---------- SERVICES ---------- */
  .carousel-wrapper { overflow: visible; }
  .services-carousel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    overflow: visible;
    transform: none !important;
  }
  .services-horizontal-card.card { width: 100%; flex-direction: column; }
  .services-card-image { width: 100%; height: 210px; object-fit: cover; }
  .services-card-content { padding: 1.35rem; }
  .services-card-title { font-size: 1.2rem; line-height: 1.3; }
  .services-card-text  { font-size: .97rem; line-height: 1.75; }

  /* ---------- BUTTONS ---------- */
  .btn-primary,
  .services-card-link {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: .9rem 1.25rem;
    min-height: 46px;
    align-items: center;
    font-size: .95rem;
  }

  /* tap targets + iOS tweaks */
  a, button { -webkit-tap-highlight-color: transparent; }
  .dots button { min-width: 12px; min-height: 12px; }
  .aq-roi-menu button { min-height: 44px; font-size: .95rem; }
  .container,
  .hero-inner { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .hero-inner { padding-left: 0; padding-right: 0; }
  .logo-slider { max-width: 100%; overflow-x: hidden; -webkit-mask-image: none; mask-image: none; }

  /* ---------- CLIENTS ---------- */
  .logo-slider { overflow: hidden; }
  .logo-track { gap: 2rem; }
  .logo-track img { height: 46px; }
}

/* ==========================================================
   SMALL PHONES (≤ 430px)
========================================================== */
@media (max-width: 430px) {

  .container { padding-inline: 16px; }
  .section   { padding: 3rem 0; }

  .hero.split-hero { margin-top: 60px; }
  .hero-text h1 { font-size: 1.7rem; }
  .hero-text h2 { font-size: .98rem; }
  .hero-text p  { font-size: .95rem; }
  .hero-image   { min-height: 220px; border-radius: 14px; }

  .section-head h2 { font-size: 1.35rem; }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 0;
    border-bottom: none;
    padding-bottom: 0;
  }
  .about-stat { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .about-stat:last-child { border-bottom: none; }
  .about-stat-value { font-size: 2rem; }

  .about-images img { height: 200px !important; border-radius: 14px; }

  .aq-roi-big-number { font-size: 2.5rem; }
  .aq-roi-frame { padding: 1.5rem 1rem; }

  .services-card-image { height: 180px; }
  .services-card-content { padding: 1.15rem; }
  .services-card-title { font-size: 1.1rem; }

  .logo-track img { height: 38px; }
}

/* ==========================================================
   LANDSCAPE PHONES (≤ 900px, short height)
========================================================== */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 520px) {
  .hero-inner { padding: 2rem 0; }
  .hero-image { min-height: 200px; }
  .hero-text h1 { font-size: 1.6rem; }
}
