/* ============================================
   STREET BARBER — Design Tokens
   ============================================ */
:root {
  /* Brand colors (from manual de identidade) */
  --c-black: #0B0B0B;
  --c-white: #F5F5F5;
  --c-blue: #1497D8;
  --c-blue-dark: #0F5F8F;
  --c-gray-light: #D6D6D6;
  --c-gray-mid: #8B8B8B;
  --c-gray-dark: #3C3C3C;

  /* Semantic tokens */
  --bg: var(--c-black);
  --bg-elevated: var(--c-gray-dark);
  --text-primary: var(--c-white);
  --text-secondary: var(--c-gray-light);
  --text-muted: var(--c-gray-mid);
  --border-subtle: rgba(245, 245, 245, 0.12);
  --accent: var(--c-blue);
  --accent-dark: var(--c-blue-dark);

  /* Typography */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-script: 'Lobster', cursive;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', 'Montserrat', sans-serif;

  /* Spacing (8px rhythm) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Radius — discrete, never fully square, never pill */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-med: 280ms;

  --container: 1200px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  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; }
h1, h2, h3, h4 { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--c-black);
  padding: var(--space-2);
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================
   Typography scale
   ============================================ */
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-2);
}
.eyebrow.center { text-align: center; }

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
.h2.center { text-align: center; }

.lead {
  font-size: clamp(18px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 60ch;
}

.body-text {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 65ch;
}

.text-accent { color: var(--accent); }

.link-underline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.link-underline:hover,
.link-underline:focus-visible {
  color: var(--accent);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  min-height: 48px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--c-black);
  color: var(--text-primary);
  border-color: var(--accent);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  color: var(--c-black);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg { padding: 17px 34px; font-size: 15px; }

/* ============================================
   Header
   ============================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img { height: 44px; width: auto; display: block; }
.footer-brand .logo-img { height: 56px; }

/* ============================================
   Texture helpers
   ============================================ */
.hero-texture {
  background-image:
    repeating-linear-gradient(135deg, rgba(245,245,245,0.035) 0px, rgba(245,245,245,0.035) 1px, transparent 1px, transparent 12px),
    radial-gradient(circle at 30% 20%, rgba(20,151,216,0.10), transparent 55%),
    linear-gradient(180deg, #131313 0%, #0B0B0B 60%);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; padding-bottom: var(--space-6); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 0 var(--space-4);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ============================================
   Marquee
   ============================================ */
.marquee {
  background: var(--c-gray-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  padding: var(--space-2) 0;
}
.marquee-track {
  display: flex;
  gap: var(--space-3);
  white-space: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.marquee-track span:nth-child(odd) { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* ============================================
   Section spacing rhythm
   ============================================ */
section:not(.hero):not(.marquee) { padding: var(--space-7) 0; }
@media (max-width: 599px) {
  section:not(.hero):not(.marquee) { padding: var(--space-6) 0; }
}

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-4); }
}

.about-media {
  display: flex;
  justify-content: center;
}
.about-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

/* ============================================
   Services
   ============================================ */
.services-grid {
  display: grid;
  gap: var(--space-5) var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .service-card:nth-child(1) { grid-column: 1 / 3; }
  .service-card:nth-child(2) { grid-column: 3 / 5; }
  .service-card:nth-child(3) { grid-column: 5 / 7; }
  .service-card:nth-child(4) { grid-column: 2 / 4; }
  .service-card:nth-child(5) { grid-column: 4 / 6; }
}

.service-card { text-align: center; }
.service-card img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: var(--bg);
  border-radius: var(--radius-md);
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: var(--space-2);
}

/* ============================================
   Why (diferenciais)
   ============================================ */
.why { background: #101010; }
.why-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-item { text-align: left; }
.why-icon {
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.why-icon svg { width: 24px; height: 24px; }
.why-item h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.why-item p { color: var(--text-secondary); font-size: 15px; margin: 0; }

/* ============================================
   Gallery
   ============================================ */
.gallery .h2 { margin-bottom: var(--space-4); }

.gallery-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4 / 5;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: float 5s var(--ease-out) infinite;
}
.gallery-item:nth-child(2) img { animation-delay: 0.8s; }
.gallery-item:nth-child(3) img { animation-delay: 1.6s; }
.gallery-item:nth-child(4) img { animation-delay: 0.4s; }
.gallery-item:nth-child(5) img { animation-delay: 1.2s; }
.gallery-item:nth-child(6) img { animation-delay: 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1.1); }
  50% { transform: translateY(-8px) scale(1.1); }
}

/* ============================================
   Location
   ============================================ */
.location-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 900px) {
  .location-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-7); }
}

.info-list { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-3) 0 var(--space-4); }
.info-list li { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--text-secondary); }
.info-icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.info-icon svg { width: 20px; height: 20px; }

.location-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4 / 3;
}
.location-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) invert(0.92) contrast(0.9); }

/* ============================================
   CTA Final
   ============================================ */
.cta-final {
  background:
    radial-gradient(circle at 50% 0%, rgba(20,151,216,0.14), transparent 60%),
    var(--c-black);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.cta-final-inner { display: flex; flex-direction: column; align-items: center; }
.cta-final .lead { margin: 0 0 var(--space-4); }
.cta-final .hero-actions { justify-content: center; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-6);
}
.footer-grid {
  display: grid;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr; }
}
.footer-tagline { color: var(--text-muted); font-size: 14px; margin: var(--space-2) 0 var(--space-2); }
.footer-social { display: flex; gap: var(--space-2); }
.footer-social a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover, .footer-social a:focus-visible { border-color: var(--accent); color: var(--accent); }

.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.footer-contact p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 8px;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3) 0;
}
.footer-bottom p { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ============================================
   Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
