/*
Theme Name: UNCUT Studio
Theme URI: https://uncutstudio.gr
Author: Mr. Python
Description: Custom WordPress theme for UNCUT Studio barbershop in Xanthi. Includes Cal.com booking integration and WooCommerce support.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uncut-studio
*/

:root {
  --uncut-bg: #06070a;
  --uncut-fg: #f7f7f5;
  --uncut-card: #101116;
  --uncut-blue: #111ab5;
  --uncut-blue-bright: #222be2;
  --uncut-steel: #d8dade;
  --uncut-muted: #a9acb3;
  --uncut-border: rgba(255, 255, 255, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--uncut-bg); }
body {
  margin: 0;
  background: var(--uncut-bg);
  color: var(--uncut-fg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid #97a0ff; outline-offset: 4px; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  top: 8px; left: 8px; z-index: 100000;
  width: auto; height: auto; margin: 0; padding: .7rem 1rem;
  clip: auto; background: #fff; color: #111;
}

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 5vw, 5rem);
  background: linear-gradient(90deg, rgba(5, 6, 9, .97), rgba(8, 9, 13, .93));
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .19);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand { color: #fff; font-weight: 900; letter-spacing: -.055em; font-size: 1.3rem; white-space: nowrap; }
.brand span { color: #aeb4ff; font-weight: 400; margin-left: .25rem; letter-spacing: .06em; }
.site-header nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.5rem); font-size: .9rem; }
.site-header nav a { color: #f4f4f2; text-shadow: 0 1px 12px #000; }
.site-header nav a:hover { color: #fff; }
.site-header .nav-book { border: 1px solid rgba(255,255,255,.61); padding: .55rem .9rem; color: #fff; background: rgba(255,255,255,.05); text-shadow: none; }

.hero {
  min-height: min(900px, 100svh);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--uncut-blue);
  overflow: hidden;
}
.hero-copy {
  padding: clamp(8rem, 14vw, 12rem) clamp(1.5rem, 6vw, 6.5rem) 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow { font-size: .75rem; letter-spacing: .24em; font-weight: 700; margin: 0 0 1rem; }
.hero h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(6rem, 15vw, 13rem);
  line-height: .76;
  letter-spacing: -.035em;
  font-weight: 900;
}
.hero-tagline { margin: 1.8rem 0 0; letter-spacing: .22em; font-weight: 700; }
.hero-intro { max-width: 36rem; font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.78); margin: 2.4rem 0; }
.hero-cta, .booking-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 3.25rem;
  width: fit-content;
  background: #f5f5f2;
  color: var(--uncut-blue);
  border: 0;
  padding: .8rem 1.2rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.hero-cta:hover, .booking-button:hover { transform: translateY(-2px); background: #fff; }
.inline-icon { width: 1rem; height: 1rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-visual { position: relative; min-height: 520px; background: #d7d9dc; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; filter: contrast(1.06) saturate(1.06); }
.steel-label {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  padding: .65rem .9rem;
  color: var(--uncut-blue);
  font-weight: 900;
  letter-spacing: .12em;
  background: linear-gradient(115deg, #f4f4f2, #aeb2b7 48%, #f7f7f5);
  box-shadow: 0 12px 35px rgba(0,0,0,.21);
}

.about-section {
  padding: clamp(5rem, 9vw, 8rem) clamp(1.25rem, 6vw, 6.5rem);
  background: var(--uncut-steel);
  color: #0c0d10;
  display: grid;
  grid-template-columns: .65fr 2fr;
  gap: 2rem 5rem;
}
.about-section .eyebrow { color: #121cc3; }
.about-section > div { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: end; }
.about-section h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 6rem); line-height: .9; letter-spacing: -.055em; }
.about-section div p { margin: 0 0 .5rem; color: #4f5259; max-width: 35rem; font-size: 1.1rem; }

.services-section { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 6vw, 6.5rem); background: #07080b; }
.section-heading { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem 4rem; margin-bottom: 3rem; align-items: end; }
.section-heading .eyebrow { grid-column: 1 / -1; color: #6974ff; }
.section-heading h2, .info-title h2 { font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: .95; letter-spacing: -.05em; margin: 0; max-width: 12ch; }
.section-heading > p:last-child { color: #aeb0b7; max-width: 32rem; margin: 0 0 .4rem; }
.service-grid { border-top: 1px solid var(--uncut-border); }
.service-card {
  display: grid;
  grid-template-columns: 4rem 1.5fr .7fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--uncut-border);
}
.service-number { color: #5964f2; font-size: .85rem; font-weight: 800; }
.service-card h3 { margin: 0 0 .45rem; font-size: clamp(1.25rem, 2.4vw, 2rem); }
.service-card p { margin: 0; color: #989ba3; }
.service-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.service-meta span { display: flex; align-items: center; gap: .45rem; white-space: nowrap; color: #b9bbc1; }
.service-meta strong { font-size: 1.8rem; }
.booking-button { color: #0c0d10; min-width: 11rem; }

.info-section {
  background: var(--uncut-steel);
  color: #0c0d10;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 6vw, 6.5rem);
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 2rem;
}
.info-title { padding-right: 2rem; }
.info-title > .info-icon { width: 2.2rem; height: 2.2rem; color: #121cc3; margin-bottom: 2rem; }
.info-title .eyebrow { color: #121cc3; }
.info-title > p:last-child { color: #4f5259; max-width: 35rem; margin-top: 2rem; }
.hours-card, .location-card { background: #f4f4f2; padding: 2rem; align-self: stretch; }
.hours-card h3, .location-card h3 { margin: 0 0 1.5rem; font-size: 1.35rem; }
.hours-card dl { margin: 0; }
.hours-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid rgba(17,17,17,.13); }
.hours-card dt { color: #54565c; }
.hours-card dd { margin: 0; font-weight: 800; text-align: right; }
.location-card { background: var(--uncut-blue); color: #fff; display: flex; flex-direction: column; }
.location-card > .inline-icon { width: 2rem; height: 2rem; margin-bottom: 3rem; }
.location-card p { color: rgba(255,255,255,.77); }
.location-card a { margin-top: auto; padding-top: 3rem; display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; }

.site-footer {
  background: #050609;
  padding: 4rem clamp(1.25rem, 6vw, 6.5rem);
  display: grid;
  grid-template-columns: 1fr minmax(18rem, .7fr);
  align-items: end;
  gap: 3rem 2rem;
  color: #8f929b;
}
.footer-wordmark { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(4rem, 13vw, 10rem); line-height: .75; color: #1d27d8; }
.footer-details { display: grid; justify-items: end; gap: 1rem; text-align: right; }
.footer-details p { margin: 0; }
.footer-tagline { font-size: .8rem; letter-spacing: .14em; }
.footer-details address { font-style: normal; color: #b8bac1; }
.footer-details address a { color: #fff; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem 1.25rem; font-size: .85rem; }
.legal-links a { color: #b8bac1; text-decoration: underline; text-underline-offset: .25rem; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.13); padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; }
.site-credit { text-align: right; color: #b8bac1; }

.cookie-notice {
  position: fixed;
  z-index: 80;
  left: 1rem;
  bottom: 1rem;
  width: min(31rem, calc(100vw - 2rem));
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 1.1rem;
  background: #111318;
  color: #f7f7f5;
  border: 1px solid rgba(255,255,255,.19);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice strong { font-size: 1rem; }
.cookie-notice p { margin: .35rem 0; color: #b8bac1; font-size: .85rem; }
.cookie-notice a { color: #aeb4ff; font-size: .85rem; text-decoration: underline; }
.cookie-notice button { flex: 0 0 auto; border: 0; background: #f5f5f2; color: #0c0d10; font-weight: 800; padding: .7rem 1rem; cursor: pointer; }

.booking-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: .75rem;
  background: rgba(0,0,0,.78);
}
.booking-modal[hidden] { display: none; }
.booking-modal-panel {
  position: relative;
  width: min(1100px, calc(100vw - 1.5rem));
  height: min(880px, calc(100dvh - 1.5rem));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: #090a0d;
  box-shadow: 0 24px 80px rgba(0,0,0,.72);
}
.booking-frame { width: 100%; height: 100%; border: 0; background: #090a0d; }
.booking-close {
  position: absolute; z-index: 2; top: .65rem; right: .65rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(9,10,13,.92); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.booking-fallback { position: absolute; left: 1rem; bottom: .7rem; font-size: .75rem; color: #afb4ff; background: rgba(9,10,13,.91); padding: .35rem .5rem; }
body.uncut-modal-open { overflow: hidden; }

.legal-header {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 6vw, 6.5rem);
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.legal-header > a:last-child { color: #b8bac1; font-size: .9rem; }
.legal-content { width: min(850px, calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) 0; }
.legal-content > .eyebrow { color: #6974ff; }
.legal-content h1 { margin: 0; font-size: clamp(3rem, 8vw, 6.5rem); line-height: .95; letter-spacing: -.055em; }
.legal-updated { color: #8f929b; margin: 1.5rem 0 4rem; }
.legal-content section, .legal-content > h2 { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.14); }
.legal-content section { padding-bottom: 2rem; }
.legal-content h2 { margin: 0 0 .8rem; font-size: 1.35rem; }
.legal-content p { color: #b8bac1; line-height: 1.75; }
.legal-content a { color: #aeb4ff; text-decoration: underline; }
.default-page { width: min(1100px, calc(100% - 2.5rem)); min-height: 60vh; margin: 0 auto; padding: 5rem 0; }
.default-page a { color: #aeb4ff; text-decoration: underline; }

/* Future WooCommerce pages inherit the UNCUT palette. */
.woocommerce main, main.woocommerce-page { width: min(1200px, calc(100% - 2.5rem)); margin: 0 auto; padding: 5rem 0; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--uncut-blue) !important; color: #fff !important; border-radius: 0 !important; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { min-height: 72svh; }
  .hero-visual { min-height: 70vw; max-height: 650px; }
  .service-card { grid-template-columns: 2rem 1fr auto; }
  .service-meta { grid-column: 2; justify-content: flex-start; }
  .booking-button { grid-column: 3; grid-row: 1 / span 2; }
  .info-section { grid-template-columns: 1fr 1fr; }
  .about-section { grid-template-columns: 1fr; }
  .about-section > div { grid-template-columns: 1fr 1fr; }
  .info-title { grid-column: 1 / -1; margin-bottom: 2rem; }
}

@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

@media (max-width: 660px) {
  .site-header { padding: 1.15rem 1rem; }
  .site-header nav a:not(.nav-book) { display: none; }
  .hero-copy { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero h1 { font-size: clamp(5.3rem, 27vw, 8rem); }
  .hero-tagline { font-size: .78rem; }
  .hero-visual { min-height: 86vw; }
  .services-section, .about-section, .info-section { padding-left: 1rem; padding-right: 1rem; }
  .section-heading { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 1fr; gap: 1rem; padding: 1.8rem 0; }
  .service-number { display: none; }
  .service-meta, .booking-button { grid-column: 1; grid-row: auto; }
  .booking-button { width: 100%; }
  .info-section { grid-template-columns: 1fr; }
  .info-title { grid-column: 1; padding-right: 0; }
  .about-section > div { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-wordmark { margin-bottom: 1rem; }
  .footer-details { justify-items: start; text-align: left; }
  .legal-links { justify-content: flex-start; }
  .footer-bottom { grid-column: 1; flex-direction: column; }
  .site-credit { text-align: left; }
  .cookie-notice { align-items: stretch; flex-direction: column; }
  .cookie-notice button { width: 100%; }
  .legal-header { align-items: flex-start; gap: 1rem; }
}

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