/*
Theme Name: Justime Hair & Beauty
Theme URI: https://justime.it/
Author: Francismark
Author URI: https://francismark.it/
Description: Tema proprietario editoriale e performante per Justime Hair & Beauty.
Version: 1.2.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: justime
*/

:root {
  --ink: #171917;
  --ink-soft: #55564f;
  --forest: #26372f;
  --forest-deep: #19251f;
  --taupe: #827c74;
  --paper: #e3dad0;
  --paper-deep: #d2c6b3;
  --white: #f7f3ed;
  --corten: #96513d;
  --accent: #96513d;
  --accent-dark: #6f392c;
  --line: rgba(23, 25, 23, .16);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: min(1240px, calc(100vw - 48px));
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--corten); color: var(--white); }

.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;
}
.skip-link:focus {
  z-index: 10000; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; padding: 10px 14px; background: var(--white); color: var(--ink);
}
.container { width: var(--container); margin-inline: auto; }
.eyebrow {
  margin: 0 0 18px; color: var(--accent-dark); font-size: 12px;
  font-weight: 700; letter-spacing: .18em; line-height: 1.2; text-transform: uppercase;
}
.display {
  margin: 0; font-family: var(--serif); font-size: clamp(46px, 6.2vw, 94px);
  font-weight: 400; letter-spacing: -.055em; line-height: .88;
}
.section-title {
  margin: 0; font-family: var(--serif); font-size: clamp(38px, 4.35vw, 64px);
  font-weight: 400; letter-spacing: -.045em; line-height: .98;
}
.section-copy { max-width: 590px; color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 21px); }
.button {
  display: inline-flex; min-height: 52px; align-items: center; justify-content: center;
  border: 1px solid var(--ink); padding: 12px 24px; background: var(--ink);
  color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-decoration: none; text-transform: uppercase; transition: .25s var(--ease);
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.button--light { background: var(--white); border-color: var(--white); color: var(--ink); }

.announcement {
  position: relative; z-index: 30; padding: 8px 20px; background: var(--corten); color: var(--white);
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-align: center; text-transform: uppercase;
}
.site-header {
  position: sticky; z-index: 25; top: 0; height: 86px; border-bottom: 1px solid var(--line);
  background: rgba(247,243,237,.92); backdrop-filter: blur(16px); transition: height .25s var(--ease);
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { height: 72px; }
.header-inner { display: grid; height: 100%; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 20px; }
.site-logo, .custom-logo-link { display: inline-block; width: 166px; justify-self: center; text-decoration: none; }
.site-logo img, .custom-logo { width: 166px; max-height: 50px; object-fit: contain; }
.site-logo-text { font-family: var(--serif); font-size: 28px; letter-spacing: -.03em; }
.primary-menu, .footer-menu { margin: 0; padding: 0; list-style: none; }
.primary-menu { display: flex; align-items: center; gap: clamp(11px, 1.35vw, 23px); }
.primary-menu li { flex: 0 0 auto; white-space: nowrap; }
.primary-menu a {
  font-size: 10px; font-weight: 700; letter-spacing: .085em; text-decoration: none; text-transform: uppercase; white-space: nowrap;
}
.primary-menu a:hover { color: var(--accent-dark); }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 12px; }
.header-phone { font-size: 12px; text-decoration: none; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 1px; margin: 6px auto; background: var(--ink); transition: .25s; }

.hero { position: relative; min-height: calc(100svh - 118px); overflow: hidden; background: linear-gradient(135deg, var(--white), var(--paper)); }
.hero-media { position: absolute; inset: 0 0 0 48%; }
.hero-media::after { position: absolute; content: ""; inset: 0; background: linear-gradient(90deg, rgba(23,23,21,.08), transparent 45%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-content { position: relative; z-index: 2; display: flex; min-height: calc(100svh - 118px); align-items: center; padding-block: 90px; }
.hero-copy { width: min(620px, 55%); }
.hero-copy .display em { color: var(--accent-dark); font-weight: 400; }
.hero-lead { max-width: 520px; margin: 32px 0; color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-index {
  position: absolute; right: 30px; bottom: 24px; z-index: 2; color: var(--white);
  font-family: var(--serif); font-size: 14px; font-style: italic;
}

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--white); }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee span {
  display: block; padding: 17px 25px; color: var(--ink-soft); font-size: 11px;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.marquee span::after { content: "✦"; margin-left: 50px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

.manifesto {
  padding: clamp(90px, 13vw, 190px) 0;
  background-image: linear-gradient(90deg, transparent 49.95%, rgba(38,55,47,.055) 50%, transparent 50.05%);
}
.manifesto-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 8vw, 130px); }
.manifesto .section-title em { color: var(--accent-dark); font-weight: 400; }
.signature { margin-top: 34px; font-family: var(--serif); font-size: 24px; font-style: italic; }

.services {
  padding: clamp(80px, 11vw, 150px) 0;
  background-color: var(--forest);
  background-image:
    radial-gradient(circle at 8% 20%, rgba(150,81,61,.14), transparent 24%),
    linear-gradient(115deg, rgba(255,255,255,.025), transparent 45%);
  color: var(--white);
}
.services-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 54px; }
.services .eyebrow { color: #d4a28f; }
.services .section-copy { color: rgba(255,255,255,.65); }
.service-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 570px; overflow: hidden; text-decoration: none; }
.service-card:nth-child(1) { grid-column: span 5; }
.service-card:nth-child(2) { grid-column: span 4; }
.service-card:nth-child(3) { grid-column: span 3; }
.service-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); transition: transform .7s var(--ease), filter .4s; }
.service-card::after { position: absolute; content: ""; inset: 35% 0 0; background: linear-gradient(transparent, rgba(10,10,9,.86)); }
.service-card-content { position: absolute; z-index: 2; right: 26px; bottom: 25px; left: 26px; }
.service-number { font-size: 11px; letter-spacing: .12em; opacity: .7; }
.service-card h3 { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(30px, 2.35vw, 41px); font-weight: 400; line-height: 1; }
.service-card:hover img { transform: scale(1.035); filter: saturate(1); }

.editorial { display: grid; min-height: 760px; grid-template-columns: 1fr 1fr; background: var(--paper); }
.editorial-media { min-height: 620px; }
.editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.editorial-content { display: flex; align-items: center; padding: clamp(55px, 8vw, 130px); }
.editorial-content-inner { max-width: 560px; }
.editorial-list { margin: 34px 0 40px; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.editorial-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }

.ritual { padding: clamp(95px, 13vw, 185px) 0; background: var(--white); }
.ritual-grid { display: grid; align-items: start; grid-template-columns: 1.15fr .85fr; gap: clamp(50px, 9vw, 140px); }
.ritual-visual { position: relative; padding: 0 11% 12% 0; }
.ritual-visual img { width: 100%; aspect-ratio: .82; object-fit: cover; }
.ritual-note {
  position: absolute; right: 0; bottom: 0; width: 48%; padding: 30px; background: var(--corten); color: var(--white);
  font-family: var(--serif); font-size: 24px; font-style: italic; line-height: 1.25;
}
.ritual-copy { padding-top: 7vw; }

.quote-section {
  padding: clamp(100px, 15vw, 210px) 0;
  background-color: var(--paper-deep);
  background-image: radial-gradient(circle at 50% 30%, rgba(247,243,237,.62), transparent 48%);
  text-align: center;
}
.quote-section blockquote { max-width: 930px; margin: 0 auto; font-family: var(--serif); font-size: clamp(35px, 4.5vw, 66px); letter-spacing: -.04em; line-height: 1.06; }
.quote-section cite { display: block; margin-top: 28px; font: 700 11px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }

.booking-cta {
  position: relative; overflow: hidden; padding: clamp(90px, 12vw, 170px) 0;
  background: linear-gradient(125deg, var(--forest-deep), var(--forest)); color: var(--white);
}
.booking-cta::before { position: absolute; content: "JUSTIME"; right: -2vw; bottom: -8vw; color: rgba(255,255,255,.035); font: 400 min(24vw, 330px)/1 var(--serif); }
.booking-grid { position: relative; display: grid; align-items: end; grid-template-columns: 1.35fr .65fr; gap: 50px; }
.booking-cta .eyebrow { color: #d4a28f; }
.booking-details { border-left: 1px solid rgba(255,255,255,.2); padding-left: 35px; }
.booking-details p { margin: 6px 0; color: rgba(255,255,255,.7); }

.site-footer { padding: 75px 0 28px; background: #111411; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 60px; padding-bottom: 70px; }
.footer-brand img { width: 220px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 390px; color: rgba(255,255,255,.58); }
.footer-title { margin: 0 0 18px; color: #d4a28f; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.footer-menu li { margin: 8px 0; }
.footer-menu a, .footer-contact a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 25px; color: rgba(255,255,255,.42); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.page-hero { padding: clamp(90px, 13vw, 180px) 0 80px; background: linear-gradient(135deg, var(--white), var(--paper)); }
.page-hero .display { max-width: 1000px; }
.page-content { padding: 85px 0 130px; }
.page-content > * { max-width: 780px; margin-inline: auto; }
.page-content > .alignwide { max-width: 1160px; }
.page-content h2, .page-content h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }
.page-content h2 { margin-top: 1.4em; font-size: clamp(38px, 4vw, 62px); }
.page-content h3 { font-size: 32px; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 80px 0 130px; }
.post-card { border-top: 1px solid var(--line); padding-top: 20px; }
.post-card h2 { font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.1; }
.not-found { min-height: 60vh; padding: 120px 0; text-align: center; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .primary-navigation { display: none; }
  .menu-toggle { display: block; justify-self: start; }
  .header-actions .header-phone { display: none; }
  .primary-navigation.is-open {
    position: fixed; display: flex; inset: 118px 0 0; align-items: center; justify-content: center;
    background: var(--paper); text-align: center;
  }
  .admin-bar .primary-navigation.is-open { top: 150px; }
  .primary-menu { flex-direction: column; gap: 24px; }
  .primary-menu a { font-family: var(--serif); font-size: 32px; font-weight: 400; letter-spacing: -.02em; text-transform: none; }
  .service-card:nth-child(n) { grid-column: span 4; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1081px) and (max-width: 1240px) {
  .primary-menu { gap: 10px; }
  .primary-menu a { font-size: 9px; letter-spacing: .055em; }
  .header-actions .button { padding-inline: 16px; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 30px, 1240px); }
  .admin-bar .site-header { top: 46px; }
  .announcement { padding-block: 7px; font-size: 8px; }
  .site-header, .site-header.is-scrolled { height: 70px; }
  .site-logo, .custom-logo-link, .site-logo img, .custom-logo { width: 145px; }
  .header-actions .button { min-height: 42px; padding: 8px 13px; font-size: 9px; }
  .primary-navigation.is-open { top: 98px; }
  .admin-bar .primary-navigation.is-open { top: 144px; }
  .hero { min-height: auto; padding-bottom: 0; }
  .hero-content { min-height: 600px; align-items: start; padding-top: 70px; }
  .hero-copy { width: 100%; }
  .hero-copy .display { max-width: 95%; font-size: clamp(45px, 14vw, 66px); }
  .hero-lead { max-width: 82%; font-size: 16px; }
  .hero-media { position: relative; inset: auto; height: 58vh; min-height: 430px; }
  .hero-index { bottom: 16px; }
  .manifesto-grid, .ritual-grid, .booking-grid { grid-template-columns: 1fr; }
  .services-header { display: block; }
  .service-grid { display: flex; margin-right: -15px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .service-card:nth-child(n) { min-width: 82vw; min-height: 510px; scroll-snap-align: start; }
  .editorial { grid-template-columns: 1fr; }
  .editorial-media { min-height: 520px; }
  .editorial-content { padding: 70px 24px; }
  .ritual-note { width: 55%; padding: 20px; font-size: 19px; }
  .booking-details { border-top: 1px solid rgba(255,255,255,.2); border-left: 0; padding: 30px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .post-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
