/* ===========================================================
   Cedar Park Barber-Allen — stylesheet
   Palette: midnight navy / gunmetal chrome / silver / bone paper
   Matched to the CPB crest (navy-blue, brushed steel, black)
   =========================================================== */

:root{
  --navy-950: #060a16;
  --navy-900: #0b1226;
  --navy-800: #131f3f;
  --navy-700: #1c2e5c;
  --royal:     #24408f;
  --royal-light:#4c6fd1;
  --steel:     #aebdd6;
  --steel-light:#dbe3f0;
  --paper:     #f2f1ec;
  --paper-dim: #e7e4d9;
  --bone:      #faf9f5;
  --ink:       #14151c;
  --ink-soft:  #4c505d;

  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --max: 1140px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* subtle grain overlay across whole page */
.grain{
  position: fixed; inset:0; pointer-events:none; z-index: 500;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- headings / type ---------- */
h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-900);
  margin: 0 0 0.45em;
  letter-spacing: 0.005em;
}
p{ margin: 0 0 1em; color: var(--ink-soft); }
.lede{
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 500;
}
em{ font-style: normal; color: var(--royal); }

.section-eyebrow{
  display:inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--royal);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-eyebrow.light{ color: var(--steel); }

/* ---------- buttons ---------- */
.btn{
  display:inline-block;
  padding: 14px 28px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--bone);
  color: var(--navy-900);
  box-shadow: 0 6px 0 var(--navy-950);
}
.btn-primary:hover{ box-shadow: 0 4px 0 var(--navy-950); }
.btn-outline{
  border-color: var(--bone);
  color: var(--bone);
}
.btn-outline:hover{ background: rgba(250,249,245,0.12); }
.btn-outline-dark{
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-outline-dark:hover{ background: var(--navy-800); color: var(--bone); }
.btn-accent{
  background: linear-gradient(180deg, var(--steel-light), var(--steel));
  color: var(--navy-950);
  box-shadow: 0 6px 0 #6d7e9e;
}
.btn-accent:hover{ box-shadow: 0 4px 0 #6d7e9e; }
.btn-ghost{
  border-color: var(--navy-800);
  color: var(--navy-900);
  padding: 10px 20px;
  font-size: 0.9rem;
}
.btn-ghost:hover{ background: var(--navy-900); color: var(--bone); }

/* ---------- header ---------- */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(250,249,245,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(11,18,38,0.12);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 10px; padding-bottom: 10px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-text{
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.15;
  color: var(--navy-900);
  font-weight: 600;
}
.brand-text em{ color: var(--royal); font-style: normal; font-weight: 600; }

.brand-mark{
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(11,18,38,0.15);
}

.nav-links{ display:flex; gap: 30px; }
.nav-links a{
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
}
.nav-links a::after{
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--royal); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a:hover::after{ transform: scaleX(1); }

@media (max-width: 860px){
  .nav-links{ display:none; }
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  color: var(--bone);
  overflow: hidden;
  padding-bottom: 60px;
}
.hero-photo{
  position: absolute; inset:0;
  background-size: cover;
  background-position: center 22%;
}
.hero-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(6,10,22,0.88) 0%, rgba(6,10,22,0.82) 45%, rgba(6,10,22,0.94) 100%),
    linear-gradient(100deg, rgba(6,10,22,0.65) 20%, rgba(11,18,38,0.15) 65%);
}
.hero-inner{
  position: relative;
  padding-top: 90px;
  padding-bottom: 90px;
  max-width: 780px;
}
.hero-crest{
  width: 84px; height: 84px;
  border-radius: 50%;
  margin-bottom: 26px;
  box-shadow: 0 0 0 1px rgba(174,189,214,0.35), 0 14px 30px rgba(0,0,0,0.5);
}
.kicker{
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-title{
  color: var(--bone);
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 26px;
}
.hero-title .ink{ color: var(--steel-light); }
.hero-sub{
  font-size: 1.15rem;
  color: rgba(250,249,245,0.82);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions{ display:flex; gap: 18px; flex-wrap: wrap; }
.hero-divider{
  position:absolute; left:0; right:0; bottom:-2px; line-height:0;
}
.hero-divider svg{ width:100%; height:60px; display:block; }

/* ---------- generic section ---------- */
.section{ padding: 90px 0; }
.two-col{
  display:grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.col-label h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); max-width: 320px; }
.col-body{ max-width: 620px; }

.two-col-media{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.two-col-media.reverse .craft-photo{ order: 2; }
.two-col-media.reverse .craft-text{ order: 1; }
.craft-photo img{
  width:100%; height: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(11,18,38,0.22);
}
.craft-text h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); }

@media (max-width: 760px){
  .two-col{ grid-template-columns: 1fr; gap: 20px; }
  .two-col-media{ grid-template-columns: 1fr; gap: 30px; }
  .two-col-media.reverse .craft-photo,
  .two-col-media.reverse .craft-text{ order: initial; }
}

.rule{
  height:1px; max-width: var(--max); margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(11,18,38,0.18), transparent);
}

.tag-list{
  display:flex; flex-wrap:wrap; gap: 10px; margin-top: 22px;
}
.tag-list li{
  border: 1px solid rgba(11,18,38,0.25);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--navy-800);
  font-weight: 500;
}

/* ---------- gallery ---------- */
.gallery{
  margin-top: 70px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery img{
  width:100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 26px rgba(11,18,38,0.18);
  transition: transform .25s ease;
}
.gallery img:hover{ transform: translateY(-4px); }
@media (max-width: 760px){
  .gallery{ grid-template-columns: repeat(2, 1fr); }
}

/* ---------- signature service ---------- */
.signature{
  position: relative;
  background: var(--navy-950);
  color: var(--bone);
  padding: 100px 0;
}
.signature-media{ align-items: center; }
.signature-inner{ max-width: 520px; }
.signature-title{
  color: var(--bone);
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.15;
}
.signature-sub{
  color: rgba(250,249,245,0.8);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 8px 0 0;
}
.razor-divider{ margin: 26px 0 30px; }

/* ---------- sensory-safe ---------- */
.sensory{ background: var(--paper-dim); }
.sensory .craft-text h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
.sensory-card{
  margin-top: 22px;
  background: var(--bone);
  border: 1px solid rgba(11,18,38,0.12);
  border-left: 4px solid var(--royal);
  border-radius: 6px;
  padding: 28px 32px;
}
.sensory-card p{ color: var(--ink); }
.sensory-card .btn{ margin-top: 8px; }

/* ---------- visit ---------- */
.visit{
  background: var(--navy-950);
  color: var(--bone);
}
.visit-inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.visit-info{ padding: 90px 0; }
.visit-info h2{ color: var(--bone); font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.info-list{ margin: 30px 0 34px; display:flex; flex-direction:column; gap: 20px; }
.info-list dt{
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--steel); font-weight: 600; margin-bottom: 4px;
}
.info-list dd{ margin:0; color: rgba(250,249,245,0.85); }
.info-list a{ color: var(--bone); border-bottom: 1px solid rgba(250,249,245,0.4); }
.visit-actions{ display:flex; gap: 16px; flex-wrap: wrap; }
.visit-map iframe{
  width: 100%; height: 100%; min-height: 420px; border: 0;
  filter: grayscale(0.25) contrast(1.05) brightness(0.95);
}
@media (max-width: 860px){
  .visit-inner{ grid-template-columns: 1fr; }
  .visit-map iframe{ min-height: 320px; }
}

/* ---------- footer ---------- */
.site-footer{
  background: var(--navy-950);
  border-top: 1px solid rgba(250,249,245,0.12);
  padding: 40px 0;
  text-align:center;
}
.footer-inner{ display:flex; flex-direction:column; align-items:center; gap: 14px; }
.footer-brand{ color: var(--bone); }
.footer-brand .brand-text{ color: var(--bone); }
.footer-brand .brand-text em{ color: var(--steel); }
.footer-verse{
  font-family: var(--font-display);
  color: var(--steel);
  font-size: 0.9rem;
}
.footer-fine{
  color: rgba(250,249,245,0.5);
  font-size: 0.78rem;
  max-width: 480px;
}
