/* TheLocalServiceGuide.com — Fluid Glass UI (Charcoal + Accent Blue)
   Fonts:
   - Body: Quicksand
   - Headings/Brand: Aboreto
*/

:root{
  --bg-0:#0e1114;
  --bg-1:#11161b;
  --bg-2:#151b21;

  --header-bg:#383838;
  --footer-bg:#383838;

  --surface: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.09);
  --border: rgba(255,255,255,.14);
  --border-2: rgba(255,255,255,.20);

  --accent:#5194D1;
  --accent-soft: rgba(81,148,209,.22);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted-2: rgba(255,255,255,.60);

  --pad: 24px;
  --max: 1160px;
  --radius: 18px;

  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --shadow-soft: 0 12px 28px rgba(0,0,0,.30);

  /* spacing scale */
  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 20px;
  --s5: 28px;
  --s6: 40px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  color:var(--text);
  font-family:"Quicksand", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  overflow-x:hidden;

  background:
    radial-gradient(1200px 800px at 22% 10%, rgba(81,148,209,.18), rgba(81,148,209,0) 60%),
    radial-gradient(900px 700px at 82% 20%, rgba(255,255,255,.06), rgba(255,255,255,0) 58%),
    radial-gradient(1100px 900px at 60% 92%, rgba(81,148,209,.14), rgba(81,148,209,0) 62%),
    linear-gradient(145deg, var(--bg-0), var(--bg-2));
  background-attachment: fixed;
  background-repeat:no-repeat;
  background-size: cover;
}

/* Prevent flex/grid overflow causing “crowding” */
.container, .header-inner, .brand, .nav, .hero-grid, .grid, .pricing-grid { min-width: 0; }
.brand-text, .nav-links { min-width: 0; }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.95; }

:focus-visible{
  outline: 2px solid rgba(81,148,209,.85);
  outline-offset: 2px;
}

.container{
  width:min(var(--max), 100%);
  margin:0 auto;
  padding: 0 var(--pad);
}

/* ---------- Typography (fix font + overlap) ---------- */
h1,h2,h3{
  font-family:"Cormorant", Georgia, serif !important; /* force it */
  margin: 0 0 12px;
  line-height: 1.18; /* loosen to prevent overlap */
  letter-spacing: .2px;
}

h1{ font-size: clamp(32px, 6vw, 48px); }
h2{ font-size: clamp(24px, 4.2vw, 36px); }
h3{ font-size: clamp(18px, 3.2vw, 24px); }

.lede{
  margin: 0 0 var(--s4);
  color: rgba(255,255,255,.84);
  font-size: 16px;
  max-width: 68ch;
}

.small{
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Glass UI containers ---------- */
.card{
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.card-inner{
  padding: clamp(16px, 3.2vw, 22px);
}

.hr{
  height: 1px;
  background: rgba(255,255,255,.12);
  margin: var(--s4) 0;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(81,148,209,.14);
  color: rgba(255,255,255,.90);
  font-size: 16px;
  margin-bottom: 12px;
}

/* ---------- Header / Nav ---------- */
.site-header{
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255,255,255,.10);
  position: sticky;
  top:0;
  z-index: 50;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--s3);
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

.brand-mark{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    radial-gradient(12px 12px at 30% 30%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%),
    linear-gradient(145deg, rgba(81,148,209,.55), rgba(81,148,209,.10));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 12px 24px rgba(0,0,0,.28);
  flex: 0 0 auto;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height: 1.2; /* loosen so it never overlaps */
}

.brand-name{
  font-family:"Cormorant", Georgia, serif !important; /* force it */
  font-weight: 500;
  font-size: 20px;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag{
  margin-top: 4px;
  font-size: 16px;
  color: rgba(255,255,255,.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav{
  display:flex;
  align-items:center;
  gap: 12px;
  flex: 0 0 auto;
}

.nav-links{
  display:none; /* desktop only */
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a{
  font-size: 16px;
  color: rgba(255,255,255,.84);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
}

.nav-links a:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: 16px;
  cursor:pointer;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
  white-space: nowrap;
}

.btn:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: rgba(81,148,209,.28);
  border-color: rgba(81,148,209,.60);
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
}

.btn-primary:hover{
  background: rgba(81,148,209,.36);
}

/* Mobile hamburger */
.nav-toggle{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  backdrop-filter: blur(12px);
}

.nav-toggle:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}

.hamburger{
  width: 18px;
  height: 12px;
  position: relative;
}

.hamburger span{
  position:absolute;
  left:0; right:0;
  height:2px;
  background: rgba(255,255,255,.88);
  border-radius: 99px;
}

.hamburger span:nth-child(1){ top:0; }
.hamburger span:nth-child(2){ top:5px; opacity:.9; }
.hamburger span:nth-child(3){ bottom:0; }

/* Mobile menu panel */
.mobile-menu{
  display:none;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(56,56,56,.92);
  backdrop-filter: blur(12px);
}

.mobile-menu .container{
  padding-top: 12px;
  padding-bottom: 12px;
}

.mobile-menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  margin-top: 12px;
}

.mobile-menu a:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

body.nav-open .mobile-menu{ display:block; }

/* ---------- Main Layout ---------- */
main{
  padding: clamp(22px, 4vw, 44px) 0;
  min-height: calc(100vh - 76px - 120px);
}

.section{ margin: 0 0 var(--s6); }

.hero{ padding: var(--s3) 0 var(--s4); }

.hero-grid{
  display:grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
}

.hero-actions{
  display:flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap; /* prevents crowding on odd widths */
}

/* Grids */
.grid{
  display:grid;
  gap: 12px;
}

.grid-3{ grid-template-columns: 1fr; }
.grid-2{ grid-template-columns: 1fr; }

.kpi{
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.kpi strong{
  font-family:"Cormorant", Georgia, serif !important;
  font-size: 24px;
  line-height: 1.2;
}

.kpi span{
  color: var(--muted);
  font-size: 16px;
}

/* Lists */
.ul{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.84);
}
.ul li{ margin: 8px 0; }

/* Forms */
form{ display:grid; gap: 12px; }
label{ font-size: 16px; color: rgba(255,255,255,.88); }

input, textarea, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.92);
  font-family: inherit;
  font-size: 16px;
}

textarea{ min-height: 120px; resize: vertical; }

.helper{
  margin-top: 8px;
  font-size: 16px;
  color: rgba(255,255,255,.66);
}

/* Pricing */
.pricing-grid{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.pricing-card .top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap; /* prevents overlap when narrow */
}

.plan{
  font-family:"Cormorant", Georgia, serif !important;
  font-size: 20px;
  margin:0;
  line-height: 1.2;
}

.price{
  font-family:"Cormorant", Georgia, serif !important;
  font-size: 32px;
  line-height: 1.1; /* prevents overlap */
}

.per{
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Footer */
.site-footer{
  background: var(--footer-bg);
  border-top: 1px solid rgba(255,255,255,.10);
}

.footer-inner{
  padding: 18px 0;
  display:flex;
  flex-direction: column;   /* mobile: stack */
  gap: 12px;
  align-items: flex-start;
}

@media (min-width: 860px){
  .footer-inner{
    flex-direction: row;    /* desktop: inline */
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .copyright{
    text-align: right;
    margin-left: auto;      /* pushes it to the far right */
  }
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
}

@media (min-width: 860px){
  .footer-links{
    flex-wrap: nowrap;      /* keeps them inline if they fit */
  }
}

.footer-links a{
  font-size: 16px;
  color: rgba(255,255,255,.84);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(12px);
}

.footer-links a:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

.copyright{
  font-size: 16px;
  color: rgba(255,255,255,.60);
}

/* Desktop enhancements */
@media (min-width: 860px){
  .nav-links{ display:flex; }
  .nav-toggle{ display:none; }

  .hero-grid{
    grid-template-columns: 1.15fr .85fr;
    align-items: start;
  }

  .hero-actions{
    flex-direction: row;
    align-items:center;
  }

  .grid-3{ grid-template-columns: repeat(3, 1fr); }
  .grid-2{ grid-template-columns: 1.2fr .8fr; }
  .pricing-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; }
}
