/*
Theme Name: Zevallos Atelier
Author: Zevallos Atelier
Description: Atelier de autor en Málaga. Diseño y confección a medida.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: zevallos-atelier
*/

:root {
  --black: #000000;
  --ivory: #f2ede3;
  --gold: #a68d63;
  --soft: #d0c8bb;
  --muted: #bcb4a6;
  --line: rgba(166, 141, 99, .52);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body, button, input, textarea { font-size: 16px; }
img { max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--black); }
.content-width { width: min(1390px, calc(100% - 13.25vw)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 1000; top: -100px; left: 16px; padding: 12px 18px; background: var(--ivory); color: var(--black); }
.skip-link:focus { top: 16px; }
.section-kicker, .atelier-signature {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.6;
  text-transform: uppercase;
}
.gold-rule { display: block; width: 78px; height: 1px; background: var(--gold); }

/* Cabecera */
.site-header { background: var(--black); position: relative; z-index: 20; }
.header-masthead {
  min-height: 158px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand-link, .custom-logo-link { display: block; width: min(490px, 42vw); line-height: 0; }
.brand-link img, .custom-logo-link img { display: block; width: 100%; height: auto; }
.header-side {
  color: var(--gold);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .19em;
  white-space: nowrap;
}
.header-side--right { justify-self: end; }
.header-side--right:hover { color: var(--ivory); }
.nav-wrap { border-top: 1px solid var(--line); }
.nav-list {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.nav-list a {
  display: inline-block;
  padding: 17px 6px;
  color: var(--ivory);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.35;
  text-transform: uppercase;
  transition: color .2s ease;
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--gold); }
.nav-list li:last-child a { color: var(--gold); }
.menu-toggle { display: none; }

/* Portada */
.hero { display: grid; grid-template-columns: 51.5% 48.5%; min-height: 790px; background: var(--black); }
.hero-copy {
  width: min(100%, 820px);
  margin-left: auto;
  padding: 112px 50px 90px max(7vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero-copy .section-kicker { margin-bottom: 28px; }
.hero h1, .atelier-section h2, .garments-section h2, .contact-section h2, .inner-page h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.045em;
}
.hero h1 {
  margin: 48px 0 68px;
  font-size: clamp(4.3rem, 6.3vw, 6.45rem);
  line-height: 1.04;
  white-space: nowrap;
}
.hero h1 em, .contact-section h2 em { font-weight: 400; }
.hero-description {
  max-width: 530px;
  margin: 0 0 62px;
  color: var(--soft);
  font-size: 1.28rem;
  line-height: 1.65;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 34px; }
.button {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 17px 29px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.button--outline { border: 1px solid var(--gold); color: var(--ivory); }
.button--outline:hover { background: var(--gold); color: var(--black); }
.quiet-link {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.quiet-link:hover { color: var(--ivory); }
.hero-visual { position: relative; min-height: 790px; margin: 0; overflow: hidden; }
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 19%;
  background: linear-gradient(90deg, var(--black), rgba(0,0,0,0));
  pointer-events: none;
}
.hero-visual img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.hero-visual figcaption {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
  padding: 15px 29px;
  background: var(--black);
  color: var(--ivory);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.service-ribbon { background: var(--black); }
.service-ribbon__inner {
  min-height: 120px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  align-items: center;
  gap: 23px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-ribbon__inner div { font: 2rem Georgia, 'Times New Roman', serif; white-space: nowrap; }
.service-ribbon__inner span { margin-right: 16px; color: var(--gold); font: 700 .69rem Arial, sans-serif; letter-spacing: .17em; }

/* El oficio */
.atelier-section {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 28px;
  padding-block: 100px 114px;
}
.atelier-intro { display: flex; flex-direction: column; align-items: flex-start; padding-right: 70px; }
.atelier-section h2 {
  margin: 52px 0 70px;
  font-size: clamp(3.1rem, 4.8vw, 5.3rem);
  line-height: 1.1;
}
.atelier-intro > p:not(.section-kicker) { max-width: 550px; margin: 39px 0 0; color: var(--muted); font-size: 1.14rem; line-height: 1.8; }
.atelier-signature { margin-top: auto; padding-top: 70px; }
.atelier-steps { padding: 0 0 0 12px; margin: 0; list-style: none; }
.atelier-steps li {
  min-height: 165px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.atelier-steps li:last-child { border-bottom: 1px solid var(--line); }
.step-number { padding-top: 12px; color: var(--gold); font-size: .8rem; font-weight: 700; letter-spacing: .16em; }
.atelier-steps h3 { margin: 0 0 15px; font: 2.5rem Georgia, 'Times New Roman', serif; }
.atelier-steps p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* Prendas para hombre y mujer */
.garments-section { padding-block: 94px 110px; border-top: 1px solid var(--line); }
.garments-section h2 { margin: 37px 0 62px; font-size: clamp(2.8rem, 4.5vw, 5rem); line-height: 1.14; }
.garments-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.garments-grid > div { padding: 33px 30px 15px 0; }
.garments-grid > div + div { padding-left: 41px; border-left: 1px solid var(--line); }
.garments-grid h3 { margin: 0 0 15px; font: 2rem Georgia, 'Times New Roman', serif; }
.garments-grid p, .garments-footnote { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.garments-footnote { margin: 55px 0 0; }

/* Cita y pie */
.contact-section {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-block: 0 75px;
  padding: 40px 48px;
  border: 1px solid var(--line);
}
.contact-section .section-kicker { margin-bottom: 22px; }
.contact-section h2 { margin: 0; font-size: clamp(3rem, 4.25vw, 4.5rem); line-height: 1.08; }
.button--light { flex: 0 0 auto; min-width: 307px; background: var(--ivory); color: var(--black); }
.button--light:hover { background: var(--gold); }
.site-footer { padding: 50px 0 28px; border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-footer .brand-link, .site-footer .custom-logo-link { width: min(485px, 60vw); }
.footer-contact { text-align: left; }
.footer-contact p { margin: 0 0 15px; color: var(--gold); font-size: .76rem; font-weight: 700; letter-spacing: .17em; }
.footer-contact a { color: var(--soft); font-size: .9rem; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; margin-top: 52px; padding-top: 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: .65rem; letter-spacing: .13em; }

/* Páginas y publicaciones de WordPress */
.inner-page { min-height: 60vh; padding-block: 130px 150px; }
.inner-page h1 { max-width: 900px; margin: 34px 0 50px; font-size: clamp(3.4rem, 6vw, 6rem); line-height: 1.13; }
.entry-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 50px; }
.entry-card { padding: 30px 0 44px; border-top: 1px solid var(--line); }
.entry-card h2 { font: 2rem Georgia, 'Times New Roman', serif; }
.entry-card h2 a:hover { color: var(--gold); }
.empty-message { color: var(--muted); font-size: 1.1rem; }
.prose { max-width: 850px; color: var(--soft); font-size: 1.1rem; line-height: 1.85; overflow-wrap: anywhere; }
.prose h2, .prose h3 { margin: 2em 0 .65em; color: var(--ivory); font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.2; }
.prose h2 { font-size: 2.1rem; }.prose h3 { font-size: 1.6rem; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.prose img { height: auto; }
.prose blockquote { margin: 2em 0; padding-left: 25px; border-left: 1px solid var(--gold); font-family: Georgia, 'Times New Roman', serif; font-size: 1.5rem; }
.prose .alignwide, .prose .alignfull { max-width: 100%; }
.nav-links { display: flex; gap: 25px; margin-top: 45px; }
.nav-links a { color: var(--gold); }

@media (max-width: 1100px) {
  .content-width { width: calc(100% - 9vw); }
  .header-masthead { min-height: 135px; }
  .brand-link, .custom-logo-link { width: min(420px, 40vw); }
  .hero { grid-template-columns: 52% 48%; min-height: 690px; }
  .hero-copy { padding: 90px 25px 75px 4.5vw; }
  .hero h1 { font-size: clamp(3.5rem, 6vw, 5.6rem); }
  .hero-visual { min-height: 690px; }
  .hero-description { font-size: 1.1rem; }
  .service-ribbon__inner div { font-size: 1.6rem; }
  .atelier-intro { padding-right: 28px; }
  .atelier-steps h3 { font-size: 2.1rem; }
}

@media (max-width: 760px) {
  .content-width { width: calc(100% - 48px); }
  .header-masthead { min-height: 105px; display: flex; justify-content: center; }
  .header-side { display: none; }
  .brand-link, .custom-logo-link { width: min(315px, 79vw); }
  .nav-wrap { min-height: 53px; }
  .menu-toggle {
    display: flex;
    width: 48px;
    height: 52px;
    margin-left: auto;
    padding: 14px 9px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    border: 0;
    background: none;
    color: var(--gold);
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 24px; height: 1px; background: currentColor; }
  .site-header.has-js .site-nav { display: none; }
  .site-header.has-js .site-nav.is-open { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 40; background: var(--black); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .nav-list { display: block; min-height: 0; margin: 0 24px; padding: 13px 0; }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a { display: block; padding: 14px 6px; }

  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { width: 100%; padding: 72px 24px 64px; }
  .hero-copy .section-kicker { margin-bottom: 27px; }
  .hero h1 { margin: 32px 0 50px; font-size: clamp(3.45rem, 11.6vw, 5.5rem); white-space: normal; }
  .hero-description { max-width: 490px; margin-bottom: 40px; font-size: 1.07rem; line-height: 1.7; }
  .hero-actions { gap: 26px; }
  .hero-visual { min-height: 540px; }
  .hero-visual::after { display: none; }
  .hero-visual img { object-position: 50% 42%; }
  .hero-visual figcaption { padding: 10px 15px; font-size: .55rem; }
  .service-ribbon__inner { min-height: 145px; grid-template-columns: 1fr 1fr; gap: 18px; padding-block: 26px; }
  .service-ribbon__inner div { font-size: 1.4rem; }
  .service-ribbon__inner span { margin-right: 12px; }

  .atelier-section { display: block; padding-block: 78px 95px; }
  .atelier-intro { padding: 0 0 64px; }
  .atelier-section h2 { margin: 30px 0 40px; font-size: clamp(3.2rem, 10vw, 4.8rem); }
  .atelier-intro > p:not(.section-kicker) { margin-top: 27px; font-size: 1.04rem; }
  .atelier-signature { margin-top: 29px; padding-top: 0; }
  .atelier-steps { padding: 0; }
  .atelier-steps li { min-height: 135px; grid-template-columns: 55px 1fr; }
  .atelier-steps h3 { font-size: 2rem; }

  .garments-section { padding-block: 74px 85px; }
  .garments-section h2 { margin: 24px 0 45px; font-size: clamp(2.8rem, 9vw, 4.2rem); }
  .garments-grid { display: block; }
  .garments-grid > div { padding: 28px 0 25px; }
  .garments-grid > div + div { padding: 28px 0 20px; border-left: 0; border-top: 1px solid var(--line); }
  .garments-footnote { margin-top: 28px; }
  .contact-section { display: block; min-height: 0; margin-bottom: 65px; padding: 40px 27px; }
  .contact-section h2 { margin-bottom: 33px; font-size: clamp(2.6rem, 8vw, 4rem); }
  .button--light { min-width: 0; width: 100%; }
  .footer-row { display: block; }
  .site-footer .brand-link, .site-footer .custom-logo-link { width: min(320px, 85vw); }
  .footer-contact { margin-top: 34px; }
  .footer-bottom { display: block; line-height: 2; }
  .footer-bottom span { display: block; }
  .inner-page { min-height: 50vh; padding-block: 75px 110px; }
  .entry-list { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 385px) {
  .hero h1 { font-size: 3.35rem; }
  .hero-actions .quiet-link { display: block; }
  .service-ribbon__inner div { font-size: 1.23rem; }
  .contact-section h2 { font-size: 2.55rem; }
}

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