/* ==========================================================================
   Marketing UI — Glassy Hero + Sections (EXTRA TRANSPARENT preset)
   ========================================================================== */

:root{
  /* Transparency & blur controls — dial these if you want even more/less glass */
  --overlay-a1:.16;      /* top of hero overlay (was .20) */
  --overlay-a2:.10;      /* bottom of hero overlay (was .14) */
  --slab-alpha:.38;      /* hero slab background alpha (was .50) */
  --card-alpha:.30;      /* inner card alpha (was .44) */
  --glass-blur:16px;     /* a touch more blur to keep legible on photos */

  /* Accent colors */
  --brand-500:#118A93;   /* main brand teal */
  --ink:#1F2730;         /* primary text */
}

.copy-grid{display:grid; gap:18px;}
@media (min-width:768px){ .copy-grid{gap:20px;} }

.copy-card{
  background:rgba(255,255,255,var(--card-alpha));
  border:1px solid rgba(255,255,255,.20);
  border-radius:14px; padding:16px 16px;
  box-shadow:0 8px 22px rgba(31,39,48,.10);
  backdrop-filter:blur(calc(var(--glass-blur) - 2px));
  -webkit-backdrop-filter:blur(calc(var(--glass-blur) - 2px));
}
@media (min-width:768px){ .copy-card{padding:18px 18px;} }

.copy-title{font-weight:800; color:#0E6B73; margin:0 0 .35rem 0; letter-spacing:.2px;}
.copy-body p{color:#475569; line-height:1.65; margin:.35rem 0;}
.copy-list{color:#475569; line-height:1.65; padding-left:1.15rem; list-style:disc; margin:.25rem 0 0 0;}
.copy-list li{margin:.2rem 0;}
.copy-list li::marker{color:var(--brand-500);}
.copy-list-cols{columns:1; column-gap:28px;}
@media (min-width:900px){ .copy-list-cols{columns:2;} }

.cta-row{display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center; margin-top:1rem;}

/* --- Section headline accents --- */
#about h2::after,
#process h2::after,
#gantt h2::after,
#compare h2::after,
#roi  h2::after{
  content:""; display:block; width:64px; height:2px; margin:10px auto 0; border-radius:9999px;
  background:linear-gradient(90deg,var(--brand-500),rgba(17,138,147,.6),rgba(17,138,147,.1));
}

/* Better text wrapping for multi-line bullets & paragraphs */
.bo-copy {
  max-width: 48ch;
  text-wrap: balance; /* modern browsers */
}

/* Optional graceful fallback for older browsers */
@supports not (text-wrap: balance) {
  .bo-copy {
    max-width: 48ch;
    hyphens: auto;
  }
}

/* --- Reusable thin top gradient for cards --- */
.bo-card.bo-card-accent::before{
  content:""; position:absolute; inset:-1px 0 auto 0; height:3px;
  background:linear-gradient(90deg,var(--brand-500),rgba(17,138,147,.35),transparent);
  border-radius:8px 8px 0 0; pointer-events:none;
}

/* --- Section card shells (Process / Compare / ROI) --- */
#process .bo-card,
#compare .bo-card,
#roi .bo-card{
  position:relative;
  border:1px solid rgba(31,39,48,.08);
  box-shadow:0 4px 14px rgba(31,39,48,.06);
  transition:transform .16s ease, box-shadow .16s ease;
}
#process .bo-card::before,
#compare .bo-card::before,
#roi .bo-card::before{
  content:""; position:absolute; inset:-1px 0 auto 0; height:3px;
  background:linear-gradient(90deg,var(--brand-500),rgba(17,138,147,.35),transparent);
  border-radius:8px 8px 0 0; pointer-events:none;
}
#process .bo-card:hover,
#compare .bo-card:hover,
#roi .bo-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(31,39,48,.10);
}

/* --- Process: step number badge --- */
#process .bo-step-num{
  width:44px; height:44px; margin:0 auto .75rem; display:flex; align-items:center; justify-content:center;
  font-weight:800; color:#fff; border-radius:9999px;
  background:radial-gradient(100% 100% at 50% 0%,#19B3AA 0%,var(--brand-500) 70%);
  box-shadow:0 6px 16px rgba(17,138,147,.28);
  border:2px solid rgba(17,138,147,.15); letter-spacing:.25px;
}

/* --- Tables (Gantt + Compare) --- */
#gantt table, #compare table{border-collapse:separate; border-spacing:0;}
#gantt thead th, #compare thead th{font-weight:700; background:linear-gradient(180deg,#F8FAFC 0%,#FFFFFF 100%);}
#gantt tbody tr:nth-child(odd), #compare tbody tr:nth-child(odd){background:rgba(31,39,48,.02);}
#gantt tbody tr:hover, #compare tbody tr:hover{background:rgba(17,138,147,.06);}
#gantt td,#gantt th,#compare td,#compare th{vertical-align:top;}

/* --- Fine-tune small text colors --- */
#gantt .text-ink\/70, #gantt .text-ink\/60,
#process .text-ink\/80, #compare .text-ink\/60, #roi .text-ink\/70{color:#475569;}

/* --- Links inside these sections --- */
#compare a.bo-link, #gantt a.bo-link, #roi a.bo-link{
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
}

/* ==========================================================================
   About Section — Glass card treatment
   ========================================================================== */

.about-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--border, #e2e8f0);
}

/* Two-column grid on md+ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Glass card (mirrors hero .copy-card styling) */
.about-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.50);
  border-radius: 1rem;
  padding: 1.5rem 1.5rem;
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.about-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 138, 147, 0.2);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
    0 16px 40px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Top accent gradient stripe */
.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #118A93 0%, rgba(17, 138, 147, 0.35) 60%, transparent 100%);
  border-radius: 1rem 1rem 0 0;
  pointer-events: none;
}

/* Card title — matches .copy-title from hero */
.about-card-title {
  color: var(--accent, #0ea5e9);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  padding-bottom: 0.5rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Title icons larger */
.about-card-title i[data-lucide],
.about-card-title svg.lucide {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* List item text */
.about-card li {
  color: var(--text, #1f2937);
  line-height: 1.55;
}

.about-card li span {
  color: var(--text, #1f2937);
}

/* List item icon alignment */
.about-card li i[data-lucide],
.about-card li svg.lucide {
  flex-shrink: 0;
  margin-top: 3px;
}

/* CTA row inside about (reuse hero cta-row styles) */
.about-section .cta-row {
  margin-top: 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .about-card {
    transition: none;
  }
}

/* ==========================================================================
   Case Studies Section — Glass card treatment
   ========================================================================== */

.cs-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--border, #e2e8f0);
}

/* Main case study article card */
.cs-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.50);
  border-radius: 1rem;
  padding: 1.5rem 1.5rem;
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 1rem;
  line-height: 1.625;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

@media (min-width: 768px) {
  .cs-card {
    padding: 2rem 2rem;
  }
}

.cs-card:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 138, 147, 0.2);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
    0 16px 40px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Top accent stripe */
.cs-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #118A93 0%, rgba(17, 138, 147, 0.35) 60%, transparent 100%);
  border-radius: 1rem 1rem 0 0;
  pointer-events: none;
}

/* Card heading */
.cs-card-heading {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.65rem);
  font-weight: 800;
  color: var(--text, #1f2937);
  line-height: 1.25;
  letter-spacing: -0.01em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Inner stat chips (replaces bo-card bo-card-body) */
.cs-stat {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.625rem;
  padding: 0.65rem 0.85rem;
  color: var(--text, #1f2937);
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.cs-stat strong {
  color: var(--accent, #0ea5e9);
  font-weight: 700;
}

/* Outcome paragraph */
.cs-outcome {
  color: var(--text, #1f2937);
  padding: 0.75rem 1rem;
  background: rgba(17, 138, 147, 0.06);
  border-left: 3px solid #118A93;
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cs-outcome strong {
  color: #118A93;
}

/* Highlights section */
.cs-highlights {
  color: var(--text, #1f2937);
  font-size: 0.9rem;
}

.cs-highlights strong {
  color: var(--text, #1f2937);
}

.cs-highlights li {
  color: var(--text, #1f2937);
}

.cs-highlights li::marker {
  color: #118A93;
}

@media (prefers-reduced-motion: reduce) {
  .cs-card {
    transition: none;
  }
}

/* ==========================================================================
   Sample Projects Section
   ========================================================================== */

.sp-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--border, #e2e8f0);
}

/* ==========================================================================
   FAQ Section — Glass accordion treatment
   ========================================================================== */

.faq-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid var(--border, #e2e8f0);
}

/* Accordion item (details element) */
.faq-item {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.50);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 14px rgba(0, 0, 0, 0.04),
    0 1px 4px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

@media (min-width: 768px) {
  .faq-item {
    padding: 1.15rem 1.5rem;
  }
}

/* Open state */
.faq-item[open] {
  border-color: rgba(17, 138, 147, 0.25);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
    0 10px 28px rgba(0, 0, 0, 0.07),
    0 3px 10px rgba(0, 0, 0, 0.04);
}

/* Top accent stripe */
.faq-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #118A93 0%, rgba(17, 138, 147, 0.35) 60%, transparent 100%);
  border-radius: 1rem 1rem 0 0;
  pointer-events: none;
}

/* Summary row */
.faq-item summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Remove default marker across browsers */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ""; }

/* Question text */
.faq-item summary > span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #1f2937);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .faq-item summary > span {
    font-size: 1.1rem;
  }
}

/* Chevron icon */
.faq-item summary > svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--accent, #0ea5e9);
  transition: transform 0.2s ease;
}

.faq-item[open] summary > svg {
  transform: rotate(180deg);
}

/* Answer body */
.faq-item > div,
.faq-item > ol {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text, #1f2937);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Lists inside answers */
.faq-item li::marker {
  color: #118A93;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item {
    transition: none;
  }
  .faq-item summary > svg {
    transition: none;
  }
}

/* ==========================================================================
   Floating quick-contact button (global — all pages)
   ========================================================================== */

/* Full-width sticky bar pinned to bottom center */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  background: #118A93;
  color: #fff;
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow:
    0 -4px 20px rgba(17, 138, 147, 0.35),
    0 -2px 8px rgba(0, 0, 0, 0.10);
  transition: background 0.2s ease;
}

@media (min-width: 640px) {
  .floating-cta {
    font-size: 1.35rem;
    padding: 1.15rem 2rem;
  }
}

.floating-cta:hover {
  background: #0E6B73;
  text-decoration: none;
  color: #fff;
}

.floating-cta svg {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
}

/* Always show label — bar is wide enough */
.floating-cta-label {
  display: inline;
}

.floating-cta.cta-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .floating-cta {
    transition: none;
  }
}

/* ==========================================================================
   Footer phone — large, prominent number (global)
   ========================================================================== */

.footer-phone {
  display: inline-block;
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #118A93;
  text-decoration: none;
  border-bottom: none;
  padding: 0.25rem 0;
}

@media (min-width: 640px) {
  .footer-phone {
    font-size: 1.85rem;
  }
}

.footer-phone:hover {
  color: #0E6B73;
  border-bottom: none;
}
