/*
Theme Name: Myriam Grijalva Beauty & Brows
Theme URI: https://myriamgrijalva.beauty
Author: Myriam Grijalva Beauty & Brows Studio
Description: Theme custom para el estudio de belleza y cejas Myriam Grijalva. Paleta espresso + dorado envejecido sobre marfil, con acento distintivo de arco de ceja animado.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mg-beauty
*/

:root{
  --ink:#2B211C;
  --parchment:#F2E8DD;
  --card:#FBF6EF;
  --gold:#C9A860;
  --gold-deep:#A9803F;
  --sage:#86816A;
  --line: rgba(43,33,28,0.14);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--parchment);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}

.eyebrow{
  font-size:0.72rem;
  letter-spacing:0.22em;
  text-transform:uppercase;
  font-weight:600;
  color:var(--gold-deep);
}
h1,h2,h3{
  font-family:'Fraunces',serif;
  font-weight:500;
  letter-spacing:-0.01em;
  line-height:1.08;
}
.italic{font-style:italic; font-weight:400;}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(20px,5vw,64px);
}

/* Arch motif divider — the eyebrow arch, used as a signature graphic element */
.arch{
  width:96px;
  height:28px;
  margin:18px 0 0;
}
.arch path{
  fill:none;
  stroke:var(--gold);
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-dasharray:120;
  stroke-dashoffset:120;
  transition:stroke-dashoffset 1.1s cubic-bezier(.4,0,.2,1);
}
.arch.center{margin-left:auto;margin-right:auto;}
.reveal .arch path{stroke-dashoffset:0;}

/* ---------- Header ---------- */
header{
  position:sticky; top:0; z-index:40;
  background:rgba(242,232,221,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:88px;
}
.logo{
  display:flex;
  align-items:center;
  font-family:'Fraunces',serif;
  font-size:1.15rem;
  font-weight:600;
  letter-spacing:0.01em;
}
.logo span{color:var(--gold-deep); font-style:italic; font-weight:400;}
.logo img{max-height:64px; width:auto;}
nav ul{
  display:flex; gap:36px; list-style:none;
}
nav a{
  font-size:0.85rem;
  font-weight:500;
  letter-spacing:0.01em;
  position:relative;
  padding:4px 0;
}
nav a::after{
  content:'';
  position:absolute; left:0; bottom:0;
  width:0; height:1.5px;
  background:var(--gold);
  transition:width .25s ease;
}
nav a:hover::after{width:100%;}
.nav-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--ink);
  color:var(--parchment) !important;
  padding:10px 20px;
  border-radius:100px;
  font-size:0.82rem;
  font-weight:600;
  white-space:nowrap;
  border:1px solid var(--gold);
}
.mg-icon{width:17px; height:17px; flex-shrink:0;}
.menu-btn{display:none; background:none; border:none; font-size:1.4rem; cursor:pointer; color:var(--ink);}

@media(max-width:820px){
  nav ul{
    position:fixed; top:88px; left:0; right:0;
    background:var(--card);
    flex-direction:column; gap:0;
    max-height:0; overflow:hidden;
    transition:max-height .35s ease;
    border-bottom:1px solid var(--line);
  }
  nav ul.open{max-height:320px;}
  nav ul li{width:100%;}
  nav ul a{display:block; padding:16px 24px; border-top:1px solid var(--line);}
  nav ul a::after{display:none;}
  .nav-cta{display:none;}
  .menu-btn{display:block;}
}

/* ---------- Hero ---------- */
.hero{
  padding:clamp(64px,10vw,120px) 0 clamp(56px,8vw,96px);
  position:relative;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:64px;
  align-items:center;
}
.hero h1{
  font-size:clamp(2.6rem,5.2vw,4.4rem);
  margin-top:14px;
}
.hero h1 .italic{color:var(--gold-deep);}
.hero p.lead{
  font-size:1.08rem;
  color:#4A3D34;
  max-width:44ch;
  margin-top:22px;
  line-height:1.6;
}
.cta-row{
  display:flex; gap:14px; flex-wrap:wrap;
  margin-top:34px;
}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 26px;
  border-radius:100px;
  font-size:0.88rem;
  font-weight:600;
  letter-spacing:0.01em;
  transition:transform .2s ease, box-shadow .2s ease;
}
.btn-primary{
  background:var(--ink);
  color:#FBF6EF;
  border:1px solid var(--gold);
}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 10px 24px -8px rgba(43,33,28,0.45);}
.btn-ghost{
  border:1.5px solid var(--ink);
  color:var(--ink);
}
.btn-ghost:hover{background:var(--ink); color:var(--parchment);}

.hero-portrait{
  position:relative;
  aspect-ratio:4/5;
  border-radius:18px;
  background:linear-gradient(155deg,#E7DCC8,#2B211C 150%);
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  color:rgba(251,246,239,0.92);
  padding:24px;
  border:1px dashed rgba(251,246,239,0.55);
  overflow:hidden;
}
.hero-portrait img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
}
.hero-portrait span{
  font-size:0.78rem;
  letter-spacing:0.06em;
  line-height:1.5;
  position:relative; z-index:1;
}
.hero-portrait small{display:block; margin-top:8px; opacity:0.75; font-size:0.7rem; position:relative; z-index:1;}

@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-portrait{order:-1; aspect-ratio:16/10;}
  .hero-portrait img{object-position:center 15%;}
}

/* ---------- Philosophy band ---------- */
.band-dark{
  background:var(--ink);
  color:var(--parchment);
  padding:clamp(56px,8vw,86px) 0;
}
.band-dark .wrap{text-align:center;}
.band-dark blockquote{
  font-family:'Fraunces',serif;
  font-style:italic;
  font-weight:400;
  font-size:clamp(1.5rem,3vw,2.15rem);
  max-width:26ch;
  margin:20px auto 0;
  line-height:1.35;
}
.band-dark cite{
  display:block;
  margin-top:22px;
  font-style:normal;
  font-size:0.82rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--gold);
}

/* ---------- Section heading pattern ---------- */
.section{padding:clamp(70px,9vw,110px) 0;}
.sec-head{
  text-align:center;
  max-width:60ch;
  margin:0 auto 56px;
}
.sec-head h2{
  font-size:clamp(2rem,4vw,2.9rem);
  margin-top:14px;
}
.sec-head p{
  margin-top:16px;
  color:#4A3D34;
  font-size:1rem;
  line-height:1.6;
}

/* ---------- Services ---------- */
.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px,1fr));
  gap:28px;
}
.service-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:36px 30px;
  transition:transform .25s ease, box-shadow .25s ease;
}
.service-card:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 40px -20px rgba(43,33,28,0.25);
}
.service-icon{
  width:44px; height:44px;
  border-radius:50%;
  background:rgba(201,168,96,0.18);
  display:flex; align-items:center; justify-content:center;
  color:var(--gold-deep);
  overflow:hidden;
}
.service-icon img{width:100%; height:100%; object-fit:cover;}
.service-card h3{
  font-size:1.35rem;
  margin-top:20px;
}
.service-card p{
  margin-top:12px;
  font-size:0.92rem;
  color:#4A3D34;
  line-height:1.6;
}
.service-price{
  display:inline-block;
  margin-top:20px;
  font-size:0.78rem;
  font-weight:600;
  letter-spacing:0.04em;
  color:var(--gold-deep);
  text-transform:uppercase;
}
@media(max-width:560px){.services-grid{grid-template-columns:1fr;}}

/* ---------- Gallery ---------- */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.gallery-slot{
  aspect-ratio:1/1;
  border-radius:14px;
  border:1.5px dashed rgba(43,33,28,0.3);
  background:var(--card);
  display:flex; align-items:center; justify-content:center;
  flex-direction:column;
  text-align:center;
  padding:16px;
  color:var(--sage);
  overflow:hidden;
  position:relative;
}
.gallery-slot img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
}
.gallery-slot span{font-size:0.8rem; font-weight:600; color:var(--ink);}
.gallery-slot small{font-size:0.68rem; margin-top:4px;}
@media(max-width:760px){.gallery-grid{grid-template-columns:repeat(2,1fr);}}

/* ---------- Testimonials ---------- */
.testi-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.testi-card{
  background:var(--card);
  border-radius:16px;
  padding:28px;
  border:1px solid var(--line);
}
.testi-card p{
  font-family:'Fraunces',serif;
  font-style:italic;
  font-size:1.02rem;
  line-height:1.5;
  color:#4A3D34;
}
.testi-card p + p{margin-top:0.8em;}
.testi-quote p:first-of-type::before{content:'\201C';}
.testi-quote p:last-of-type::after{content:'\201D';}
.testi-card footer{
  margin-top:16px;
  font-size:0.78rem;
  font-weight:600;
  color:var(--gold-deep);
  letter-spacing:0.02em;
}
@media(max-width:900px){.testi-grid{grid-template-columns:1fr;}}

/* ---------- Booking band ---------- */
.booking{
  background:var(--ink);
  color:#FBF6EF;
  padding:clamp(56px,8vw,90px) 0;
  text-align:center;
}
.booking h2{color:#FBF6EF; font-size:clamp(2rem,4vw,2.8rem);}
.booking p{margin-top:14px; opacity:0.92; max-width:46ch; margin-left:auto; margin-right:auto;}
.booking .cta-row{justify-content:center; margin-top:30px;}
.booking .btn-primary{background:var(--gold); color:var(--ink); border:1px solid var(--gold);}
.booking .btn-ghost{border-color:#FBF6EF; color:#FBF6EF;}
.booking .btn-ghost:hover{background:#FBF6EF; color:var(--ink);}
.hours{
  margin-top:38px;
  display:flex; justify-content:center; gap:48px;
  flex-wrap:wrap;
  font-size:0.85rem;
}
.hours div b{display:block; font-family:'Fraunces',serif; font-size:1.1rem; font-weight:500; margin-bottom:4px; color:var(--gold);}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--ink);
  color:rgba(251,246,239,0.75);
  padding:48px 0 28px;
}
.footer-grid{
  display:flex; justify-content:space-between; align-items:flex-start;
  flex-wrap:wrap; gap:32px;
  padding-bottom:32px;
  border-bottom:1px solid rgba(251,246,239,0.14);
}
.footer-logo{font-family:'Fraunces',serif; font-style:italic; font-size:1.3rem; color:#FBF6EF;}
.footer-links{display:flex; gap:40px; flex-wrap:wrap;}
.footer-links h4{font-size:0.72rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--gold); margin-bottom:12px; font-weight:600;}
.footer-links a{display:flex; align-items:center; gap:8px; font-size:0.85rem; margin-bottom:8px; opacity:0.85;}
.footer-links a:hover{opacity:1;}
.footer-links a .mg-icon{color:rgba(251,246,239,0.75); transition:color .2s ease;}
.footer-links a:hover .mg-icon{color:var(--gold);}
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  padding-top:22px;
  font-size:0.75rem;
}

/* scroll reveal (generic, used on section headings) */
.fade-up{opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease;}
.fade-up.reveal{opacity:1; transform:translateY(0);}

/* ---------- Pages (About, etc.) ---------- */
.wrap-narrow{max-width:740px;}
.screen-reader-text{
  position:absolute !important;
  width:1px; height:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
}

.page-hero{
  padding:clamp(48px,7vw,72px) 0 clamp(32px,5vw,48px);
  border-bottom:1px solid var(--line);
}
.page-hero h1{font-size:clamp(2.2rem,4.5vw,3.2rem); margin-top:10px;}

/* Rich content typography — the_content() output on pages and posts */
.entry-content{font-size:1.02rem; color:#4A3D34; line-height:1.75;}
.entry-content > * + *{margin-top:1.2em;}
.entry-content h2,
.entry-content h3{color:var(--ink); margin-top:1.8em;}
.entry-content h2{font-size:1.7rem;}
.entry-content h3{font-size:1.3rem;}
.entry-content p{max-width:70ch;}
.entry-content a{border-bottom:1px solid var(--gold); transition:opacity .2s ease;}
.entry-content a:hover{opacity:0.7;}
.entry-content img{border-radius:14px; margin:1.6em 0;}
.entry-content strong{color:var(--ink); font-weight:600;}

.entry-content ul,
.entry-content ol{padding-left:0; list-style:none;}
.entry-content ul li,
.entry-content ol li{
  position:relative;
  padding-left:30px;
  margin-top:0.85em;
}
.entry-content ul li::before{
  content:'';
  position:absolute; left:0; top:0.55em;
  width:9px; height:9px;
  border-radius:50%;
  background:var(--gold);
}
.entry-content ol{counter-reset:mg-list;}
.entry-content ol li::before{
  counter-increment:mg-list;
  content:counter(mg-list);
  left:0; top:0.05em;
  width:20px; height:20px;
  border-radius:50%;
  background:none;
  border:1px solid var(--gold);
  color:var(--gold-deep);
  font-size:0.72rem;
  font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.entry-content li strong:first-child{color:var(--gold-deep); font-family:'Fraunces',serif; font-weight:600;}

.entry-content blockquote{
  border-left:3px solid var(--gold);
  padding-left:22px;
  font-family:'Fraunces',serif;
  font-style:italic;
  font-size:1.2rem;
  color:var(--ink);
}

.single-thumb img{border-radius:18px;}

/* ---------- Blog listing ---------- */
.post-meta{
  font-size:0.72rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-weight:600;
  color:var(--gold-deep);
}
.post-thumb-empty{
  width:100%; height:100%;
  background:linear-gradient(155deg,#E7DCC8,#2B211C 150%);
  display:flex; align-items:center; justify-content:center;
  color:rgba(251,246,239,0.75);
  font-size:0.7rem; letter-spacing:0.04em;
}

/* Featured post — most recent entry, editorial treatment */
.post-featured{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:56px;
  align-items:center;
  margin-bottom:64px;
  padding-bottom:56px;
  border-bottom:1px solid var(--line);
}
.post-featured-thumb{
  display:block;
  aspect-ratio:4/3;
  border-radius:20px;
  overflow:hidden;
}
.post-featured-thumb img{width:100%; height:100%; object-fit:cover;}
.post-featured-body h2{font-size:clamp(1.7rem,3vw,2.3rem); margin-top:10px;}
.post-featured-body .post-meta{margin-top:14px;}
.post-featured-body p.excerpt{color:#4A3D34; margin-top:14px; line-height:1.7; max-width:48ch;}
.post-featured-body .btn{margin-top:24px;}
@media(max-width:820px){
  .post-featured{grid-template-columns:1fr; gap:28px;}
}

/* Grid of remaining posts */
.post-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}
.post-tile{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease;
}
.post-tile:hover{transform:translateY(-6px); box-shadow:0 24px 40px -20px rgba(43,33,28,0.25);}
.post-tile-thumb{display:block; aspect-ratio:4/3;}
.post-tile-thumb img{width:100%; height:100%; object-fit:cover;}
.post-tile-body{padding:24px 22px;}
.post-tile-body h3{font-size:1.15rem; margin-top:8px;}
.post-tile-body p{color:#4A3D34; margin-top:10px; font-size:0.9rem; line-height:1.6;}
@media(max-width:900px){.post-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:640px){.post-grid{grid-template-columns:1fr;}}

.post-more{
  display:inline-block; margin-top:12px;
  font-size:0.85rem; font-weight:600;
  border-bottom:1px solid var(--gold);
}

.pagination{margin-top:56px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;}
.pagination .nav-links{display:flex; justify-content:space-between; width:100%; gap:16px; flex-wrap:wrap;}
.pagination a,
.pagination span{
  font-size:0.85rem; font-weight:600;
  padding:10px 20px;
  border:1.5px solid var(--ink);
  border-radius:100px;
}
.pagination a:hover{background:var(--ink); color:var(--parchment);}

.post-nav{
  margin-top:56px;
  padding-top:24px;
  border-top:1px solid var(--line);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.post-nav-link{font-size:0.9rem; font-weight:600; max-width:45%;}
.post-nav-link:hover{color:var(--gold-deep);}

/* ---------- Instagram feed widget area (Galería section) ---------- */
.gallery-instagram .ig-widget{width:100%;}

