/*
Theme Name: Timbercraft Woodworx Fully Editable v17
Theme URI: https://timbercraftwoodworx.ca/
Author: Timbercraft Woodworx
Description: Premium custom WordPress theme for Timbercraft Woodworx.
Version: 17.0
*/
:root{
  --black:#0b0b0a; --ink:#12100e; --brown:#24170f; --brown2:#332116;
  --cream:#f5efe5; --gold:#d9a15c; --gold2:#efc485; --white:#fff;
  --muted:#cfc6ba; --line:#5c3a24;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:#1c1815;font-family:Arial,Helvetica,sans-serif;line-height:1.55}
a{text-decoration:none;color:inherit}
img{max-width:100%}
.site-topbar{background:#090908;color:#ddd;font-size:13px;padding:8px 5%;display:flex;justify-content:flex-end;gap:25px}
.site-topbar a:hover{color:var(--gold2)}
.site-header{background:rgba(11,11,10,.97);color:white;position:sticky;top:0;z-index:99;border-bottom:2px solid #7b4b25}
.nav-wrap{max-width:1500px;margin:auto;display:flex;align-items:center;gap:25px;min-height:92px;padding:0 26px}
.site-logo{width:205px;height:82px;object-fit:contain;filter:invert(1);flex:0 0 auto}
.main-nav{display:flex;align-items:center;justify-content:center;gap:24px;flex:1}
.main-nav a{font-size:12px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;padding:34px 0;color:#f5f3ef;white-space:nowrap}
.main-nav a:hover{color:var(--gold2)}
.header-quote,.button{display:inline-block;background:linear-gradient(#edc17d,#d79a4b);color:#18120d;border:1px solid #dda657;padding:14px 21px;font-size:12px;letter-spacing:.9px;text-transform:uppercase;font-weight:900;border-radius:2px;cursor:pointer}
.header-quote:hover,.button:hover{filter:brightness(1.06)}
.mobile-toggle{display:none;background:none;border:0;color:white;font-size:28px;margin-left:auto}

.hero{min-height:650px;color:#fff;display:flex;align-items:center;
  background:
  linear-gradient(90deg,rgba(5,5,5,.96) 0%,rgba(8,7,6,.84) 42%,rgba(8,7,6,.27) 74%);
}
.hero-inner{width:min(1450px,92%);margin:auto;padding:85px 40px}
.eyebrow{margin:0 0 13px;color:var(--gold2);font-size:12px;font-weight:900;letter-spacing:3px;text-transform:uppercase}
.hero h1{font-family:Georgia,'Times New Roman',serif;text-transform:uppercase;font-size:clamp(46px,6.1vw,82px);line-height:.96;margin:0 0 22px;max-width:900px}
.hero h1 span{display:block;color:var(--gold2)}
.hero-copy{font-size:18px;color:#eee;max-width:680px}
.hero-buttons{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.button.outline{background:transparent;color:white;border-color:white}
.button.outline:hover{background:white;color:#15110d}

.trust-strip{display:grid;grid-template-columns:repeat(5,1fr);background:#f1e8da;border-bottom:1px solid #d4c7b5}
.trust-item{text-align:center;padding:23px 18px;border-right:1px solid #d4c7b5}
.trust-item:last-child{border-right:0}
.trust-item strong{display:block;font-size:12px;letter-spacing:1px;text-transform:uppercase;margin-bottom:3px}
.trust-item span{font-size:12px;color:#655b50}

.section{max-width:1500px;margin:auto;padding:82px 5%;scroll-margin-top:110px}
.section-heading{text-align:center;max-width:820px;margin:0 auto 42px}
.section-heading h2,.split-copy h2,.about-inner h2{font-family:Georgia,'Times New Roman',serif;font-size:46px;line-height:1.05;margin:0 0 15px}
.section-heading p:last-child{color:#6e655b}
.cards{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.card{background:#101010;color:white;overflow:hidden;box-shadow:0 8px 22px rgba(0,0,0,.12)}
.card img{display:block;width:100%;height:330px;object-fit:contain;background:#0a0a0a;filter:contrast(1.03) saturate(1.03)}
.product-gallery-main{position:relative;background:#0a0a0a}
.product-gallery-main .product-main-image{transition:opacity .18s ease}
.photo-count{position:absolute;right:9px;bottom:9px;background:rgba(0,0,0,.74);color:#fff;border:1px solid rgba(255,255,255,.28);padding:5px 8px;font-size:10px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;border-radius:2px}
.product-thumbnails{display:flex;gap:5px;padding:7px;background:#171717;overflow-x:auto;scrollbar-width:thin}
.product-thumb{appearance:none;border:2px solid transparent;background:#080808;padding:0;cursor:pointer;flex:0 0 54px;height:46px;opacity:.72}
.product-thumb:hover,.product-thumb.active{opacity:1;border-color:var(--gold)}
.product-thumb img{width:100%;height:100%;object-fit:cover;filter:none}
.card-body{padding:23px 20px 26px;min-height:235px}
.card h3{font-family:Georgia,'Times New Roman',serif;font-size:21px;margin:4px 0 11px}
.card p{font-size:13.5px;color:#d9d9d9}
.card a{display:inline-block;color:var(--gold2);font-size:11px;letter-spacing:1px;text-transform:uppercase;font-weight:900;margin-top:6px}

.engraving{display:grid;grid-template-columns:1fr 1fr;background:#15110e;color:white;scroll-margin-top:110px}
.engraving-photo{min-height:520px;background-position:center;background-size:cover;background-repeat:no-repeat}
.split-copy{padding:80px 9%;align-self:center}
.split-copy p{color:#ddd}
.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;margin:27px 0}
.feature-grid div{border-top:1px solid var(--line);padding-top:10px;font-weight:700}

.about{background:#26180f;color:white;scroll-margin-top:110px}
.about-inner{max-width:1150px;margin:auto;padding:78px 5%;text-align:center}
.about-inner p{color:#e4ddd5}

.contact-section{scroll-margin-top:110px}
.contact-grid{display:grid;grid-template-columns:.78fr 1.22fr;gap:45px}
.contact-card{background:#15110e;color:#fff;padding:34px}
.contact-card h3{font-family:Georgia,'Times New Roman',serif;font-size:31px;margin:0 0 8px}
.contact-card a{display:block;color:var(--gold2);margin:15px 0}
.contact-card .service-area{color:#ddd;margin-top:22px}
.quote-form{background:white;padding:35px;box-shadow:0 10px 30px rgba(0,0,0,.08)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.quote-form label{display:block;font-weight:800;font-size:12px;margin-bottom:16px}
.quote-form input,.quote-form select,.quote-form textarea{width:100%;padding:13px;border:1px solid #cfc5b7;margin-top:6px;background:#fcfaf7;font:inherit}
.quote-form textarea{resize:vertical}
.form-success{background:#eef6eb;border:1px solid #a7c79d;padding:12px 14px;margin-bottom:18px}

.cta{background:linear-gradient(90deg,#15100d,#332014);color:#fff;padding:50px 5%;display:flex;align-items:center;justify-content:space-between;gap:25px}
.cta h2{font-family:Georgia,'Times New Roman',serif;font-size:39px;margin:0}

.site-footer{background:#080808;color:#ccc;padding:42px 5%;display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap}
.footer-logo{width:200px;height:85px;object-fit:contain;filter:invert(1)}
.footer-details strong{display:block;color:white}
.footer-details small{display:block;color:#999;margin-top:6px}

@media(max-width:1150px){
  .main-nav{gap:14px}.main-nav a{font-size:11px}
  .cards{grid-template-columns:repeat(2,1fr)}
  .trust-strip{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:820px){
  .site-topbar{justify-content:center;flex-wrap:wrap}
  .nav-wrap{min-height:75px;padding:0 15px;position:relative}
  .site-logo{width:165px;height:70px}
  .mobile-toggle{display:block}
  .header-quote{display:none}
  .main-nav{display:none;position:absolute;top:75px;left:0;right:0;background:#0b0b0a;flex-direction:column;align-items:stretch;gap:0;padding:7px 18px 15px}
  .main-nav.open{display:flex}
  .main-nav a{padding:13px 7px;border-bottom:1px solid #252525}
  .hero{min-height:640px}
  .hero-inner{padding:60px 20px}
  .hero h1{font-size:44px}
  .hero-copy{font-size:16px}
  .trust-strip{grid-template-columns:1fr 1fr}
  .cards{grid-template-columns:1fr}
  .card img{height:320px}
  .engraving,.contact-grid{grid-template-columns:1fr}
  .engraving-photo{min-height:380px}
  .split-copy{padding:55px 7%}
  .form-grid,.feature-grid{grid-template-columns:1fr}
  .section{padding:62px 5%}
  .section-heading h2,.split-copy h2,.about-inner h2{font-size:37px}
  .cta{flex-direction:column;align-items:flex-start}
}


/* v9: full gallery overlay */
body.tc-gallery-open{overflow:hidden}
.tc-gallery-modal{position:fixed;inset:0;z-index:9999;background:rgba(5,5,5,.97);color:#fff;display:none;overflow:auto;padding:34px 4% 55px}
.tc-gallery-modal.open{display:block}
.tc-gallery-dialog{max-width:1450px;margin:0 auto}
.tc-gallery-top{display:flex;align-items:flex-start;justify-content:space-between;gap:25px;margin-bottom:25px;border-bottom:1px solid #3a2b20;padding-bottom:18px}
.tc-gallery-top h2{font-family:Georgia,'Times New Roman',serif;font-size:44px;margin:0 0 8px}
.tc-gallery-top p{margin:0;color:#d5cec5;max-width:760px}
.tc-gallery-close{border:1px solid #8b6848;background:#15110e;color:#fff;width:48px;height:48px;font-size:28px;line-height:1;cursor:pointer;border-radius:2px}
.tc-gallery-close:hover{background:#2d2017;color:var(--gold2)}
.tc-gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.tc-gallery-item{appearance:none;border:0;background:#111;padding:0;cursor:pointer;overflow:hidden;min-height:220px}
.tc-gallery-item img{width:100%;height:100%;min-height:220px;max-height:330px;object-fit:cover;display:block;transition:transform .18s ease,filter .18s ease}
.tc-gallery-item:hover img{transform:scale(1.018);filter:brightness(1.08)}
.tc-gallery-viewer{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.94);display:none;align-items:center;justify-content:center;padding:42px}
.tc-gallery-viewer.open{display:flex}
.tc-gallery-viewer img{max-width:min(1400px,94vw);max-height:88vh;object-fit:contain;box-shadow:0 12px 50px rgba(0,0,0,.6)}
.tc-gallery-viewer-close{position:absolute;right:22px;top:18px;border:0;background:transparent;color:#fff;font-size:42px;cursor:pointer}
@media(max-width:1000px){.tc-gallery-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.tc-gallery-modal{padding:24px 4% 45px}.tc-gallery-top h2{font-size:34px}.tc-gallery-grid{grid-template-columns:repeat(2,1fr)}.tc-gallery-item,.tc-gallery-item img{min-height:160px}.tc-gallery-viewer{padding:24px}}

.social-links{display:flex;gap:10px;margin-top:14px;align-items:center}.social-links a{display:inline-flex!important;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid rgba(217,161,92,.7);border-radius:50%;color:var(--gold2)!important;text-decoration:none;transition:.2s ease}.social-links a:hover{background:var(--gold);color:var(--black)!important;border-color:var(--gold);transform:translateY(-1px)}.social-icon-facebook{font:700 25px/1 Arial,sans-serif}.social-icon-instagram{position:relative;width:20px;height:20px;border:2px solid currentColor;border-radius:6px;display:block}.social-icon-instagram:before{content:"";position:absolute;width:7px;height:7px;border:2px solid currentColor;border-radius:50%;left:4.5px;top:4.5px}.social-icon-instagram:after{content:"";position:absolute;width:3px;height:3px;background:currentColor;border-radius:50%;right:3px;top:3px}
