/* =============================================================
   Nexus Coastal Child — local-utilities.css
   Component-level styles that complement Tailwind CDN classes
   ============================================================= */

/* =============================================================
   GLOBAL FIXED BEACH BACKGROUND
   The beach-palms-sunset image scrolls behind ALL sections.
   Each section panel is a semi-transparent overlay on top.
   ============================================================= */
html {
  background-color: #b8e4f0; /* ocean blue fallback while image loads */
}
body.devbytes-page {
  background-image: url('../images/beach-palms-sunset.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
/* Astra wraps content — ALL must be transparent so beach bg shows */
body.devbytes-page .ast-separate-container,
body.devbytes-page .ast-page-builder-template,
body.devbytes-page #content,
body.devbytes-page #primary,
body.devbytes-page .site-content,
body.devbytes-page .ast-container,
body.devbytes-page .ast-article-single,
body.devbytes-page .entry-content,
body.devbytes-page .post-content,
body.devbytes-page main,
body.devbytes-page #site-content,
body.devbytes-page .hfeed,
body.devbytes-page .ast-page-builder-template .ast-article-single,
body.devbytes-page .ast-separate-container .ast-article-single {
  background: transparent !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Kill any Astra box shadows / borders on content area */
body.devbytes-page .ast-separate-container .ast-article-single {
  box-shadow: none !important;
  border: none !important;
}
/* Critical: prevent ANY Astra wrapper from clipping the hero or creating overflow artifacts */
body.devbytes-page .ast-separate-container,
body.devbytes-page #content,
body.devbytes-page #primary,
body.devbytes-page main,
body.devbytes-page #site-content {
  overflow: visible !important;
}

/* ---------- Base resets ---------- */
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4  { padding-left: 1rem;   padding-right: 1rem; }
.px-6  { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8  { padding-left: 2rem;   padding-right: 2rem; }
.py-4  { padding-top: 1rem;    padding-bottom: 1rem; }
.py-8  { padding-top: 2rem;    padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem;  padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem;    padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem;  padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem;    padding-bottom: 4rem; }
.py-20 { padding-top: 5rem;    padding-bottom: 5rem; }
.mt-0\.5 { margin-top: .125rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.flex   { display: flex; }
.grid   { display: grid; }
.hidden { display: none; }
.block  { display: block; }
.inline-block { display: inline-block; }
.flex-col     { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1       { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1  { gap: .25rem; }
.gap-2  { gap: .5rem; }
.gap-3  { gap: .75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.grid-cols-1  { grid-template-columns: repeat(1, minmax(0,1fr)); }
.grid-cols-2  { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-cols-3  { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-cols-4  { grid-template-columns: repeat(4, minmax(0,1fr)); }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-white  { color: #fff; }
.text-xs   { font-size: .75rem;  line-height: 1.4; }
.text-sm   { font-size: .875rem; line-height: 1.5; }
.text-base { font-size: 1rem;    line-height: 1.5; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-5xl  { font-size: 3rem; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.italic        { font-style: italic; }
.leading-tight    { line-height: 1.15; }
.leading-relaxed  { line-height: 1.625; }
.tracking-widest  { letter-spacing: .1em; }
.rounded    { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl{ border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.-z-10    { z-index: -10; }
.z-10     { z-index: 10; }
.shadow-sm  { box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.shadow-lg  { box-shadow: 0 10px 25px rgba(15,23,42,.14); }
.shadow-xl  { box-shadow: 0 20px 40px rgba(15,23,42,.16); }
.shadow-2xl { box-shadow: 0 24px 48px rgba(15,23,42,.18); }
.bg-white   { background-color: #fff; }
.bg-foam    { background-color: #d7eef0; }
.w-full     { width: 100%; }
.h-full     { height: 100%; }
.object-cover   { object-fit: cover; }
.object-center  { object-position: center; }
.max-w-2xl  { max-width: 42rem; }
.border-t   { border-top: 1px solid; }
.border-white\/20 { border-color: rgba(255,255,255,.2); }
.pointer-events-none { pointer-events: none; }
.transition { transition: all .2s ease; }
.self-center { align-self: center; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* =====================================================
   55+ READABILITY — high contrast, generous sizing
   ===================================================== */
body.devbytes-page {
  font-size: 17px;
  line-height: 1.65;
  color: #17212b;
  -webkit-font-smoothing: antialiased;
}
/* Glass panel base text — 55+: never below 1rem, strong contrast */
body.devbytes-page section p,
body.devbytes-page section li,
body.devbytes-page section label {
  font-size: 1rem;
  color: #374151;
  line-height: 1.7;
}
/* Global: any small text must be at least .875rem */
body.devbytes-page small,
body.devbytes-page .text-xs,
body.devbytes-page figcaption { font-size: .875rem !important; }
/* Prevent form inputs ever inheriting dark bg or transparent colors */
body.devbytes-page form input:not([type="hidden"]),
body.devbytes-page form select,
body.devbytes-page form textarea {
  color: #111827 !important;
  background-color: #fff !important;
  -webkit-text-fill-color: #111827 !important;
}
body.devbytes-page form select {
  -webkit-text-fill-color: #374151 !important;
  color: #374151 !important;
}
/* Headings — minimum sizes for 55+ demographic */
body.devbytes-page section h2 { font-size: clamp(2rem,4vw,3rem) !important; }
body.devbytes-page section h3 { font-size: clamp(1.1rem,2vw,1.4rem) !important; }
body.devbytes-page section h4 { font-size: 1rem !important; }
/* Form inputs — large tap targets */
body.devbytes-page input,
body.devbytes-page select,
body.devbytes-page textarea {
  font-size: 1rem !important;
  padding: .75rem 1rem !important;
  min-height: 48px !important;
  color: #111827 !important;
  background: #fff !important;
}
/* Buttons — big, obvious */
body.devbytes-page button[type="submit"],
body.devbytes-page a[data-devbytes-track] {
  min-height: 56px !important;
  font-size: 1rem !important;
}

/* =====================================================
   CTA AMBER — primary action button class
   Usage: add devbytes-cta-amber class to any CTA button/link
   Matches the inline amber style used throughout the theme
   ===================================================== */
.devbytes-cta-amber {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff !important;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  box-shadow: 0 4px 16px rgba(217,119,6,0.35);
  text-decoration: none;
}
.devbytes-cta-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,119,6,0.50);
  color: #fff !important;
}

/* =====================================================
   HEADER
   ===================================================== */
.devbytes-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eef2f0;
  box-shadow: 0 2px 12px rgba(8,42,30,.07);
}
.devbytes-header-inner {
  height: 72px;
}
.devbytes-nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.devbytes-nav-menu a {
  font-size: .9rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: color .18s;
}
.devbytes-nav-menu a:hover { color: #0d4f3c; }
.devbytes-header-phone {
  color: #0d4f3c;
  text-decoration: none;
  font-size: .9rem;
  transition: color .18s;
}
.devbytes-header-phone:hover { color: #f97316; }
.devbytes-header-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.2rem;
  border-radius: 9999px;
  background: #0d4f3c;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.devbytes-header-cta-btn:hover { background: #0a3d30; }

/* Skip link */
.skip-link { position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden; }
.skip-link:focus { left:10px;top:10px;width:auto;height:auto;padding:8px 12px;background:#fff;color:#0b2f24;z-index:9999;border-radius:6px;box-shadow:0 6px 18px rgba(2,6,23,.08); }

/* =====================================================
   HERO
   ===================================================== */
.devbytes-hero {
  font-family: Inter, system-ui, sans-serif;
}
/* Green circle icon wrappers in hero feature row */
.devbytes-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background: rgba(110,207,155,.18);
  border: 2px solid rgba(110,207,155,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6ecf9b;
  flex-shrink: 0;
}

/* Form inputs inside hero card */
.devbytes-input {
  display: block;
  width: 100%;
  margin-bottom: .75rem;
  padding: .65rem .85rem;
  border: 1px solid #d1d5db;
  border-radius: .5rem;
  font-size: .9rem;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.devbytes-input:focus {
  border-color: #0d4f3c;
  box-shadow: 0 0 0 3px rgba(13,79,60,.12);
}

/* =====================================================
   PAIN POINT CARDS
   ===================================================== */
.devbytes-pain-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  box-shadow: 0 2px 8px rgba(8,42,30,.06);
  transition: box-shadow .22s, transform .22s;
}
.devbytes-pain-card:hover {
  box-shadow: 0 8px 24px rgba(8,42,30,.10);
  transform: translateY(-3px);
}
.devbytes-pain-icon {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #0d4f3c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: .85rem;
  flex-shrink: 0;
}
.devbytes-pain-title {
  font-size: .9rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .4rem;
  line-height: 1.25;
}
.devbytes-pain-copy {
  font-size: .78rem;
  color: #6b7280;
  line-height: 1.45;
}

/* =====================================================
   PERSONA CARDS
   ===================================================== */
.devbytes-persona-card {
  background: #fff;
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(8,42,30,.08);
  transition: box-shadow .22s, transform .22s;
}
.devbytes-persona-card:hover {
  box-shadow: 0 12px 32px rgba(8,42,30,.13);
  transform: translateY(-4px);
}
.devbytes-persona-img-wrap {
  height: 200px;
  overflow: hidden;
}
.devbytes-persona-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .4s ease;
}
.devbytes-persona-card:hover .devbytes-persona-img { transform: scale(1.04); }

/* =====================================================
   STATS BAND
   ===================================================== */
.devbytes-stats-band {
  position: relative;
}

/* =====================================================
   PROCESS STEPS
   ===================================================== */
.devbytes-process-grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  flex-wrap: nowrap;
}
.devbytes-process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 0 .5rem;
  position: relative;
}
.devbytes-process-number {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #0d4f3c;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.devbytes-process-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: #edf7f2;
  border: 2px solid #c3e6d4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d4f3c;
  margin-bottom: .85rem;
  flex-shrink: 0;
}
.devbytes-process-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .4rem;
}
.devbytes-process-copy {
  font-size: .9rem;
  color: #4b5563;
  line-height: 1.55;
}
/* Dashed connector between steps */
.devbytes-process-connector {
  width: 40px;
  flex-shrink: 0;
  border-top: 2px dashed #c3e6d4;
  margin-top: 54px; /* aligns with center of number circle */
  align-self: flex-start;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.devbytes-testi-card {
  background: #f8f4ee;
  border-radius: .75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 2px 8px rgba(8,42,30,.06);
}
.devbytes-stars {
  display: flex;
  gap: .15rem;
}

/* =====================================================
   FAQ
   ===================================================== */
.devbytes-faq-item {
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  background: #fff;
  overflow: hidden;
}
.devbytes-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  list-style: none;
  gap: .5rem;
  user-select: none;
}
.devbytes-faq-summary::-webkit-details-marker { display: none; }
.devbytes-faq-icon {
  font-size: 1.1rem;
  color: #0d4f3c;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform .2s;
}
details[open] .devbytes-faq-icon { transform: rotate(45deg); }
.devbytes-faq-answer {
  padding: 0 1rem .85rem 1rem;
  font-size: .8rem;
  color: #6b7280;
  line-height: 1.6;
}

/* =====================================================
   CTA BANNER (in FAQ row)
   ===================================================== */
.devbytes-cta-banner {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================
   TRUST LOGOS
   ===================================================== */
.trust-logo { height: 40px; width: auto; display: block; object-fit: contain; max-width: 160px; }
.trust-logos { display: flex; gap: .75rem; align-items: center; flex-wrap: nowrap; }
.trust-logos--compact { max-width: 420px; }

/* =====================================================
   HERO OVERLAY / HERO-TO-CONTENT BLEND
   ===================================================== */
.hero-bg-overlay,
.thankyou-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,54,36,.36), rgba(255,255,255,.92));
  pointer-events: none;
}
.thankyou-hero-overlay { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.6)); }
.thankyou-hero { padding-top: 6rem; padding-bottom: 4rem; }
.hero-to-content { position: relative; }
.hero-to-content::after {
  content: '';
  display: block;
  height: 80px;
  width: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  margin-top: -1px;
  pointer-events: none;
}
.content-overlap { margin-top: -60px; }

/* =====================================================
   STATS BAND BG (fallback)
   ===================================================== */
.stats-band {
  background-image: url('../images/stats-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
a:focus, button:focus, input:focus, textarea:focus, select:focus, details > summary:focus {
  outline: 3px solid rgba(110,207,155,.6);
  outline-offset: 3px;
}

/* =====================================================
   UTILITY TEXT / BG
   ===================================================== */
.text-on-dark     { color: rgba(255,255,255,.9); }
.text-soft        { color: rgba(255,255,255,.78); }
.text-muted       { color: #6b7280; }
.text-muted-strong { color: #4b5563; }
.bg-primary       { background-color: #0d4f3c; }
.bg-accent        { background-color: #f97316; }
.bg-ocean         { background-color: #2b6f89; }
.text-primary     { color: #0d4f3c; }
.text-accent      { color: #f97316; }

/* brand-green for thank-you page Tailwind compat */
.bg-brand-green      { background-color: #1a4731; }
.text-brand-green    { color: #1a4731; }
.bg-brand-lightGreen { background-color: #2e7d32; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
img { max-width: 100%; height: auto; }

@media (min-width: 768px) {
  .md\:block   { display: block; }
  .md\:flex    { display: flex; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:text-left { text-align: left; }
  .md\:w-auto   { width: auto; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:text-left { text-align: left; }
}

@media (min-width: 1024px) {
  .lg\:block       { display: block; }
  .lg\:flex        { display: flex; }
  .lg\:flex-row    { flex-direction: row; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .lg\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .lg\:w-2\/3 { width: 66.6667%; }
  .lg\:w-3\/5 { width: 60%; }
  .lg\:w-96   { width: 24rem; }
  .lg\:w-72   { width: 18rem; }
  .lg\:w-60   { width: 15rem; }
  .lg\:text-6xl { font-size: 3.75rem; }
}

/* =====================================================
   HERO RESPONSIVE — mobile stacks left/right
   ===================================================== */
@media (max-width: 767px) {
  #hero > div > div { flex-direction: column !important; }
  #hero aside { width: 100% !important; flex: none !important; }
  #hero h1 { font-size: 2.1rem !important; }
  /* hide palm fronds on very small screens */
  #hero img[aria-hidden="true"] { display: none !important; }
}

/* Pain points — responsive grid */
@media (max-width: 900px) {
  /* Target the inline-style grid directly — override via specificity */
  section[style*="grid-template-columns: repeat(5"] > div > div,
  .devbytes-pain-outer > div { grid-template-columns: repeat(3,1fr) !important; }
}
@media (max-width: 560px) {
  section[style*="grid-template-columns: repeat(5"] > div > div { grid-template-columns: repeat(2,1fr) !important; }
}

/* Personas — responsive */
@media (max-width: 900px) {
  .devbytes-personas-outer > div > div { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 500px) {
  .devbytes-personas-outer > div > div { grid-template-columns: 1fr !important; }
}

/* Stats band — 2col on mobile */
@media (max-width: 640px) {
  section[style*="ocean-aerial"] .devbytes-stats-inner,
  section[style*="stats-bg"] .devbytes-stats-inner { grid-template-columns: repeat(2,1fr) !important; }
}

/* Process grid on mobile — stack vertically */
@media (max-width: 767px) {
  .devbytes-process-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .devbytes-process-connector {
    width: 2px;
    height: 32px;
    border-top: none;
    border-left: 2px dashed #c3e6d4;
    margin-top: 0;
    align-self: center;
  }
  .devbytes-process-step { max-width: 260px; }

  /* On mobile header, hide some items */
  .devbytes-header-phone { display: none !important; }

  .site-header .devbytes-nav-menu { display: none; }
}

/* Header site nav / footer list resets */
.site-header ul, .site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-header a, .site-footer a, #site-content a {
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
#site-content img[loading="lazy"] { content-visibility: auto; }

/* Box sizing for theme wrappers */
#site-content, .site-header, .site-footer { box-sizing: border-box; }
#site-content *, #site-content *::before, #site-content *::after,
.site-header  *, .site-header  *::before, .site-header  *::after,
.site-footer  *, .site-footer  *::before, .site-footer  *::after { box-sizing: inherit; }
