/* ==========================================================================
   Blue Jug Alkaline Water & Health Market — Kyle, TX
   Mobile-first. Change the palette in :root and the whole site follows.
   ========================================================================== */

:root {
  /* Palette — swap these for the real brand colors once a logo exists */
  --blue-900: #072f52;
  --blue-800: #0b4f8a;
  --blue-600: #1273c4;
  --blue-100: #e3f0fb;
  --blue-50:  #f2f8fd;

  --ink:      #12232e;
  --ink-soft: #4a5b67;
  --line:     #d9e3ea;
  --bg:       #ffffff;
  --bg-alt:   var(--blue-50);

  --accent:   var(--blue-600);
  --accent-ink: #ffffff;

  --maxw: 1120px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(7, 47, 82, .06), 0 8px 24px rgba(7, 47, 82, .07);

  --step: clamp(3rem, 7vw, 5.5rem);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Offset anchor targets so the sticky header doesn't cover headings */
:target { scroll-margin-top: 5.5rem; }
section[id] { scroll-margin-top: 4.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, iframe { max-width: 100%; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }

a { color: var(--blue-800); }
a:hover { color: var(--blue-600); }

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--blue-900); color: #fff;
  padding: .75rem 1.25rem; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; top: 0; color: #fff; }

/* -------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.wrap-narrow { max-width: 720px; }
.center { text-align: center; }

.section { padding-block: var(--step); }
.section-alt { background: var(--bg-alt); }

.section-lede {
  font-size: 1.125rem; color: var(--ink-soft);
  max-width: 60ch; margin-bottom: 2.5rem;
}
.center .section-lede { margin-inline: auto; }

/* -------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem;
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }

.brand-mark {
  width: 30px; height: 30px; flex: none; border-radius: 50% 50% 50% 8px;
  background: linear-gradient(160deg, var(--blue-600), var(--blue-900));
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: -.01em; }
.brand-text span { font-size: .68rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }

/* Mobile nav toggle — a 44px tap target with a CSS-drawn burger */
.nav-toggle {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { transform: translateY(-6px); }
.nav-toggle-bar::after  { transform: translateY(6px); }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; inset: 100% 0 auto 0;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }

.site-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.site-nav li + li { border-top: 1px solid var(--line); }
.site-nav a {
  display: block; padding: .8rem .25rem;
  text-decoration: none; font-weight: 600; color: var(--ink);
}
.header-call { width: 100%; justify-content: center; }

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .75rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--blue-800); color: #fff; }

.btn-ghost { border-color: var(--blue-800); color: var(--blue-800); background: transparent; }
.btn-ghost:hover { background: var(--blue-100); color: var(--blue-900); }

.btn-lg { font-size: 1.0625rem; padding: .95rem 1.8rem; }
.btn-sm { font-size: .95rem; padding: .6rem 1.1rem; min-height: 40px; }

/* ---------------------------------------------------------------- hero -- */
.hero {
  background:
    radial-gradient(60rem 30rem at 75% -10%, var(--blue-100), transparent 60%),
    linear-gradient(180deg, var(--blue-50), var(--bg));
  padding-block: clamp(3.5rem, 9vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 780px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .09em;
  font-size: .78rem; font-weight: 700; color: var(--blue-600);
  margin-bottom: .9rem;
}

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; margin-bottom: 2rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2rem; }

.hero-rating { display: flex; align-items: center; gap: .6rem; font-size: .98rem; color: var(--ink-soft); margin: 0; }
.stars { color: #e8a020; letter-spacing: .1em; }

/* --------------------------------------------------------------- cards -- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 700px) {
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--blue-900); }
.card p:last-child { margin-bottom: 0; }

.card-accent { border-color: var(--blue-600); border-width: 2px; }

.quote { display: flex; flex-direction: column; margin: 0; }
.quote p { font-size: 1.02rem; }
.quote footer { margin-top: auto; padding-top: .75rem; font-size: .9rem; color: var(--ink-soft); }

.note { margin-top: 1.75rem; color: var(--ink-soft); font-size: 1rem; }

.callout {
  margin-top: 2rem; padding: 1.6rem;
  border-left: 4px solid var(--blue-600);
  background: #fff; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- visit -- */
.visit-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) {
  .visit-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

.visit-details h3 {
  margin-top: 1.75rem; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-soft);
}
.visit-details h3:first-child { margin-top: 0; }

.phone-link { font-size: 1.5rem; font-weight: 700; text-decoration: none; }

.hours { border-collapse: collapse; width: 100%; max-width: 22rem; }
.hours th, .hours td { padding: .5rem 0; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { color: var(--ink-soft); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .closed { color: var(--ink-soft); font-style: italic; }

.visit-map {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  line-height: 0;
}
.visit-map iframe { width: 100%; height: 380px; }

/* -------------------------------------------------------------- footer -- */
.site-footer {
  background: var(--blue-900); color: #cfe2f2;
  padding-block: 3rem 2rem;
  /* Clear the fixed mobile call bar */
  padding-bottom: 6rem;
}
.site-footer a { color: #fff; }
.footer-inner p { margin: 0 0 .35rem; font-size: .95rem; }
.footer-brand { font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: .6rem !important; }
.copyright { margin-top: 2rem !important; font-size: .85rem; color: #8fb4d4; }

/* ----------------------------------------------------- mobile call bar -- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 56px; padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 -4px 16px rgba(7, 47, 82, .18);
}

/* ------------------------------------------------------------ desktop -- */
@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: flex; align-items: center; gap: 1.75rem;
    position: static; padding: 0; border: 0; box-shadow: none; background: none;
  }
  .site-nav ul { display: flex; gap: 1.5rem; margin: 0; }
  .site-nav li + li { border-top: 0; }
  .site-nav a { padding: .25rem 0; font-weight: 600; font-size: .97rem; }
  .site-nav a:hover { color: var(--blue-600); }

  .header-call { width: auto; }

  /* Desktop has the header call button, so the sticky bar is redundant */
  .call-bar { display: none; }
  .site-footer { padding-bottom: 2rem; }
}

/* ------------------------------------------------------------- motion -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------- print -- */
@media print {
  .site-header, .call-bar, .visit-map, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
}
