/*
Theme Name: The Artful Hour
Theme URI: https://theartfulhour.com
Author: The Artful Hour
Description: A warm, accessible creative-wellness theme with events, editorial content, and WooCommerce support.
Version: 1.2.4
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: artful-hour
*/

:root{--teal:#145c5e;--mauve:#665061;--sand:#d7c5a6;--plum:#53214f;--aqua:#dceff0;--ink:#4a3348;--paper:#fffdfa;--olive:#8b8a42;--shadow:0 8px 24px rgba(69,42,66,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font-family:"Avenir Next",Avenir,"Trebuchet MS",sans-serif;line-height:1.52}img{max-width:100%;height:auto}a{color:var(--teal);text-decoration:none}.wrap{width:min(1180px,92vw);margin:auto}.screen-reader-text{position:absolute;left:-9999px}.topbar{background:linear-gradient(90deg,#4d3149,#665061);color:#fff;font-size:.88rem}.topbar .wrap{display:flex;justify-content:flex-end;gap:22px;padding:8px 0}.site-header{background:#fff;position:relative;z-index:5}.nav-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:10px 0}.brand{display:flex;align-items:center;gap:12px;flex:0 0 auto}.brand img,.custom-logo{display:block;width:235px;max-width:235px;max-height:180px;object-fit:contain}.brand-text{font-family:Georgia,serif;color:var(--teal);font-size:1.45rem;font-style:italic}.menu{display:flex;list-style:none;gap:22px;margin:0;padding:0;align-items:center}.menu a{font-size:.82rem;color:#3f2940;text-transform:uppercase;white-space:nowrap}.menu a:hover,.current-menu-item>a{color:var(--teal);border-bottom:2px solid var(--teal);padding-bottom:8px}.menu-toggle{display:none;border:0;background:var(--teal);color:#fff;padding:10px 14px;border-radius:5px}.hero{min-height:520px;display:grid;grid-template-columns:minmax(330px,46%) 1fr;align-items:center;gap:30px;padding:38px 0}.hero-image{min-height:460px;background-size:cover;background-position:center;border-radius:4px;box-shadow:var(--shadow)}.eyebrow{font-size:.92rem;letter-spacing:.14em;text-transform:uppercase;color:var(--mauve)}h1,h2,.script{font-family:Georgia,"Times New Roman",serif;font-style:italic;color:var(--plum);line-height:1.03}h1{font-size:clamp(3.2rem,6vw,5.7rem);margin:.12em 0}.script{font-size:clamp(2rem,4vw,3.6rem);margin:.3em 0}h2{font-size:clamp(2.1rem,4vw,3.7rem)}h3{color:var(--teal);line-height:1.15}.lede{font-size:clamp(1.25rem,2.5vw,2rem);color:var(--teal);line-height:1.25}.btn,.button,button,input[type=submit],.wp-element-button{display:inline-block;background:var(--mauve)!important;color:#fff!important;padding:13px 25px;border:0;border-radius:4px;text-transform:uppercase;letter-spacing:.03em;font-weight:600}.btn.alt{background:transparent!important;border:1px solid var(--mauve);color:var(--mauve)!important}.actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}.values{background:linear-gradient(120deg,#4a3048,#665061);color:#fff}.value-grid,.feature-grid{display:grid;grid-template-columns:repeat(4,1fr)}.value,.feature{text-align:center;padding:26px 20px}.value+.value,.feature+.feature{border-left:1px solid rgba(255,255,255,.3)}.icon{display:block;font-size:2.4rem;color:#bfe8ea}.section{padding:58px 0}.section-title{text-align:center}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.program-cards{grid-template-columns:repeat(7,minmax(0,1fr));gap:12px}.program-cards .card-body{padding:13px 10px}.program-cards h3{font-size:.9rem;text-transform:uppercase;text-align:center}.program-cards p{font-size:.82rem;text-align:center}.card{background:#fff;border-radius:8px;box-shadow:var(--shadow);overflow:hidden}.card img{width:100%;aspect-ratio:4/3;object-fit:cover}.card-body{padding:18px}.card h3{margin:.1em 0 .45em}.brush{background:linear-gradient(90deg,transparent 2%,var(--aqua) 8%,var(--aqua) 92%,transparent 98%);padding:26px;text-align:center}.about-band{background:#eef9f8}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:46px;align-items:center}.quote{background:#f0e5f0;text-align:center;padding:22px;font-size:1.25rem}.events-layout{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}.calendar{background:#fffaf5;padding:22px;border-radius:10px;box-shadow:var(--shadow)}.calendar table{width:100%;border-collapse:collapse;text-align:center}.calendar th,.calendar td{padding:10px;border:1px solid #eee}.has-event{background:var(--teal);color:#fff;border-radius:50%;display:inline-grid;place-items:center;width:34px;height:34px}.event-list{display:grid;gap:20px}.event-card{display:grid;grid-template-columns:230px 1fr auto;gap:22px;align-items:center;background:#fff;padding:14px;border-radius:9px;box-shadow:var(--shadow)}.event-card img{width:230px;height:170px;object-fit:cover;border-radius:6px}.event-date{color:var(--mauve);text-transform:uppercase;font-weight:700}.shop-grid .price{font-size:1.18rem;font-weight:800}.workshop-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:36px}.workshop-gallery-card{background:#fff;border-radius:8px;box-shadow:var(--shadow);overflow:hidden}.workshop-gallery-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.workshop-card-link{font-weight:700;text-transform:uppercase}.content-area{padding:50px 0}.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.entry-content{max-width:820px;margin:auto}.site-footer{background:linear-gradient(100deg,#075e64,#00656a);color:#fff}.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:35px;padding:44px 0}.site-footer a{color:#fff}.copyright{background:var(--mauve);text-align:center;padding:14px}.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:20px}.woocommerce ul.products li.product{width:auto!important;margin:0!important;background:#fff;padding:12px;border-radius:8px;box-shadow:var(--shadow)}
@media(max-width:1100px){.menu{gap:14px}.menu a{font-size:.75rem}.program-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.menu-toggle{display:block}.primary-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;padding:18px;box-shadow:var(--shadow)}.primary-nav.open{display:block}.menu{flex-direction:column;gap:16px}.hero,.two-col,.events-layout{grid-template-columns:1fr}.hero-image{min-height:350px;order:-1}.cards,.program-cards,.workshop-gallery-grid,.value-grid,.feature-grid,.post-grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important}.event-card{grid-template-columns:150px 1fr}.event-card img{width:150px}.event-card .btn{grid-column:2}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.topbar .wrap{justify-content:center;flex-wrap:wrap;gap:8px 15px}.brand img,.custom-logo{width:150px;max-width:150px}.hero{padding-top:18px}.hero-image{min-height:265px}h1{font-size:3.1rem}.cards,.program-cards,.workshop-gallery-grid,.value-grid,.feature-grid,.post-grid,.footer-grid,.woocommerce ul.products{grid-template-columns:1fr!important}.value+.value,.feature+.feature{border-left:0;border-top:1px solid rgba(255,255,255,.3)}.event-card{grid-template-columns:1fr}.event-card img{width:100%;height:210px}.event-card .btn{grid-column:auto}.actions .btn{width:100%;text-align:center}}

/* Desktop Gutenberg hero: override WordPress's narrow reading-width constraint. */
@media (min-width:901px){
  .tah-page-content .tah-editor-section:first-child>.tah-editor-hero>.wp-block-group__inner-container{display:contents}
  .tah-page-content .tah-editor-section:first-child{width:100%!important;max-width:none!important;margin:0!important;padding:48px 0!important}
  .tah-page-content .tah-editor-section:first-child>.tah-editor-hero,
  .tah-page-content .tah-editor-section:first-child>.wp-block-columns:first-child,
  .tah-page-content .tah-editor-section:first-child .wp-block-columns:first-of-type,
  .tah-page-content>.wp-block-columns:first-child{
    display:grid!important;
    grid-template-columns:minmax(440px,46%) minmax(0,54%)!important;
    align-items:center!important;
    gap:48px!important;
    width:calc(100vw - 96px)!important;
    max-width:1180px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .tah-page-content .tah-editor-section:first-child .wp-block-columns:first-of-type>.wp-block-column,
  .tah-page-content .tah-editor-section:first-child>.tah-editor-hero>*{
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    flex:initial!important;
    flex-basis:auto!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .tah-page-content .tah-editor-section:first-child h1{
    font-size:clamp(3.75rem,5vw,5.25rem)!important;
    line-height:.98!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
  .tah-page-content .tah-editor-section:first-child .wp-block-image,
  .tah-page-content .tah-editor-section:first-child .wp-block-image img{
    width:100%!important;
    max-width:none!important;
  }
  .tah-page-content .tah-editor-section:first-child .wp-block-image img{
    min-height:0!important;
    height:auto!important;
    aspect-ratio:4/3;
    object-fit:cover;
  }
}

/* Home page refinements: preserve the full hero artwork and improve readability. */
.topbar,.topbar span,.topbar a,.topbar a[x-apple-data-detectors]{color:#fff!important;-webkit-text-fill-color:#fff!important;text-decoration:none!important}
.value .icon{height:72px;display:flex;align-items:center;justify-content:center;margin-bottom:4px}
.value .icon svg{display:block;width:88px;height:68px;fill:none;stroke:#bfe8ea;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.home .tah-editor-hero .wp-block-image{align-self:center;margin:0}
.home .tah-editor-hero .wp-block-image img{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important}
.home .tah-editor-hero p:not(.eyebrow):not(.lede){font-size:1.22rem;line-height:1.58;color:var(--ink)}
.program-cards p{font-size:1rem;line-height:1.48}
.home #programs .wp-block-buttons{margin-top:40px!important;margin-bottom:12px!important}
.tah-home-closing p{font-size:1.3rem!important;line-height:1.5;margin-top:14px;margin-bottom:20px}

/* Approved Home callout and four-column footer composition. */
.tah-home-closing{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"title button" "copy button"!important;align-items:center!important;column-gap:42px!important;background:linear-gradient(90deg,transparent 0,#dceff0 5%,#dceff0 95%,transparent 100%)!important;color:var(--teal)!important;padding:25px max(7vw,28px)!important;text-align:center!important}
.tah-home-closing>.wp-block-group__inner-container{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"title button" "copy button"!important;align-items:center!important;column-gap:42px!important;width:min(1180px,92vw)!important;margin:auto!important}
.tah-home-closing h2{grid-area:title;color:var(--teal)!important;font-size:clamp(2rem,3.3vw,3.15rem)!important;margin:0!important}
.tah-home-closing p{grid-area:copy;color:var(--teal)!important;font-size:1.3rem!important;margin:7px 0 0!important}
.tah-home-closing .wp-block-buttons{grid-area:button!important;margin:0!important;align-self:center!important;justify-content:flex-end!important}

.site-footer{background:linear-gradient(100deg,#09464b,#0c525a);color:#fff}
.footer-grid{display:grid;grid-template-columns:1.15fr 1.45fr 1.05fr .65fr;gap:0;align-items:start;padding:34px 0 38px}
.footer-grid>div{min-width:0;padding:0 34px}
.footer-grid>div:first-child{padding-left:0}
.footer-grid>div:last-child{padding-right:0}
.footer-grid>div+div{border-left:1px solid rgba(255,255,255,.28)}
.footer-brand img{display:block;width:100%;max-width:300px;height:auto;margin:0 auto}
.site-footer h3{margin:0 0 18px;color:#fff!important;font-family:inherit;font-style:normal;font-size:1.05rem;line-height:1.2;text-transform:uppercase;letter-spacing:.12em;font-weight:500}
.footer-contact-list{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.footer-contact-list li{display:grid;grid-template-columns:27px minmax(0,1fr);gap:10px;align-items:start;font-size:1rem;line-height:1.35}
.footer-contact-list svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.footer-contact-list a,.footer-contact-list span{color:#fff!important;-webkit-text-fill-color:#fff!important;overflow-wrap:anywhere}
.site-footer .footer-links .menu{display:block!important;margin:0!important;padding:0!important}
.site-footer .footer-links .menu li{display:block;margin:0 0 7px}
.site-footer .footer-links .menu a{display:inline;color:#fff!important;font-size:1rem;text-transform:none;white-space:normal;border:0!important;padding:0!important}
.social-links{display:flex;align-items:center;gap:20px}
.social-links a{display:block;color:#fff!important;width:50px;height:50px}
.social-links svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.social-links .social-fill{fill:#fff;stroke:none}
.copyright{background:var(--mauve);text-align:center;padding:15px;color:#fff;font-size:.95rem}
.value .icon{height:86px}
.value .icon svg{width:106px;height:80px;stroke-width:2.6}
.value strong{display:block;text-transform:uppercase;letter-spacing:.04em;font-size:1.02rem;font-weight:500;margin:2px 0 7px}
.value>div:last-child{font-size:1rem;line-height:1.35}

/* Native WordPress navigation menus. */
.primary-nav .menu-item-has-children,
.primary-nav .page_item_has_children{position:relative}
.primary-nav .sub-menu,
.primary-nav .children{display:none;position:absolute;z-index:20;top:calc(100% + 8px);left:0;min-width:220px;margin:0;padding:10px 0;list-style:none;background:#fff;border-radius:4px;box-shadow:var(--shadow)}
.primary-nav .sub-menu li,
.primary-nav .children li{display:block}
.primary-nav .sub-menu a,
.primary-nav .children a{display:block;padding:9px 16px;white-space:normal;border:0!important}
.primary-nav li:hover>.sub-menu,
.primary-nav li:focus-within>.sub-menu,
.primary-nav li:hover>.children,
.primary-nav li:focus-within>.children{display:block}
.primary-nav .current_page_item>a,
.primary-nav .current-page-ancestor>a{color:var(--teal);border-bottom:2px solid var(--teal);padding-bottom:8px}
.menu-toggle{margin-left:auto;cursor:pointer}

@media(max-width:900px){.tah-home-closing,.tah-home-closing>.wp-block-group__inner-container{grid-template-columns:1fr!important;grid-template-areas:"title" "copy" "button"!important;row-gap:15px!important}.tah-home-closing .wp-block-buttons{justify-content:center!important}.primary-nav>.menu{align-items:stretch;gap:8px}.primary-nav .menu a{display:block;padding:8px 0}.primary-nav .sub-menu,.primary-nav .children{display:block;position:static;min-width:0;margin:4px 0 0 18px;padding:0;background:transparent;box-shadow:none}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div{padding:24px}.footer-grid>div:nth-child(odd){border-left:0}.footer-grid>div:nth-child(n+3){border-top:1px solid rgba(255,255,255,.28)}}
@media(max-width:560px){.footer-grid{grid-template-columns:1fr}.footer-grid>div{padding:26px 0!important;border-left:0!important;border-top:1px solid rgba(255,255,255,.28)}.footer-grid>div:first-child{border-top:0}.footer-brand img{margin-left:0}.tah-home-closing{padding:28px 22px!important}.tah-home-closing h2{font-size:2rem!important}}

/* WordPress 6.x adds an inner-container around Group block contents.
   Apply the About/Shop desktop grid to that two-child container. */
@media (min-width:901px){
  .tah-about-page .tah-editor-hero,
  .tah-shop-page .tah-editor-hero{
    display:block!important;
    width:calc(100vw - 96px)!important;
    max-width:1180px!important;
    margin:0 auto 46px!important;
    padding:0!important;
  }
  .tah-about-page .tah-editor-hero>.wp-block-group__inner-container,
  .tah-shop-page .tah-editor-hero>.wp-block-group__inner-container{
    display:grid!important;
    grid-template-columns:minmax(440px,46%) minmax(0,54%)!important;
    align-items:center!important;
    gap:48px!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
  }
  .tah-about-page .tah-editor-hero>.wp-block-group__inner-container>*,
  .tah-shop-page .tah-editor-hero>.wp-block-group__inner-container>*{
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
  }
  .tah-about-page .tah-editor-hero>.wp-block-group__inner-container>.wp-block-group>.wp-block-group__inner-container,
  .tah-shop-page .tah-editor-hero>.wp-block-group__inner-container>.wp-block-group>.wp-block-group__inner-container{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }
  .tah-about-page .tah-editor-hero h1,
  .tah-shop-page .tah-editor-hero h1{
    font-size:clamp(3.75rem,5vw,5.25rem)!important;
    line-height:.98!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
  .tah-about-page .tah-editor-hero .wp-block-image,
  .tah-shop-page .tah-editor-hero .wp-block-image{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }
  .tah-about-page .tah-editor-hero .wp-block-image img,
  .tah-shop-page .tah-editor-hero .wp-block-image img{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-height:0!important;
    height:auto!important;
    aspect-ratio:4/3;
    object-fit:cover;
  }
}

/* About and Shop desktop heroes. These selectors follow the saved block hierarchy
   so WordPress cannot collapse the hero back to its default reading width. */
@media (min-width:901px){
  .tah-about-page>.wp-block-group:first-child,
  .tah-shop-page>.wp-block-group:first-child{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:48px 0 58px!important;
  }
  .tah-about-page>.wp-block-group:first-child>.wp-block-group:first-child,
  .tah-about-page>.wp-block-group:first-child>.wp-block-columns:first-child,
  .tah-shop-page>.wp-block-group:first-child>.wp-block-group:first-child,
  .tah-shop-page>.wp-block-group:first-child>.wp-block-columns:first-child{
    display:grid!important;
    grid-template-columns:minmax(440px,46%) minmax(0,54%)!important;
    align-items:center!important;
    gap:48px!important;
    width:calc(100vw - 96px)!important;
    max-width:1180px!important;
    margin:0 auto 46px!important;
  }
  .tah-about-page>.wp-block-group:first-child>.wp-block-group:first-child>*,
  .tah-about-page>.wp-block-group:first-child>.wp-block-columns:first-child>*,
  .tah-shop-page>.wp-block-group:first-child>.wp-block-group:first-child>*,
  .tah-shop-page>.wp-block-group:first-child>.wp-block-columns:first-child>*{
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    flex:initial!important;
    flex-basis:auto!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .tah-about-page>.wp-block-group:first-child>.wp-block-group:first-child h1,
  .tah-shop-page>.wp-block-group:first-child>.wp-block-group:first-child h1{
    font-size:clamp(3.75rem,5vw,5.25rem)!important;
    line-height:.98!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
  .tah-about-page>.wp-block-group:first-child>.wp-block-group:first-child .wp-block-image,
  .tah-shop-page>.wp-block-group:first-child>.wp-block-group:first-child .wp-block-image{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }
  .tah-about-page>.wp-block-group:first-child>.wp-block-group:first-child .wp-block-image img,
  .tah-shop-page>.wp-block-group:first-child>.wp-block-group:first-child .wp-block-image img{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-height:0!important;
    height:auto!important;
    aspect-ratio:4/3;
    object-fit:cover;
  }
  .tah-about-page>.wp-block-group:first-child>h2,
  .tah-about-page>.wp-block-group:first-child>p,
  .tah-shop-page>.wp-block-group:first-child>h2,
  .tah-shop-page>.wp-block-group:first-child>p,
  .tah-shop-page>.wp-block-group:first-child>.wp-block-shortcode{
    width:calc(100vw - 96px)!important;
    max-width:1180px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}
