/*
Theme Name: Regimental Heritage
Author: Custom theme for The Regimental Tie Store
Description: A navy, ivory and brass heritage storefront with an editable homepage and native WooCommerce integration.
Version: 1.4.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: regimental-heritage
*/
:root{--navy:#162634;--cream:#f6f3ec;--gold:#9c7a42;--line:#dcd8cd}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;color:var(--navy);background:var(--cream);font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:14px}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button,input{font:inherit}a:focus-visible,input:focus-visible{outline:3px solid #b18d4d;outline-offset:5px}.announcement{background:var(--navy);color:#fff;text-align:center;font-size:10px;letter-spacing:2px;padding:12px}.announcement span{letter-spacing:.4px;opacity:.65;margin-left:18px}header{height:110px;display:flex;align-items:center;justify-content:space-between;padding:0 6%;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;letter-spacing:2px;font-size:11px;line-height:1.5}.brand b{font-family:Georgia,serif;font-size:20px;letter-spacing:3px}.crest{font-size:40px;color:var(--gold)}nav{display:flex;gap:29px;font-size:12px}.contact{font-size:12px}.hero{display:grid;grid-template-columns:1fr 1fr;min-height:650px}.hero-copy{padding:80px 9% 45px 12%}.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:600;margin:0 0 25px;color:var(--gold)}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;margin:0}h1{font-size:100px;line-height:.98;letter-spacing:-3px}h1 i,h2 i{font-weight:400}p{line-height:1.8}.intro{max-width:365px;margin:27px 0 30px;color:#5d6465;font-size:14px}.button{display:inline-flex;align-items:center;justify-content:space-between;gap:35px;padding:18px 23px;background:var(--navy);color:white;font-size:12px}.text-link{font-size:12px;display:inline-block;border-bottom:1px solid #9c7a4260;padding-bottom:6px}.hero .text-link{display:block;width:max-content;margin-top:23px}.hero-note{font-size:10px;line-height:1.6;color:#747776;margin-top:35px;padding-left:35px;position:relative}.hero-note span{position:absolute;left:0;font-size:27px;color:var(--gold)}.hero-art{background:#ded5c4;position:relative;overflow:hidden;min-height:600px}.fabric{position:absolute;inset:0;background:repeating-linear-gradient(85deg,transparent 0 2px,#ffffff12 3px 4px),linear-gradient(125deg,#e8e1d3,#c7bba5 65%,#ede7db);transform:scale(1.1)}.tie,.tie-back,.knot{position:absolute;background:repeating-linear-gradient(155deg,#172733 0 49px,#8a3842 50px 76px,#c0a165 77px 81px,#172733 82px 104px);box-shadow:10px 10px 20px #0005}.tie{width:124px;height:560px;left:48%;top:6%;transform:rotate(24deg);clip-path:polygon(25% 0,75% 0,100% 86%,50% 100%,0 86%);filter:drop-shadow(10px 10px 10px #0005)}.tie:after,.knot:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 1px,#ffffff12 1px 2px)}.tie-back{width:48px;height:450px;left:38%;top:-80px;transform:rotate(24deg)}.knot{width:80px;height:90px;left:66%;top:30px;transform:rotate(24deg);clip-path:polygon(0 0,100% 0,80% 100%,20% 100%)}.art-caption{position:absolute;bottom:45px;left:40px;font-size:10px;letter-spacing:2px;line-height:2}.art-caption small{font-family:Georgia,serif;font-size:18px;font-style:italic;letter-spacing:0}.art-number{position:absolute;right:25px;top:40px;writing-mode:vertical-rl;font-size:9px;letter-spacing:2px}.trust{display:flex;justify-content:space-around;padding:25px 5%;border-block:1px solid var(--line);font-size:10px;letter-spacing:.8px}.trust span:before{content:'✧';color:var(--gold);margin-right:12px}.section{padding:85px 6%}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:35px}.section-head .eyebrow{margin-bottom:14px}h2{font-size:51px;line-height:1.1;letter-spacing:-.6px}.section-head>p{font-size:12px;color:#707474;margin-bottom:0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.collection .product{height:335px;background:#ece9e2;position:relative;overflow:hidden}.collection .product img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;transition:transform .4s}.collection .card:hover img{transform:none}.collection .product>span{position:absolute;top:20px;left:20px;font-size:10px;color:#888}.card-label{display:flex;align-items:center;justify-content:space-between;padding-top:20px}h3{font-size:29px}.card-label p{font-size:11px;color:#727574;margin:8px 0}.card-label b{font-size:22px;font-weight:400}.category-links{border-top:1px solid var(--line);margin-top:30px;padding-top:25px;display:flex;gap:35px;font-size:11px}.category-links>span{font-size:9px;letter-spacing:1px;color:#777;margin-right:auto}.finder{background:var(--navy);color:var(--cream);display:grid;grid-template-columns:1fr 1fr;gap:10%}.finder p{color:#b7c0c4;font-size:12px}.finder h2{font-size:55px}.finder label{font-size:10px;display:block;margin:30px 0 12px}.finder .rh-regiment-filter{display:flex;border-bottom:1px solid #64717b}.finder .rh-regiment-filter input{color:white;background:none;border:0;width:100%;padding:15px 0;outline:none}.finder .rh-regiment-filter span{font-size:30px}.finder .search-help{font-size:10px}.regiment-list{display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:0 25px}.regiment-list a{padding:18px 0;border-bottom:1px solid #ffffff26;font-size:12px;display:flex;justify-content:space-between;gap:15px}.regiment-list a span{color:#b79761}.craft{display:grid;grid-template-columns:1fr 1fr;gap:10%;align-items:center}.craft-art{position:relative;height:500px;background:#e8e2d6;overflow:hidden}.swatch{position:absolute;height:390px;width:210px;box-shadow:5px 10px 15px #0003;transform:rotate(-25deg);top:30px}.one{left:0;background:repeating-linear-gradient(145deg,#1d3331 0 35px,#132c41 36px 68px,#9d8a45 69px 73px)}.two{left:130px;top:80px;background:repeating-linear-gradient(145deg,#752936 0 40px,#192b3b 41px 80px,#bba06e 81px 85px)}.three{left:270px;top:140px;background:repeating-linear-gradient(145deg,#152a3a 0 35px,#6d8a9b 36px 47px,#b4a47c 48px 52px)}.craft-art>span{position:absolute;bottom:20px;left:25px;font-size:9px;letter-spacing:2px;background:#f6f3ec;padding:10px}.craft-copy p:not(.eyebrow){max-width:370px;font-size:13px;color:#697070;margin:25px 0}.occasions{border-top:1px solid var(--line);padding-top:65px}.occasions>h2{margin-bottom:45px}.occasion-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:45px}.occasion-grid article{border-top:1px solid #9c7a42;padding-top:20px}.occasion-grid span{font-size:9px;letter-spacing:1.5px;color:var(--gold)}.occasion-grid h3{margin-top:22px}.occasion-grid p{color:#697070;font-size:12px}.occasion-grid a{font-size:11px;display:inline-block;margin-top:12px}.help{margin:0 6% 80px;padding:45px;background:#e9e5db;display:flex;justify-content:space-between;align-items:center;gap:30px}.help h2{font-size:35px}.help .eyebrow{margin-bottom:15px}.help p:not(.eyebrow){font-size:12px;color:#697070}.help .button{flex-shrink:0}footer{background:var(--navy);color:var(--cream);padding:55px 6% 25px;display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:30px;align-items:start}footer>p,footer div p{font-size:11px;color:#b6c0c5;margin-top:15px;line-height:2}footer div>b{font-size:9px;letter-spacing:1px}.footer-bottom{grid-column:1/-1;border-top:1px solid #ffffff23;padding-top:25px;margin-top:20px;font-size:9px;color:#a7b1b8;display:flex;justify-content:space-between}
@media(min-width:1500px){body{max-width:1600px;margin:auto}}@media(max-width:1000px){nav{gap:16px}.contact{display:none}h1{font-size:78px}.hero-copy{padding-top:60px}.hero-art{min-height:610px}.cards{gap:15px}.collection .product{height:260px}.regiment-list{grid-template-columns:1fr}.finder{gap:6%}.craft-art{height:440px}.category-links{gap:15px}.help{padding:30px}footer{grid-template-columns:1fr 1fr}}@media(max-width:650px){header{height:auto;padding:22px 6%;flex-wrap:wrap;gap:23px}nav{width:100%;justify-content:space-between;gap:8px;font-size:10px}.announcement{font-size:8px}.announcement span{display:none}.hero{grid-template-columns:1fr}.hero-copy{padding:50px 7%}.hero h1{font-size:82px}.hero-art{min-height:470px}.tie{height:440px;top:-10px}.knot{top:-35px;left:63%}.hero-note{margin-top:25px}.trust{display:grid;grid-template-columns:1fr 1fr;gap:20px;font-size:8px}.section{padding:55px 6%}.section-head{display:block}.section-head>p{margin-top:20px}h2,.finder h2{font-size:43px}.cards{grid-template-columns:1fr;gap:30px}.collection .product{height:330px}.category-links{flex-wrap:wrap;gap:18px}.category-links>span{width:100%}.finder,.craft{grid-template-columns:1fr;gap:30px}.regiment-list{grid-template-columns:1fr 1fr;gap:0 20px}.regiment-list a{font-size:10px}.craft-art{height:370px}.craft-copy{padding-top:15px}.occasion-grid{grid-template-columns:1fr;gap:32px}.help{display:block;padding:28px;margin-bottom:50px}.help .button{margin-top:18px}.help h2{font-size:34px}footer{grid-template-columns:1fr 1fr;gap:28px}.footer-bottom{display:block;line-height:1.8}.footer-bottom span{display:block;margin-top:10px}}

.skip-link{position:absolute;top:-100px;left:15px;background:white;padding:15px;z-index:9999}.skip-link:focus{top:10px}.site-main{min-height:55vh}.content-wrap,.woocommerce-wrap{width:min(1180px,88%);margin:55px auto}.entry-content{font-size:16px;line-height:1.8}.entry-content h2{font-size:36px;margin:35px 0 20px}.entry-content h3{margin:30px 0 15px}.entry-content a{text-decoration:underline}.entry-content img{max-width:100%;height:auto}.entry-title{margin-bottom:30px;font-size:52px}.post-card{padding:30px 0;border-bottom:1px solid var(--line)}.post-card h2{font-size:36px}.post-card p{max-width:750px}.wp-caption{max-width:100%}.alignright{float:right;margin:0 0 20px 25px}.alignleft{float:left;margin:0 25px 20px 0}.aligncenter{display:block;margin:auto}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.entry-content:after{content:'';display:table;clear:both}img{max-width:100%}nav ul{list-style:none;display:flex;gap:24px;padding:0;margin:0;flex-wrap:wrap}nav li{position:relative}nav .sub-menu{display:none;position:absolute;z-index:99;min-width:200px;background:var(--cream);padding:15px;box-shadow:0 4px 12px #0002}nav li:hover>.sub-menu,nav li:focus-within>.sub-menu{display:block}nav .sub-menu a{display:block;padding:8px}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{background:var(--navy);color:#fff;border-radius:0;font-weight:500;padding:15px 22px}.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce button.button.alt:hover{background:#30485b;color:#fff}.woocommerce ul.products li.product h2{font-size:24px;line-height:1.3}.woocommerce ul.products li.product .price{color:var(--navy);font-size:15px}.woocommerce ul.products li.product a img{background:#ece9e2}.woocommerce div.product .product_title{font-size:45px;line-height:1.15}.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--navy)}.woocommerce input.input-text,.woocommerce textarea,.woocommerce select,.entry-content input:not([type=checkbox]):not([type=radio]),.entry-content textarea{border:1px solid #bbb;background:#fff;padding:12px;max-width:100%}.woocommerce table.shop_table{border-radius:0}.woocommerce-message,.woocommerce-info{border-top-color:var(--gold)}.woocommerce-message:before,.woocommerce-info:before{color:var(--gold)}.woocommerce div.product .woocommerce-tabs ul.tabs li{border-radius:0}.woocommerce div.product .woocommerce-tabs ul.tabs li a{font-weight:500}.woocommerce-breadcrumb{margin-bottom:25px!important}.wc-block-components-button{border-radius:0!important}.custom-logo{width:auto;max-height:65px}.woocommerce .quantity .qty{min-width:70px}.regiment-list .empty-state{grid-column:1/-1}.content-wrap input[type=search]{padding:14px;border:1px solid #bbb}.content-wrap button{padding:14px;background:var(--navy);color:white;border:0}@media(max-width:650px){nav ul{gap:14px}.entry-title{font-size:38px}.content-wrap,.woocommerce-wrap{margin:35px auto}nav .sub-menu{position:static}.woocommerce div.product .product_title{font-size:36px}}

header .contact{display:inline-block;font-size:12px;white-space:nowrap}footer ul{list-style:none;padding:0;line-height:2;font-size:12px} .regiment-list a[hidden]{display:none!important}@media(max-width:650px){header nav{order:3}header .contact{margin-left:auto}}

/* Product-referenced lifestyle photographs replace the decorative tie artwork. */
.lifestyle-photo{margin:0;position:relative;background:#ddd6c8;overflow:hidden}
.hero-art.lifestyle-photo{min-height:650px}
.lifestyle-photo>img{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center 35%}
.craft-art.lifestyle-photo>img{object-position:center 40%}
.lifestyle-photo .photo-note{position:absolute;bottom:0;left:0;right:0;margin:0;padding:12px 18px;color:#fff;background:linear-gradient(transparent,#152634cc);font-size:10px;line-height:1.6;letter-spacing:.25px;z-index:1}
@media(max-width:1000px){.hero-art.lifestyle-photo{min-height:610px}}
@media(max-width:650px){.hero-art.lifestyle-photo{min-height:0;aspect-ratio:4/5}.craft-art.lifestyle-photo{height:auto;aspect-ratio:5/4}}

/* Site-wide WordPress search, separate from the directory filter. */
.site-search-bar{padding:18px 6%;border-bottom:1px solid var(--line);background:#eeebe3}
.site-search-form{display:flex;align-items:center;gap:25px;width:100%;margin:0}
.site-search-form>label{font-size:12px;font-weight:600;white-space:nowrap}
.site-search-fields{display:flex;flex:1;gap:0;min-width:0}
.site-search-form input[type=search]{width:100%;min-width:0;border:1px solid #c8c3b7;border-right:0;background:#fff;color:var(--navy);padding:13px 16px;border-radius:0;font-size:14px}
.site-search-form button{border:0;background:var(--navy);color:#fff;padding:13px 24px;font-size:12px;cursor:pointer;white-space:nowrap}
.site-search-form button:hover{background:#30485b}.directory-search-link{grid-column:1/-1;font-size:11px}
.regiment-list{max-height:600px;overflow:auto;align-content:start;padding-right:10px}
@media(max-width:650px){.site-search-form{display:block}.site-search-form>label{display:block;margin-bottom:10px}.site-search-form button{padding:13px 16px}.site-search-form input[type=search]{font-size:16px}.regiment-list{max-height:460px}}

/* Product containers must grow with images and content; only homepage wrappers have a fixed height. */
.woocommerce ul.products li.product{height:auto;overflow:visible;background:transparent;position:relative}
.woocommerce div.product{height:auto;overflow:visible;background:transparent}
.woocommerce ul.products li.product a img{width:100%;height:auto;max-height:none;object-fit:contain;mix-blend-mode:normal;transform:none}
.woocommerce div.product div.images .woocommerce-product-gallery__image img{height:auto;max-height:none;object-fit:contain;mix-blend-mode:normal;transform:none}
.woocommerce div.product div.images img.zoomImg{display:none!important}
.woocommerce ul.products li.product a img:hover{transform:none}
.rh-search-summary{color:#667174;font-size:13px;margin-bottom:25px}
.rh-search-tabs,.rh-related-regiments{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 30px}
.rh-search-tabs a,.rh-related-regiments a{padding:10px 16px;border:1px solid var(--line);font-size:12px}
.rh-search-tabs a[aria-current=page]{background:var(--navy);border-color:var(--navy);color:white}
.rh-search-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px;margin:30px 0 45px}
.rh-search-card{min-width:0;border:1px solid var(--line);background:#fff;display:flex;flex-direction:column}
.rh-result-image{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;background:#f0eee8;padding:18px}
.rh-result-image img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:normal}
.rh-result-copy{padding:22px;display:flex;flex-direction:column;flex:1}.rh-result-copy h2{font-size:24px;line-height:1.3;letter-spacing:0}
.rh-result-copy .eyebrow{margin-bottom:12px}.rh-result-copy p{font-size:12px;color:#697070}.rh-result-price{margin:15px 0;font-size:16px}.rh-result-copy .text-link{margin-top:auto;align-self:flex-start}
@media(max-width:950px){.rh-search-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.rh-search-grid{grid-template-columns:1fr}.rh-result-image{aspect-ratio:4/3}}

/* Explicit contrast prevents browser or WooCommerce input styles hiding typed queries. */
.finder #regiment-search{display:block;background:#233847!important;color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;caret-color:#ffffff;border:1px solid #8294a0!important;padding:14px 16px!important;border-radius:0;opacity:1;font-size:16px;min-width:0}
.finder #regiment-search::placeholder{color:#cbd5dc!important;-webkit-text-fill-color:#cbd5dc!important;opacity:1}
.finder #regiment-search:focus-visible{outline:2px solid #d5b67b;outline-offset:3px}
.finder #regiment-search:-webkit-autofill{-webkit-text-fill-color:#ffffff!important;box-shadow:0 0 0 1000px #233847 inset!important;caret-color:#ffffff}
.finder .rh-regiment-filter{border:0;gap:10px;align-items:center}

.rh-related-title{font-size:28px;line-height:1.3;letter-spacing:0}

/* WordPress body.search is a normal document, never a filter flex container. */
body.search{display:block}

/* Remembrance is an editorial feature, separate from shopping calls to action. */
.rh-remembrance{border-top:1px solid var(--line);background:#eeebe3}
.rh-remembrance-intro{max-width:800px;margin-bottom:36px}.rh-remembrance-intro h2{font-size:48px;line-height:1.15}
.rh-remembrance .eyebrow{color:#9f3338;margin-bottom:18px}
.rh-remembrance-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:6%;align-items:start}
.rh-poppy-image{margin:0;position:sticky;top:30px}.rh-poppy-image img{display:block;width:100%;height:auto;border-radius:0}
.rh-remembrance-copy>p{font-size:14px;line-height:1.85;margin:0 0 20px;color:#515d62}
.rh-armistice-panel{display:flex;align-items:center;gap:22px;padding:24px 0;margin:24px 0;border-block:1px solid #cfc7b8}
.rh-armistice-panel h3{font-size:28px;line-height:1.3}.rh-armistice-panel p{margin:8px 0;font-size:12px}
.rh-calendar{width:96px;flex-shrink:0;text-align:center;border:1px solid #c4b8a3;background:#f6f3ec;padding:12px 6px}
.rh-calendar span{display:block;font-size:9px;letter-spacing:1.5px;color:#7a4d4e}.rh-calendar strong{display:block;font-family:Georgia,serif;font-size:54px;line-height:1.1;color:#96333b;margin:5px 0}
.rh-remembrance-date{font-weight:600}.rh-sunday-note{padding-left:16px;border-left:3px solid #a14c50}
.rh-remembrance-sources{font-size:11px;line-height:1.8;border-top:1px solid #cfc7b8;padding-top:18px;display:flex;flex-wrap:wrap;gap:7px 18px}.rh-remembrance-sources>span{width:100%;color:#667174}.rh-remembrance-sources a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:750px){.rh-remembrance-layout{grid-template-columns:1fr;gap:28px}.rh-poppy-image{position:static}.rh-poppy-image img{max-height:360px;object-fit:cover}.rh-remembrance-intro h2{font-size:36px}.rh-armistice-panel{gap:15px}.rh-armistice-panel h3{font-size:25px}.rh-calendar{width:82px}}
