/*
Theme Name: Salah Barbershop
Theme URI: https://www.it-ps.net
Author: IT Pro Services LLC
Author URI: https://www.it-ps.net
Description: One-page black & gold theme for Salah Barbershop, Jacksonville FL. Services and prices, barbers, gallery, hours, map and online booking (Blismo). Everything is editable in Appearance → Customize → Salah Barbershop.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: salah-barbershop
*/

:root {
  --gold: #e2a92b;
  --gold-light: #f9d976;
  --gold-dark: #b9811a;
  --black: #0a0a0a;
  --ink: #111111;
  --card: #161616;
  --line: #2a2a2a;
  --text: #e9e9e9;
  --muted: #a8a8a8;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;
  --radius: 14px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover, a:focus { color: var(--gold-light); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto;
  background: var(--gold); color: #000; padding: 10px 16px; border-radius: 8px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; font-weight: 700; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid transparent; cursor: pointer;
}
.btn-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark)); color: #111; }
.btn-gold:hover, .btn-gold:focus { color: #000; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(226,169,43,.35); }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover, .btn-outline:focus { background: var(--gold); color: #000; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(10,10,10,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,169,43,.18);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand img { height: 52px; width: auto; }
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: 2px; color: #fff; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 4px; color: var(--gold); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.main-nav a { color: #ddd; font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.main-nav a:hover, .main-nav a:focus { color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; }
.header-cta .btn { padding: 11px 22px; font-size: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: #fff; border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: #fff; margin: 0 auto; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden; text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(226,169,43,.16), transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,.86));
}
.hero > .container { position: relative; }
.hero-logo { width: min(520px, 86%); margin: 0 auto 26px; }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 6px; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 5.5vw, 64px); line-height: 1.12;
  margin: 0 0 18px; color: #fff;
}
.hero h1 .gold, .gold-text {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: #d0d0d0; max-width: 680px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 46px; color: #cfcfcf; font-size: 14px; }
.hero-badges span strong { color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--ink); border-top: 1px solid #1c1c1c; border-bottom: 1px solid #1c1c1c; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); margin: 0 0 14px; color: #fff; line-height: 1.15; }
.section-head p { color: var(--muted); margin: 0; }
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 18px; }
.divider::before, .divider::after { content: ""; height: 1px; width: 70px; background: var(--gold); }
.divider i { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); display: block; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.about-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-text h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); margin: 0 0 18px; color: #fff; line-height: 1.15; }
.about-text p { color: #cfcfcf; }
.features { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.features li { display: flex; gap: 10px; align-items: flex-start; color: #e5e5e5; font-size: 15px; }
.features li::before { content: ""; flex: 0 0 9px; height: 9px; margin-top: 8px; background: var(--gold); transform: rotate(45deg); }

/* ---------- Services ---------- */
.price-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; max-width: 980px; margin: 0 auto; }
.price-item { display: flex; align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px dashed #333; }
.price-item .name { font-weight: 600; color: #fff; font-size: 17px; }
.price-item .time { color: var(--muted); font-size: 13px; margin-left: 6px; white-space: nowrap; }
.price-item .dots { flex: 1; }
.price-item .price { font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 22px; }
.services-cta { text-align: center; margin-top: 50px; }
.services-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 16px; }

/* ---------- Barbers ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.barber {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 22px;
  text-align: center; transition: border-color .2s ease, transform .2s ease;
}
.barber:hover { border-color: var(--gold); transform: translateY(-4px); }
.barber .avatar {
  width: 110px; height: 110px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  border: 2px solid var(--gold); background: radial-gradient(circle at 30% 30%, #2a2210, #0d0d0d);
  font-family: var(--serif); font-size: 36px; color: var(--gold);
}
.barber .avatar img { width: 100%; height: 100%; object-fit: cover; }
.barber h3 { margin: 0 0 4px; color: #fff; font-size: 19px; }
.barber p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.barber .btn { padding: 10px 20px; font-size: 11px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid figure { margin: 0; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.gallery-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-empty { text-align: center; color: var(--muted); border: 1px dashed #333; border-radius: var(--radius); padding: 40px 20px; }
.social-row { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ---------- Reviews ---------- */
.rating-box {
  max-width: 760px; margin: 0 auto; text-align: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 46px 28px;
}
.rating-box .score { font-family: var(--serif); font-size: 64px; color: #fff; line-height: 1; }
.stars { color: var(--gold); font-size: 26px; letter-spacing: 4px; margin: 10px 0; }
.rating-box p { color: var(--muted); margin: 0 0 24px; }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.info-card h3 { font-family: var(--serif); color: #fff; font-size: 26px; margin: 0 0 18px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 26px; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px solid #262626; text-align: left; font-size: 15px; }
.hours th { color: #fff; font-weight: 600; }
.hours td { color: #cfcfcf; text-align: right; }
.hours tr.today th, .hours tr.today td { color: var(--gold); }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; color: #e5e5e5; }
.contact-line .ico { color: var(--gold); width: 22px; flex: 0 0 22px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 420px; background: #111; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 80px 0; text-align: center;
  background: linear-gradient(135deg, #1a1408, #0a0a0a 60%);
  border-top: 1px solid rgba(226,169,43,.3); border-bottom: 1px solid rgba(226,169,43,.3);
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); color: #fff; margin: 0 0 12px; }
.cta-band p { color: #cfcfcf; margin: 0 0 30px; }

/* ---------- Content pages ---------- */
.page-wrap { padding: 140px 0 80px; }
.entry { max-width: 820px; margin: 0 auto; }
.entry h1 { font-family: var(--serif); color: #fff; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; }
.entry h2, .entry h3 { font-family: var(--serif); color: #fff; }
.entry-meta { color: var(--muted); font-size: 14px; }
.post-card { border-bottom: 1px solid var(--line); padding: 26px 0; }
.post-card h2 a { color: #fff; }
.pagination { margin-top: 30px; display: flex; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: #050505; padding: 60px 0 30px; border-top: 1px solid #1a1a1a; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfcfcf; }
.site-footer a:hover { color: var(--gold); }
.footer-logo { width: 190px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #1a1a1a; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* ---------- Mobile sticky booking bar ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .team-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .header-phone { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0; background: rgba(10,10,10,.97);
    border-bottom: 1px solid rgba(226,169,43,.2); display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 20px 20px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid #1d1d1d; }
  .header-cta .btn { display: none; }
  .about-grid, .visit-grid, .price-list, .footer-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 34px; }
  .section { padding: 72px 0; }
  .features { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    border-top: 1px solid rgba(226,169,43,.35); background: #0a0a0a;
  }
  .mobile-bar a { padding: 15px 10px; text-align: center; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
  .mobile-bar a.call { color: #fff; }
  .mobile-bar a.book { background: var(--gold); color: #000; }
  body { padding-bottom: 52px; }
}
@media (max-width: 520px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .barber { padding: 22px 12px; }
  .barber .avatar { width: 80px; height: 80px; font-size: 26px; }
  .brand-name { display: none; }
  .hero-badges { gap: 14px; flex-direction: column; }
}

/* Logo has a black background: blend it into dark sections */
.hero-logo, .footer-logo, .brand img, .about-media img[src*="logo"] { mix-blend-mode: lighten; }
