/*
Theme Name: Nord & Grace
Theme URI: https://example.com/nord-grace
Author: Nord & Grace
Description: Custom premium Nordic family brand theme with WooCommerce support.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: nord-grace
*/

:root{
  --ivory:#f7f3ed; --paper:#fffdf9; --sand:#e9dfd2; --oat:#d5c4ae;
  --sage:#7c826d; --forest:#4f5b4a; --ink:#27312d; --muted:#6d716b;
  --navy:#17364a; --mist:#dfe6de; --blue-mist:#dfe9eb; --clay:#eadfd7; --sage-soft:#e4e7df; --line:rgba(39,49,45,.13); --serif:Georgia,'Times New Roman',serif;
  --sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  --radius:18px; --shadow:0 18px 50px rgba(46,42,36,.08);
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none} img{max-width:100%;height:auto;display:block} button,input,textarea,select{font:inherit}.container{width:min(1180px,calc(100% - 40px));margin:auto}.narrow{width:min(760px,calc(100% - 40px));margin:auto}.eyebrow{font-size:.76rem;letter-spacing:.16em;text-transform:uppercase;font-weight:650;color:var(--forest)}h1,h2,h3,.serif{font-family:var(--serif);font-weight:400;line-height:1.08;letter-spacing:-.02em}h1{font-size:clamp(3rem,7vw,6.4rem);margin:.18em 0}h2{font-size:clamp(2.1rem,4.4vw,4.3rem);margin:.2em 0 .45em}h3{font-size:clamp(1.45rem,2.1vw,2.1rem);margin:.25em 0}.lead{font-size:clamp(1.05rem,1.5vw,1.28rem);color:#4e554f;max-width:680px}.small{font-size:.9rem;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 20px;border-radius:999px;border:1px solid var(--ink);background:var(--ink);color:white;font-size:.92rem;font-weight:650;transition:.2s}.btn:hover{transform:translateY(-1px);opacity:.92}.btn.light{background:white;color:var(--ink);border-color:white}.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line)}.btn.sage{background:var(--forest);border-color:var(--forest)}.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.section{padding:clamp(64px,9vw,120px) 0}.section.soft{background:var(--ivory)}.section.mist{background:var(--mist)}.section.blue-mist{background:var(--blue-mist)}.section.clay{background:var(--clay)}.section.sage-soft{background:var(--sage-soft)}.section.sage{background:var(--forest);color:#fff}.section.dark{background:#24322f;color:#fff}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:clamp(26px,5vw,72px);align-items:center}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.card-copy{padding:24px}.editorial-image{border-radius:var(--radius);overflow:hidden}.editorial-image img{width:100%;height:100%;object-fit:cover}.tag{display:inline-block;border:1px solid var(--line);border-radius:99px;padding:6px 10px;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}.rule{height:1px;background:var(--line);margin:30px 0}

/* Header */
.announcement{background:#e8dfd2;text-align:center;padding:8px 14px;font-size:.78rem;letter-spacing:.04em}.site-header{position:sticky;top:0;z-index:60;background:rgba(255,253,249,.92);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.header-inner{height:78px;display:flex;align-items:center;justify-content:space-between;gap:22px}.brand{display:flex;align-items:center;gap:10px;font-family:var(--serif);font-size:1.35rem;letter-spacing:.02em;white-space:nowrap}.brand-mark{width:27px;height:27px}.brand-mark svg{width:100%;height:100%}.main-nav{display:flex;align-items:center;gap:25px;font-size:.9rem}.main-nav a{position:relative}.main-nav a:after{content:'';position:absolute;left:0;right:100%;bottom:-5px;height:1px;background:var(--ink);transition:.2s}.main-nav a:hover:after{right:0}.header-actions{display:flex;gap:10px;align-items:center}.menu-toggle{display:none;background:none;border:0;font-size:1.45rem}

/* Hero */
.hero{min-height:78vh;display:grid;grid-template-columns:.9fr 1.1fr;background:var(--ivory)}.hero-copy{display:flex;align-items:center;padding:clamp(45px,7vw,95px);padding-left:max(30px,calc((100vw - 1180px)/2))}.hero-copy h1{font-size:clamp(3.2rem,6.6vw,6.8rem)}.hero-media{min-height:620px;position:relative}.hero-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-note{position:absolute;right:24px;bottom:24px;background:rgba(255,253,249,.9);backdrop-filter:blur(10px);padding:13px 16px;border-radius:12px;font-size:.8rem;max-width:240px}
.brand-statement{text-align:center}.brand-statement h2{max-width:900px;margin-left:auto;margin-right:auto}.brand-statement p{max-width:720px;margin:20px auto 0;color:var(--muted)}
.collection-card{position:relative;min-height:530px;border-radius:var(--radius);overflow:hidden;color:white}.collection-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.collection-card:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02) 35%,rgba(0,0,0,.63) 100%)}.collection-card .overlay{position:absolute;z-index:2;left:25px;right:25px;bottom:24px}.collection-card .overlay p{max-width:420px;margin:8px 0 15px;color:rgba(255,255,255,.86)}
.split-image{min-height:620px}.split-image img{width:100%;height:620px;object-fit:cover}.principles{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:45px}.principle{border-top:1px solid var(--line);padding-top:17px}.detail-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.detail-grid img{width:100%;height:530px;object-fit:cover;border-radius:var(--radius)}.detail-grid img:last-child{height:420px;align-self:end}.journal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.journal-card img{height:310px;width:100%;object-fit:cover}.newsletter{border-radius:24px;padding:clamp(30px,5vw,65px);background:var(--forest);color:#fff}.newsletter-form{display:flex;gap:10px;max-width:600px;margin-top:22px}.newsletter-form input{flex:1;border:0;border-radius:999px;padding:14px 18px;background:#fff;color:var(--ink)}

/* Page hero */
.page-hero{padding:105px 0 70px;background:var(--ivory);text-align:center}.page-hero p{margin:0 auto;max-width:730px}.image-hero{height:min(74vh,720px);position:relative}.image-hero img{width:100%;height:100%;object-fit:cover}.image-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(28,35,31,.62),rgba(28,35,31,.06));display:flex;align-items:end;color:white}.image-hero-copy{padding:clamp(30px,6vw,90px);width:min(720px,88%)}

/* Products */
.shop-intro{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:42px}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.product-card{background:var(--ivory);border-radius:18px;overflow:hidden}.product-card img{height:420px;width:100%;object-fit:cover}.product-card .product-copy{padding:22px}.product-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:16px}.status{font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--forest)}
.product-hero{display:grid;grid-template-columns:1.12fr .88fr;min-height:700px}.product-gallery-main img{width:100%;height:700px;object-fit:cover}.product-info{padding:70px max(30px,calc((100vw - 1180px)/2));padding-left:clamp(35px,6vw,90px);display:flex;flex-direction:column;justify-content:center;background:var(--ivory)}.product-info h1{font-size:clamp(3rem,5vw,5rem)}.bullet-list{display:grid;gap:10px;margin:22px 0}.bullet-list div{padding:12px 0;border-bottom:1px solid var(--line)}.gallery-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.gallery-strip img{height:390px;width:100%;object-fit:cover;border-radius:16px}.steps{counter-reset:step;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.step{padding:28px;border:1px solid var(--line);border-radius:18px}.step:before{counter-increment:step;content:'0' counter(step);font-family:var(--serif);font-size:2rem;color:var(--oat)}
.faq{border-top:1px solid var(--line)}details{border-bottom:1px solid var(--line);padding:20px 0}summary{cursor:pointer;font-weight:650;list-style:none;display:flex;justify-content:space-between}summary::-webkit-details-marker{display:none}summary:after{content:'+';font-size:1.25rem}details[open] summary:after{content:'–'}details p{max-width:760px;color:var(--muted)}

/* Journal */
.feature-story{display:grid;grid-template-columns:1.2fr .8fr;gap:34px;align-items:stretch}.feature-story img{height:580px;width:100%;object-fit:cover;border-radius:18px}.feature-copy{background:var(--ivory);padding:45px;border-radius:18px;display:flex;flex-direction:column;justify-content:center}.topic-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:30px 0}.article-card img{height:260px;width:100%;object-fit:cover;border-radius:16px}.article-card p{color:var(--muted)}

/* Footer */
.site-footer{background:#202b28;color:#eef0eb;padding:70px 0 26px}.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:40px}.footer-grid h4{font-family:var(--serif);font-size:1.05rem;margin:0 0 15px}.footer-grid a{display:block;margin:8px 0;color:#cdd2cc;font-size:.9rem}.footer-bottom{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.13);padding-top:20px;margin-top:50px;color:#aeb7b0;font-size:.78rem}.footer-brand{font-family:var(--serif);font-size:1.7rem;margin-bottom:12px}.footer-grid p{color:#cdd2cc;max-width:330px}

/* WordPress/Woo */
.wp-block-group{max-width:1180px;margin:auto}.woocommerce .button,.woocommerce button.button,.woocommerce input.button{background:var(--ink)!important;color:white!important;border-radius:999px!important;font-weight:600!important}.woocommerce ul.products li.product a img{border-radius:16px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--serif);font-size:1.35rem!important;color:var(--ink)}.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--forest)}

@media(max-width:980px){.main-nav{display:none;position:absolute;top:78px;left:0;right:0;background:var(--paper);padding:25px 30px;border-bottom:1px solid var(--line);flex-direction:column;align-items:flex-start}.main-nav.open{display:flex}.menu-toggle{display:block}.header-actions .btn{display:none}.hero{grid-template-columns:1fr}.hero-media{min-height:560px;order:-1}.grid-3,.product-grid,.journal-grid{grid-template-columns:repeat(2,1fr)}.grid-4{grid-template-columns:repeat(2,1fr)}.grid-2,.feature-story,.product-hero{grid-template-columns:1fr}.product-gallery-main img,.product-hero{min-height:0;height:auto}.product-info{padding:55px 30px}.principles,.steps{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.container,.narrow{width:min(100% - 28px,1180px)}.header-inner{height:68px}.main-nav{top:68px}.hero-media{min-height:470px}.hero-copy{padding:48px 22px}.hero-copy h1{font-size:3.35rem}.grid-3,.grid-4,.product-grid,.journal-grid,.gallery-strip{grid-template-columns:1fr}.collection-card{min-height:480px}.split-image img{height:470px}.detail-grid{grid-template-columns:1fr}.detail-grid img,.detail-grid img:last-child{height:420px}.shop-intro{display:block}.product-card img{height:390px}.newsletter-form{flex-direction:column}.footer-grid{grid-template-columns:1fr}.footer-bottom{flex-direction:column;gap:10px}.feature-copy{padding:28px}.feature-story img{height:420px}.page-hero{padding:75px 0 45px}.image-hero{height:620px}.image-hero-overlay{background:linear-gradient(0deg,rgba(28,35,31,.72),rgba(28,35,31,.02))}.product-gallery-main img{height:520px}.gallery-strip img{height:390px}}


/* V1.1 colour rhythm & image variety */
.icon-chip{width:42px;height:42px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;margin-bottom:15px;background:rgba(255,255,255,.62);border:1px solid rgba(39,49,45,.08)}
.icon-chip svg{width:22px;height:22px;stroke:var(--forest);fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.principle.accent{border-top:0;border-radius:18px;padding:24px;min-height:190px}
.principle.accent.sage-card{background:var(--mist)}.principle.accent.blue-card{background:var(--blue-mist)}.principle.accent.clay-card{background:var(--clay)}
.visual-ribbon{display:grid;grid-template-columns:1.05fr .72fr .72fr 1.05fr;gap:14px}
.visual-ribbon figure{margin:0;border-radius:18px;overflow:hidden;position:relative;min-height:360px;background:var(--ivory)}
.visual-ribbon img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.visual-ribbon figure:nth-child(2),.visual-ribbon figure:nth-child(3){min-height:310px;margin-top:42px}
.visual-caption{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}
.visual-caption p{max-width:600px;color:var(--muted);margin:0}
.colour-note{border-radius:22px;padding:34px;background:var(--blue-mist)}
.colour-note .mini-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.colour-dot{width:34px;height:34px;border-radius:50%;border:1px solid rgba(39,49,45,.1)}
.colour-dot.sage{background:var(--forest)}.colour-dot.mist{background:var(--mist)}.colour-dot.blue{background:var(--blue-mist)}.colour-dot.clay{background:var(--clay)}
.product-peek{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:14px;margin-top:50px}.product-peek img{width:100%;height:270px;object-fit:cover;border-radius:16px}.product-peek img:nth-child(even){margin-top:28px}
.soft-icon-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:35px}.soft-icon-item{border-radius:18px;padding:22px;background:rgba(255,255,255,.6)}.soft-icon-item h3{font-size:1.35rem}
@media(max-width:980px){.visual-ribbon{grid-template-columns:1fr 1fr}.visual-ribbon figure,.visual-ribbon figure:nth-child(2),.visual-ribbon figure:nth-child(3){min-height:330px;margin-top:0}.product-peek{grid-template-columns:1fr 1fr}.soft-icon-row{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.visual-ribbon{grid-template-columns:1fr}.visual-ribbon figure,.visual-ribbon figure:nth-child(2),.visual-ribbon figure:nth-child(3){min-height:390px}.visual-caption{display:block}.visual-caption p{margin-top:10px}.product-peek{grid-template-columns:1fr 1fr}.product-peek img{height:210px}.product-peek img:nth-child(even){margin-top:0}.soft-icon-row{grid-template-columns:1fr}}


/* V1.2 Sleep development journey */
.journey-intro{margin-bottom:38px;max-width:720px}
.journey-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.journey-card{min-height:265px;padding:28px;display:flex;flex-direction:column;justify-content:flex-end;border:1px solid rgba(39,49,45,.08);border-radius:8px}
.journey-card.sage-card{background:var(--mist)}
.journey-card.blue-card{background:var(--blue-mist)}
.journey-card.clay-card{background:var(--clay)}
.journey-number{font-family:var(--serif);font-size:2.4rem;line-height:1;color:var(--forest);margin-bottom:auto}
.journey-card h3{margin-top:26px}
.journey-card p{margin:8px 0 0;color:#56605a;max-width:300px}
@media(max-width:980px){.journey-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.journey-grid{grid-template-columns:1fr}.journey-card{min-height:230px}}
