/*
Theme Name: Johanna's Hair Weaving Studio (Divi Child)
Theme URI: https://example.com
Description: Divi 5 child theme for Johanna's Hair Weaving Studio. Home, About, Services and Gallery pages with a centered-logo header, editable text and images, and responsive layouts for phones and iPad.
Author: Johanna's Hair Weaving Studio
Template: Divi
Version: 1.0.3
License: GNU General Public License v2 or later
Text Domain: johannas-divi-child
*/

/* ==========================================================
   TOKENS
   ========================================================== */
:root{
  --jh-navy:#1f3280;
  --jh-orange:#dd7a1e;
  --jh-gold:#c9993f;
  --jh-line:#e8c9a0;
  --jh-cream:#fdf6ec;
  --jh-cream2:#fbefdf;
  --jh-paper:#fffdfa;
  --jh-ink:#0e1116;
  --jh-serif:'Cormorant Garamond','Cormorant',Georgia,'Times New Roman',serif;
  --jh-script:'Pinyon Script','Snell Roundhand',cursive;
  --jh-wrap:1180px;
}

/* ==========================================================
   BASE
   ========================================================== */
body.jh-site{background:var(--jh-paper);color:var(--jh-ink);font-family:var(--jh-serif);font-size:19px;line-height:1.55;-webkit-font-smoothing:antialiased}
body.jh-site #page-container{padding-top:0!important;background:var(--jh-paper)}
body.jh-site #et-main-area{background:var(--jh-paper)}
.jh-site .jh-main{display:block;width:100%;overflow-x:hidden}
.jh-site .jh-main p{font-family:var(--jh-serif);font-size:1em;line-height:1.6;margin:0 0 1em;color:var(--jh-ink);padding:0}
.jh-site .jh-main h1,.jh-site .jh-main h2,.jh-site .jh-main h3{font-family:var(--jh-serif);font-weight:500;color:var(--jh-ink);line-height:1.05;letter-spacing:-.01em;margin:0 0 .4em;padding:0}
.jh-site .jh-main h1{font-size:clamp(40px,6vw,72px)}
.jh-site .jh-main h2{font-size:clamp(34px,4.6vw,56px)}
.jh-site .jh-main h3{font-size:clamp(24px,2.6vw,32px)}
.jh-site .jh-main em{font-style:italic;font-weight:500}
.jh-site .jh-main figure{margin:0}
.jh-site .jh-main img{display:block;width:100%;height:auto;max-width:100%}
.jh-site a:focus-visible,.jh-site button:focus-visible{outline:2px solid var(--jh-orange);outline-offset:3px}

/* eyebrow labels */
.jh-site .jh-main p.jh-eyebrow{font-size:14px;letter-spacing:.32em;text-transform:uppercase;color:var(--jh-gold);margin:0 0 14px;font-weight:500}

/* buttons */
.jh-site .jh-main .wp-block-buttons{display:flex;flex-wrap:wrap;gap:14px;margin:0}
.jh-site .jh-main .wp-block-button__link,
.jh-site .jh-book-btn{display:inline-block;background:transparent;color:var(--jh-ink);border:1.5px solid #20243a;border-radius:2px;font-family:var(--jh-serif);font-size:13px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;padding:14px 28px;text-decoration:none;line-height:1.2;transition:background .2s,color .2s}
.jh-site .jh-main .wp-block-button__link:hover,
.jh-site .jh-book-btn:hover{background:var(--jh-ink);color:#fff}
.jh-site .jh-main .jh-arrow .wp-block-button__link::after{content:"\2192";margin-left:12px;letter-spacing:0}

/* ==========================================================
   HEADER
   ========================================================== */
.jh-header{background:#fff;position:sticky;top:0;z-index:999;box-shadow:0 1px 0 rgba(0,0,0,.04)}
.admin-bar .jh-header{top:32px}
@media(max-width:782px){.admin-bar .jh-header{top:46px}}
.jh-header-inner{max-width:1320px;margin:0 auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:4px 40px;min-height:150px}
.jh-nav-left{display:flex;justify-content:flex-end;padding-right:60px}
.jh-nav-right{display:flex;justify-content:space-between;align-items:center;padding-left:60px}
.jh-menu{list-style:none;margin:0;padding:0;display:flex;gap:46px}
.jh-menu li{margin:0;padding:0}
.jh-menu a{font-family:var(--jh-serif);font-size:20px;color:var(--jh-navy);text-decoration:none;padding:6px 0 4px;border-bottom:2px solid transparent;transition:border-color .2s}
.jh-menu a:hover,.jh-menu li.is-current a{border-bottom-color:var(--jh-orange)}
.jh-logo{display:block;line-height:0;text-align:center}
.jh-logo img{height:135px;width:auto;max-width:none;display:inline-block}
.jh-nav-right .jh-menu{gap:36px}
.jh-toggle{display:none;justify-self:end;background:none;border:0;padding:10px;cursor:pointer;width:52px;height:52px}
.jh-toggle span{display:block;width:26px;height:2px;background:var(--jh-navy);margin:6px auto;transition:transform .25s,opacity .25s}
.jh-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.jh-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.jh-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
.jh-drawer{display:none;background:#fff;border-top:1px solid var(--jh-line);padding:12px 28px 28px;text-align:center}
.jh-drawer.is-open{display:block}
.jh-drawer .jh-menu{flex-direction:column;gap:0}
.jh-drawer .jh-menu a{display:block;padding:15px 0;font-size:24px;border-bottom:1px solid #f1e6d6}
.jh-drawer .jh-menu li.is-current a{color:var(--jh-orange)}
.jh-drawer .jh-book-btn{margin-top:22px}

/* ==========================================================
   PAGE BANNERS
   ========================================================== */
.jh-site .jh-main .jh-banner{background:#fdf3e6 url(images/banner.jpg) center/cover no-repeat;text-align:center;padding:52px 24px 48px}
.jh-site .jh-main .jh-banner h1{margin-bottom:.15em}
.jh-site .jh-main .jh-banner h1::after{content:"";display:block;width:68px;height:2px;background:var(--jh-gold);margin:20px auto 0}
.jh-site .jh-main .jh-banner p.jh-sub{font-size:clamp(19px,2.2vw,26px);margin:22px auto 0;max-width:760px}
.jh-site .jh-main .jh-banner p.jh-eyebrow{margin-bottom:10px}

/* ==========================================================
   HOME
   ========================================================== */
.jh-site .jh-main .jh-hero{max-width:var(--jh-wrap);margin:20px auto 0;position:relative;display:block;background:#f6ebdd;overflow:hidden}
.jh-site .jh-main .jh-hero-img{margin:0;width:100%}
.jh-site .jh-main .jh-hero-img img{width:100%;height:auto;aspect-ratio:874/320;object-fit:cover;object-position:right center}
.jh-site .jh-main .jh-hero-copy{position:absolute;left:5%;top:50%;transform:translateY(-50%);width:48%;padding:0}
.jh-site .jh-main .jh-hero-copy h1{font-size:clamp(34px,6.2vw,84px);margin-bottom:.3em}
.jh-site .jh-main .jh-meet{max-width:var(--jh-wrap);margin:12px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;background:var(--jh-cream2);padding:40px 56px}
.jh-site .jh-main .jh-arch{max-width:400px;margin:0 auto;border:1px solid var(--jh-gold);border-radius:999px 999px 0 0;padding:12px 12px 0}
.jh-site .jh-main .jh-arch img{border-radius:999px 999px 0 0}
.jh-site .jh-main .jh-sign{font-family:var(--jh-script);font-size:44px;line-height:1.1;color:var(--jh-orange);display:flex;align-items:center;gap:18px;margin:0 0 14px}
.jh-site .jh-main .jh-sign::after{content:"";flex:1;height:1px;background:var(--jh-gold);max-width:240px}

.jh-site .jh-main .jh-section-title{text-align:center;margin:48px 0 18px}
.jh-site .jh-main .jh-three{max-width:var(--jh-wrap);margin:0 auto;padding:0 20px;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.jh-site .jh-main .jh-three figure img{aspect-ratio:1.65;object-fit:cover}
.jh-site .jh-main .jh-three figcaption{text-align:center;font-size:24px;margin-top:6px;color:var(--jh-ink)}

.jh-site .jh-main .jh-cards{max-width:var(--jh-wrap);margin:24px auto 0;padding:0 20px;display:grid;grid-template-columns:1fr 1fr;gap:24px}
.jh-site .jh-main .jh-card{border:1px solid var(--jh-line);background:var(--jh-cream2);padding:8px 8px 22px;text-align:center}
.jh-site .jh-main .jh-card img{aspect-ratio:1.7;object-fit:cover}
.jh-site .jh-main .jh-card h3{margin:14px 0 2px}
.jh-site .jh-main .jh-card .wp-block-buttons{justify-content:center}

.jh-site .jh-main .jh-cta{text-align:center;padding:48px 20px 56px}
.jh-site .jh-main .jh-cta h2{font-size:clamp(34px,4vw,52px)}
.jh-site .jh-main .jh-cta .wp-block-buttons{justify-content:center}
.jh-site .jh-main .jh-cta.jh-cta-rule::before{content:"";display:block;width:54px;height:2px;background:var(--jh-gold);margin:0 auto 22px}

/* ==========================================================
   ABOUT
   ========================================================== */
.jh-site .jh-main .jh-welcome{background:var(--jh-cream2);padding:42px 24px}
.jh-site .jh-main .jh-welcome-in{max-width:var(--jh-wrap);margin:0 auto;display:grid;grid-template-columns:.9fr 1.1fr;gap:64px;align-items:center}
.jh-site .jh-main .jh-welcome h2{font-size:clamp(40px,5.4vw,68px)}
.jh-site .jh-main .jh-welcome .jh-sign{margin-top:6px}
.jh-site .jh-main .jh-look{background:var(--jh-cream);padding:34px 24px 10px;text-align:center}
.jh-site .jh-main .jh-look>p{max-width:640px;margin:0 auto 1em}
.jh-site .jh-main .jh-look h2::after{content:"";display:block;width:54px;height:2px;background:var(--jh-gold);margin:18px auto 0}
.jh-site .jh-main .jh-features{max-width:var(--jh-wrap);margin:26px auto 0;display:grid;grid-template-columns:repeat(3,1fr);text-align:left}
.jh-site .jh-main .jh-feature{padding:6px 36px 28px}
.jh-site .jh-main .jh-feature+.jh-feature{border-left:1px solid var(--jh-line)}
.jh-site .jh-main .jh-feature .jh-num{font-style:italic;color:var(--jh-orange);font-size:48px;line-height:1;display:flex;align-items:center;gap:14px;margin:0 0 6px}
.jh-site .jh-main .jh-feature .jh-num::after{content:"";width:70px;height:1px;background:var(--jh-gold)}
.jh-site .jh-main .jh-feature h3{font-size:28px;margin-bottom:2px}
.jh-site .jh-main .jh-feature p{margin:0}
.jh-site .jh-main .jh-visit{max-width:var(--jh-wrap);margin:0 auto;padding:30px 24px 40px;display:grid;grid-template-columns:1.25fr 1fr;gap:56px;align-items:center}
.jh-site .jh-main .jh-visit-copy{border-left:1px solid var(--jh-line);padding-left:48px}
.jh-site .jh-main .jh-visit h2{font-size:clamp(34px,4vw,50px)}
.jh-site .jh-main .jh-contact-line{padding-left:40px;position:relative;margin:0 0 12px;font-size:20px;line-height:1.3}
.jh-site .jh-main .jh-contact-line a{color:inherit;text-decoration:none}
.jh-site .jh-main .jh-contact-line::before{content:"";position:absolute;left:0;top:2px;width:24px;height:24px;background:no-repeat center/contain}
.jh-site .jh-main .jh-ico-pin::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dd7a1e' stroke-width='1.6'%3E%3Cpath d='M12 22s7-6.5 7-12a7 7 0 10-14 0c0 5.5 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E")}
.jh-site .jh-main .jh-ico-phone::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dd7a1e'%3E%3Cpath d='M6.6 10.8a15 15 0 006.6 6.6l2.2-2.2a1 1 0 011-.25 11 11 0 003.5.56 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.2.2 2.4.56 3.5a1 1 0 01-.25 1z'/%3E%3C/svg%3E")}
.jh-site .jh-main .jh-ico-mail::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dd7a1e' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='M3 6l9 7 9-7'/%3E%3C/svg%3E")}
.jh-site .jh-main .jh-visit .wp-block-buttons{margin-top:18px}

/* ==========================================================
   GALLERY
   ========================================================== */
.jh-site .jh-main .jh-gallery{max-width:var(--jh-wrap);margin:24px auto 0;padding:0 20px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.jh-site .jh-main .jh-gallery figure img{aspect-ratio:1.4;object-fit:cover}
.jh-site .jh-main .jh-gallery>figure:last-child:nth-child(3n+1){grid-column:2}

/* ==========================================================
   SERVICES
   ========================================================== */
.jh-site .jh-main .jh-lead{max-width:760px;margin:44px auto 10px;padding:0 24px;text-align:center;font-size:clamp(20px,2.3vw,26px)}
.jh-site .jh-main .jh-service-list{max-width:var(--jh-wrap);margin:20px auto 0;padding:0 20px;display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.jh-site .jh-main .jh-service{border:1px solid var(--jh-line);background:var(--jh-cream2);padding:8px 8px 24px;text-align:center}
.jh-site .jh-main .jh-service img{aspect-ratio:1.5;object-fit:cover}
.jh-site .jh-main .jh-service h3{margin:16px 0 6px}
.jh-site .jh-main .jh-service p{padding:0 18px;margin-bottom:14px}
.jh-site .jh-main .jh-service .wp-block-buttons{justify-content:center}

/* ==========================================================
   FOOTER
   ========================================================== */
.jh-footer{border-top:1px solid var(--jh-line);background:#fff}
.jh-footer-inner{max-width:1280px;margin:0 auto;padding:14px 40px;display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.jh-footer .jh-flogo img{height:58px;width:auto;display:block}
.jh-footer .jh-place{border-left:1px solid var(--jh-navy);padding-left:22px;font-family:var(--jh-serif);font-size:14px;letter-spacing:.22em;text-transform:uppercase;color:var(--jh-navy)}
.jh-footer .jh-menu{gap:30px;margin-left:auto}
.jh-footer .jh-menu a{font-size:16px}
.jh-social{display:flex;gap:22px;align-items:center;margin-left:20px}
.jh-social a{display:block;width:22px;height:22px;color:#000}
.jh-social svg{width:100%;height:100%;fill:currentColor}
.jh-footer-menus{display:flex;gap:30px;margin-left:auto}
.jh-footer-menus .jh-menu{margin:0;gap:30px}


/* Guard: Divi's clearfix pseudo-elements must not become grid items */
.jh-hero::before,.jh-hero::after,.jh-meet::before,.jh-meet::after,.jh-three::before,.jh-three::after,
.jh-cards::before,.jh-cards::after,.jh-welcome-in::before,.jh-welcome-in::after,.jh-features::before,.jh-features::after,
.jh-visit::before,.jh-visit::after,.jh-gallery::before,.jh-gallery::after,.jh-service-list::before,.jh-service-list::after{content:none!important;display:none!important}
.jh-site .jh-main .jh-hero>*,.jh-site .jh-main .jh-meet>*,.jh-site .jh-main .jh-welcome-in>*,.jh-site .jh-main .jh-visit>*{min-width:0;margin-top:0;margin-bottom:0}
.jh-site .jh-main .jh-hero,.jh-site .jh-main .jh-meet,.jh-site .jh-main .jh-three,.jh-site .jh-main .jh-cards,.jh-site .jh-main .jh-welcome-in,.jh-site .jh-main .jh-features,.jh-site .jh-main .jh-visit,.jh-site .jh-main .jh-gallery,.jh-site .jh-main .jh-service-list{width:100%;box-sizing:border-box}

/* ==========================================================
   TABLET / iPAD  (up to 1024px)
   ========================================================== */
@media(max-width:1024px){
  body.jh-site{font-size:18px}
  .jh-header-inner{grid-template-columns:52px 1fr 52px;min-height:104px;padding:4px 20px}
  .jh-nav-left,.jh-nav-right{display:none}
  .jh-logo{grid-column:2}
  .jh-logo img{height:92px}
  .jh-toggle{display:block;grid-column:3;grid-row:1}
  .jh-site .jh-main .jh-meet{padding:34px 36px;gap:36px}
  .jh-site .jh-main .jh-welcome-in{gap:40px}
  .jh-site .jh-main .jh-feature{padding:6px 22px 24px}
  .jh-site .jh-main .jh-visit{gap:32px}
  .jh-site .jh-main .jh-visit-copy{padding-left:32px}
  .jh-site .jh-main .jh-service-list{grid-template-columns:repeat(2,1fr)}
  .jh-footer-inner{justify-content:center;text-align:center;padding:20px}
  .jh-footer .jh-place{border:0;padding:0;width:100%;order:3}
  .jh-footer-menus{margin:0;width:100%;justify-content:center;order:4;flex-wrap:wrap;gap:14px 24px}
  .jh-social{margin:0;order:5;width:100%;justify-content:center}
}

/* ==========================================================
   PHONE  (up to 767px)
   ========================================================== */
@media(max-width:767px){
  body.jh-site{font-size:17px}
  .jh-header-inner{min-height:84px}
  .jh-logo img{height:72px}
  .jh-site .jh-main .jh-banner{padding:36px 18px 34px}
  .jh-site .jh-main .jh-hero{margin-top:0}
  .jh-site .jh-main .jh-hero-copy{position:static;transform:none;width:auto;padding:26px 22px 32px;text-align:center}
  .jh-site .jh-main .jh-hero-copy h1{font-size:clamp(40px,11vw,56px)}
  .jh-site .jh-main .jh-hero-copy .wp-block-buttons{justify-content:center}
  .jh-site .jh-main .jh-hero-img img{aspect-ratio:1.25;object-position:78% center}
  .jh-site .jh-main .jh-meet{grid-template-columns:1fr;padding:30px 22px;gap:26px;margin-top:0}
  .jh-site .jh-main .jh-arch{max-width:300px}
  .jh-site .jh-main .jh-three{grid-template-columns:1fr;padding:0 22px}
  .jh-site .jh-main .jh-cards{grid-template-columns:1fr;padding:0 14px}
  .jh-site .jh-main .jh-welcome{padding:30px 20px}
  .jh-site .jh-main .jh-welcome-in{grid-template-columns:1fr;gap:26px}
  .jh-site .jh-main .jh-features{grid-template-columns:1fr}
  .jh-site .jh-main .jh-feature{padding:16px 10px}
  .jh-site .jh-main .jh-feature+.jh-feature{border-left:0;border-top:1px solid var(--jh-line)}
  .jh-site .jh-main .jh-visit{grid-template-columns:1fr;gap:26px;padding:26px 20px 34px}
  .jh-site .jh-main .jh-visit-copy{border-left:0;padding-left:0}
  .jh-site .jh-main .jh-gallery{grid-template-columns:repeat(2,1fr);gap:8px;padding:0 10px}
  .jh-site .jh-main .jh-gallery>figure:last-child:nth-child(3n+1){grid-column:auto}
  .jh-site .jh-main .jh-gallery>figure:last-child:nth-child(2n+1){grid-column:1/-1}
  .jh-site .jh-main .jh-service-list{grid-template-columns:1fr;padding:0 14px}
  .jh-site .jh-main .jh-sign{font-size:38px}
  .jh-site .jh-main .wp-block-button__link{padding:13px 22px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
