/* The Brickworks Barber Shop — demo landing page for Cerevision's template store.
   House style calibrated against Cerevision's own products: oversized type
   contrast, a floating pill nav, icon badges in solid rounded squares, one
   confident accent. Palette locked to the client's own copper crest. */

:root{
  --espresso: #1c1410;
  --espresso-deep: #120d0a;
  --espresso-panel: #241a14;
  --cream: #f7f0e4;
  --cream-panel: #efe4d2;
  --ink: #241a12;
  --ink-dim: #5c4c3c;
  --copper: #bd7f3f;
  --copper-deep: #96602c;
  --copper-light: #dcab6e;
  --line-dark: rgba(247,240,228,.14);
  --line-light: rgba(36,26,18,.12);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: 'Bitter', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--espresso);
  color:var(--cream);
  font-family:var(--font-body);
  font-weight:400;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
h1,h2,h3{font-family:var(--font-display); font-weight:700; line-height:1.04; letter-spacing:-.01em;}
h1 em, h2 em{font-style:italic; font-weight:600; color:var(--copper-light); line-height:1.15; display:inline-block; padding-bottom:.06em;}
.wrap{max-width:1280px; margin:0 auto; padding:0 24px;}

.grain{
  position:fixed; inset:0; z-index:60; pointer-events:none;
  opacity:.045; mix-blend-mode:overlay;
  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");
}

/* ---------- theme blocks ---------- */
.theme-dark{background:var(--espresso); color:var(--cream);}
.theme-light{background:var(--cream); color:var(--ink);}
.theme-light .section-head p, .theme-light .about-copy p{color:var(--ink-dim);}
.theme-light h2{color:var(--ink);}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:15px 28px; border-radius:999px;
  font-family:var(--font-body); font-weight:600; font-size:15px;
  white-space:nowrap; border:1.5px solid transparent;
  transition:transform .2s cubic-bezier(.16,1,.3,1), background .2s, border-color .2s;
}
.btn:active{transform:translateY(1px) scale(.97);}
.btn-primary{background:var(--copper); color:var(--espresso-deep);}
.btn-primary:hover{background:var(--copper-light, #dcab6e); transform:translateY(-2px);}
.btn-outline{background:transparent; border-color:var(--copper-deep); color:var(--copper-deep);}
.theme-dark .btn-outline{border-color:var(--copper); color:var(--copper-light, #dcab6e);}
.btn-outline:hover{background:rgba(189,127,63,.12);}
.btn-small{padding:11px 22px; font-size:14px;}

/* ---------- floating pill nav ---------- */
.site-nav{position:fixed; top:18px; left:0; right:0; z-index:50; padding:0 20px;}
.nav-pill{
  max-width:1100px; margin:0 auto;
  display:flex; align-items:center; gap:30px;
  background:rgba(247,240,228,.94);
  border:1px solid rgba(36,26,18,.08);
  border-radius:999px;
  padding:10px 12px 10px 18px;
  box-shadow:0 12px 32px rgba(18,13,10,.35);
  backdrop-filter:blur(10px);
  transition:box-shadow .3s;
}
.brand{display:flex; align-items:center; gap:10px; margin-right:auto;}
.brand-mark{height:34px; width:34px; object-fit:contain;}
.brand-word{font-family:var(--font-display); font-weight:700; font-size:15.5px; color:var(--ink); letter-spacing:.01em;}
.nav-links{display:flex; gap:24px; font-size:14px; color:var(--ink-dim); font-weight:500;}
.nav-links a:hover{color:var(--ink);}
.nav-toggle{
  display:none; background:none; border:none; color:var(--ink); font-size:22px; cursor:pointer; padding:6px;
}
.nav-mobile{
  display:none; flex-direction:column; gap:2px; margin:8px 0 0;
  background:var(--cream); border-radius:var(--radius);
  padding:8px 18px 18px; box-shadow:0 12px 32px rgba(18,13,10,.35);
}
.nav-mobile a{padding:12px 0; font-size:15px; color:var(--ink); border-bottom:1px solid var(--line-light);}
.nav-mobile .btn{margin-top:14px; width:100%;}
.nav-mobile.open{display:flex;}

@media (max-width:860px){
  .nav-links, .nav-pill > .btn{display:none;}
  .nav-toggle{display:block;}
  .nav-pill{padding:8px 8px 8px 16px;}
}

/* ---------- hero ---------- */
.hero{position:relative; overflow:hidden;}
.hero-grid{
  display:grid; grid-template-columns:1fr 1.05fr; align-items:center; gap:56px;
  min-height:100dvh; padding:130px 24px 100px;
}
.hero-copy h1{font-size:clamp(3rem, 6vw, 5.2rem);}
.hero-sub{
  margin-top:24px; max-width:44ch; color:var(--cream-panel, #e6d9c2); font-size:17.5px; line-height:1.6;
}
.hero-actions{margin-top:36px; display:flex; flex-wrap:wrap; align-items:center; gap:28px;}
.hero-meta{display:flex; flex-direction:column; gap:6px; font-size:13.5px; color:#cbb99e;}
.hero-meta-line{display:flex; align-items:center; gap:7px;}
.hero-media{position:relative; aspect-ratio:4/5;}
.hero-media-crop{position:relative; width:100%; height:100%; border-radius:20px; overflow:hidden;}
.hero-media-crop img{width:100%; height:100%; object-fit:cover;}
.hero-media-frame{
  position:absolute; inset:14px; border:1px solid rgba(247,240,228,.22); border-radius:8px; pointer-events:none;
}

/* rotating stamp badge, echoing the shield/crest of the real logo.
   Lives outside .hero-media-crop so its own overflow:hidden can't clip it. */
.stamp{
  position:absolute; right:-26px; bottom:-26px; width:148px; height:148px;
  display:flex; align-items:center; justify-content:center; z-index:3;
}
.stamp-ring{
  position:absolute; inset:0; width:100%; height:100%;
  animation:spin 22s linear infinite;
}
.stamp-ring text{font-family:var(--font-body); font-size:11.6px; letter-spacing:.04em; fill:var(--espresso-deep); font-weight:600;}
.stamp-center{
  position:relative; width:64px; height:64px; border-radius:50%;
  background:var(--copper); color:var(--espresso-deep);
  display:flex; align-items:center; justify-content:center; font-size:24px;
  box-shadow:0 8px 20px rgba(18,13,10,.4);
}
.stamp::before{
  content:""; position:absolute; inset:0; border-radius:50%;
  background:var(--cream); box-shadow:0 10px 30px rgba(18,13,10,.45);
}
@keyframes spin{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion:reduce){ .stamp-ring{animation:none;} }
@media (max-width:640px){ .stamp{width:108px; height:108px; right:-14px; bottom:-14px;} .stamp-center{width:48px; height:48px; font-size:18px;} }

.divider{position:absolute; left:0; right:0; bottom:-1px; height:60px; line-height:0; z-index:2;}
.divider svg{width:100%; height:100%; display:block;}
.divider-slash svg path, .divider-wave svg path{fill:var(--cream);}
.divider-comb svg path, .divider-brick svg path{fill:var(--espresso);}
.divider-comb{height:44px;}

.divider-scissors{
  position:absolute; left:50%; bottom:22px; transform:translateX(-50%) rotate(-3deg);
  width:46px; height:46px; border-radius:50%;
  background:var(--copper); color:var(--espresso-deep);
  display:flex; align-items:center; justify-content:center; font-size:19px;
  box-shadow:0 8px 18px rgba(18,13,10,.4); z-index:3;
}

@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr; padding-top:110px; min-height:auto;}
  .hero-media{order:-1; aspect-ratio:16/10;}
}

/* ---------- section head ---------- */
.section-head{margin-bottom:56px; max-width:36ch;}
.section-head h2{font-size:clamp(2rem, 3.6vw, 2.9rem);}

/* ---------- icon badges (house style: solid rounded square, not a bare glyph) ---------- */
.icon-badge{
  display:inline-flex; align-items:center; justify-content:center;
  width:56px; height:56px; border-radius:var(--radius-sm);
  background:linear-gradient(150deg, var(--copper), var(--copper-deep));
  color:var(--espresso-deep); font-size:24px;
  box-shadow:0 10px 22px rgba(150,96,44,.35);
  margin-bottom:20px; transform:rotate(-3deg);
}
.icon-badge-inverse{background:linear-gradient(150deg, var(--cream), var(--cream-panel)); box-shadow:0 10px 22px rgba(0,0,0,.28);}
.icon-badge-sm{width:44px; height:44px; font-size:18px; border-radius:10px; transform:rotate(-3deg); flex-shrink:0;}

/* ---------- services ---------- */
.services{padding:120px 0 60px; position:relative;}
.price-groups{
  display:grid; grid-template-columns:1fr 1.15fr 1fr; gap:22px; align-items:stretch;
}
.price-group{
  border:1px solid var(--line-light); border-radius:20px; padding:34px 30px;
  background:#fffaf1;
}
.price-group-title{font-size:19px; margin-bottom:20px; color:var(--ink);}
.price-list{list-style:none;}
.price-list li{display:flex; align-items:baseline; gap:10px; padding:11px 0; border-bottom:1px solid var(--line-light);}
.price-list li:last-child{border-bottom:none;}
.p-name{font-size:15px; color:var(--ink);}
.p-name small{color:var(--ink-dim); font-size:12px;}
.p-line{flex:1; border-bottom:1px dotted rgba(36,26,18,.22); transform:translateY(-4px);}
.p-price{font-family:var(--font-display); font-weight:600; font-size:16px; color:var(--copper-deep);}

.price-group-featured{
  background:linear-gradient(165deg, var(--espresso), var(--espresso-panel));
  color:var(--cream); border-color:transparent;
  position:relative; display:flex; flex-direction:column;
  transition:transform .35s cubic-bezier(.16,1,.3,1);
}
.price-group-featured .price-group-title{color:var(--cream);}
.price-group-featured:hover{transform:translateY(-8px) rotate(-.4deg);}
.featured-tag{
  position:absolute; top:-14px; left:30px; background:var(--copper); color:var(--espresso-deep);
  font-size:11.5px; font-weight:700; padding:6px 14px; border-radius:999px; letter-spacing:.02em;
}
.featured-price{font-family:var(--font-display); font-size:46px; font-weight:700; color:var(--cream); margin-bottom:14px;}
.featured-desc{color:#cbb99e; font-size:14.5px; line-height:1.6; margin-bottom:26px; flex:1;}

@media (max-width:860px){
  .price-groups{grid-template-columns:1fr;}
}

/* ---------- gallery ---------- */
.gallery{padding:110px 0 130px; position:relative;}
.gallery .section-head h2{color:var(--cream);}
.gallery-grid{
  display:grid; grid-template-columns:1.1fr 1fr 1fr; grid-template-rows:auto auto; gap:18px;
}
.g-item{border-radius:16px; overflow:hidden; position:relative;}
.g-item img{width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.16,1,.3,1);}
.g-item:hover img{transform:scale(1.06);}
.g-tall{grid-row:1 / 3;}
.g-wide{grid-column:2 / 4;}
.g-item:not(.g-tall):not(.g-wide){aspect-ratio:1/1;}
.g-tall img, .g-wide img{aspect-ratio:auto; height:100%;}

@media (max-width:860px){
  .gallery-grid{grid-template-columns:1fr 1fr;}
  .g-tall{grid-row:auto; aspect-ratio:3/4;}
  .g-wide{grid-column:1/3; aspect-ratio:16/9;}
}
@media (max-width:520px){
  .gallery-grid{grid-template-columns:1fr;}
  .g-wide{grid-column:1;}
}

/* ---------- about ---------- */
.about{padding:120px 0 130px; position:relative;}
.about-grid{display:grid; grid-template-columns:.9fr 1.1fr; gap:70px; align-items:center;}
.about-media{position:relative;}
.about-media img{border-radius:18px; aspect-ratio:4/5; object-fit:cover;}
.tape{position:absolute; width:64px; height:22px; background:rgba(189,127,63,.55); box-shadow:0 4px 10px rgba(0,0,0,.15);}
.tape-1{top:-10px; left:26px; transform:rotate(-8deg);}
.tape-2{bottom:18px; right:-14px; transform:rotate(8deg); width:52px;}
.about-copy h2{font-size:clamp(2rem, 3.4vw, 2.7rem); margin-bottom:24px;}
.about-copy p{font-size:16.5px; line-height:1.75; max-width:52ch;}
.about-signoff{margin-top:22px; color:var(--copper-deep); font-family:var(--font-display); font-style:italic;}

@media (max-width:860px){
  .about-grid{grid-template-columns:1fr; gap:40px;}
}

/* ---------- location ---------- */
.location{padding:110px 0 130px; position:relative;}
.location-grid{display:grid; grid-template-columns:1fr 1.05fr; gap:64px; align-items:center;}
.location-copy h2{font-size:clamp(2rem, 3.4vw, 2.7rem); margin-bottom:36px;}
.location-facts{display:flex; flex-direction:column; gap:24px; margin-bottom:40px;}
.fact{display:flex; align-items:center; gap:16px; font-size:15px;}
.fact strong{display:block; font-size:16px; color:var(--cream);}
.fact span{color:#cbb99e; font-size:13.5px;}
.location-map{position:relative;}
.sign-photo{border-radius:18px; aspect-ratio:16/10; object-fit:cover; margin-bottom:18px;}
.map-embed{border-radius:18px; overflow:hidden; border:1px solid var(--line-dark);}
.map-embed iframe{width:100%; height:220px; border:0; filter:grayscale(.3) contrast(1.05);}

@media (max-width:860px){
  .location-grid{grid-template-columns:1fr; gap:40px;}
}

/* ---------- footer ---------- */
.site-footer{background:var(--espresso-deep); padding:70px 0 0; border-top:1px solid var(--line-dark);}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:50px;
}
.footer-brand img{height:44px; margin-bottom:16px;}
.footer-brand p{color:#a99781; font-size:14px; line-height:1.7;}
.footer-col h4{font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--copper); margin-bottom:16px; font-weight:600;}
.footer-col a{display:block; color:#a99781; font-size:14.5px; padding:6px 0;}
.footer-col a:hover{color:var(--cream);}
.footer-col p{color:#a99781; font-size:14px; line-height:1.8;}
.footer-social{display:flex; gap:14px;}
.footer-social a{
  width:40px; height:40px; border-radius:10px;
  background:var(--espresso-panel);
  display:flex; align-items:center; justify-content:center; font-size:17px;
}
.footer-social a:hover{background:var(--copper); color:var(--espresso-deep);}
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  border-top:1px solid var(--line-dark); padding:22px 24px; font-size:13px; color:#a99781;
}
.footer-credit{color:#a99781; opacity:.8;}
.footer-credit:hover{color:var(--copper-light, #dcab6e); opacity:1;}

@media (max-width:760px){
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:480px){
  .footer-grid{grid-template-columns:1fr;}
}

/* ---------- scroll reveal: generic fallback ---------- */
[data-reveal]{opacity:0; transform:translateY(28px);}

/* hero: headline enters word by word, then subtext/actions/photo settle in */
.split-words .w{display:inline-block; opacity:0; transform:translateY(34px) rotate(2deg);}
.hero-sub, .hero-actions{opacity:0; transform:translateY(20px);}
.hero-media{opacity:0; transform:scale(1.06);}

/* stamp: pressed in like a wax seal when it enters view */
.stamp{opacity:0; transform:scale(1.6) rotate(-18deg);}

/* services: cards arrive from three different directions, the featured one pops */
.price-card{opacity:0;}
.price-card-left{transform:translateX(-56px) rotate(-2deg);}
.price-card-right{transform:translateX(56px) rotate(2deg);}
.price-card-pop{transform:scale(.8) translateY(26px);}

/* gallery: each frame wipes open like a blade cut, corner to corner */
.g-wipe img{clip-path:polygon(0 0, 0 0, 0 0, 0 0);}

/* about: photo drops in slightly rotated, copy lines stagger after */
.about-rotate-in{opacity:0; transform:rotate(-7deg) scale(.9) translateY(20px);}
.about-text-stagger > *{opacity:0; transform:translateY(22px);}
.tape{opacity:0; transform:scale(.4);}

/* location: facts pop in one at a time, the map/sign slides in from the right */
.fact-pop{opacity:0; transform:translateX(-22px);}
.fact-pop .icon-badge{transform:scale(0) rotate(-25deg);}
.location-slide-in{opacity:0; transform:translateX(52px);}

@media (prefers-reduced-motion:reduce){
  [data-reveal], .split-words .w, .hero-sub, .hero-actions, .hero-media,
  .stamp, .price-card, .g-wipe img,
  .about-rotate-in, .about-text-stagger > *, .tape, .fact-pop, .fact-pop .icon-badge,
  .location-slide-in{
    opacity:1; transform:none; clip-path:none;
  }
  .stamp-ring{animation:none;}
  html{scroll-behavior:auto;}
}
