/*
Theme Name: Spice Design Studio
Theme URI: https://spicedesign.studio
Author: Spice Design Studio
Author URI: https://spicedesign.studio
Description: Custom theme for Spice Design Studio — Remodeling & Custom Carpentry, Austin TX.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
License: Private
Tags: business, portfolio, custom-background, custom-logo, full-width-template
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@200;300;400;500&display=swap');

:root {
  --bg:        #0c0b09;
  --bg2:       #141210;
  --cream:     #e8dcc8;
  --cream-dim: #c9bda6;
  --gold:      #c4975a;
  --gold-light:#d9b07a;
  --white:     #f5f0e8;
  --text-muted:#7a6e60;
  --border:    rgba(196,151,90,0.2);
}

/* Nav height token — change this one value if you resize the nav */
:root { --nav-h: 88px; }

*{margin:0;padding:0;box-sizing:border-box;}

/* scroll-padding-top ensures anchor links (#section) land below the fixed nav */
html{
  scroll-behavior:smooth;
  scroll-padding-top: var(--nav-h);
}

/* Push all page content down so nothing hides under the fixed nav */
body{
  background:var(--bg);
  color:var(--cream);
  font-family:'Jost',sans-serif;
  font-weight:300;
  overflow-x:hidden;
  padding-top: var(--nav-h);
}

/* ── NAV ── */
#main-nav{
  position:fixed;
  top:0;left:0;right:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1.5rem 4rem;
  background:linear-gradient(to bottom,rgba(12,11,9,0.95) 0%,transparent 100%);
  backdrop-filter:blur(4px);
  transition:background 0.3s;
}
#main-nav.scrolled{background:rgba(12,11,9,0.98);}

.nav-logo{display:flex;align-items:center;gap:1rem;text-decoration:none;}
.nav-logo img{height:52px;mix-blend-mode:screen;filter:brightness(1.1);}
.nav-logo-text{display:flex;flex-direction:column;line-height:1;}
.nav-logo-text .site-name{
  font-family:'Cormorant Garamond',serif;
  font-size:1.2rem;font-weight:500;
  letter-spacing:0.08em;color:var(--cream);
}
.nav-logo-text .site-tagline{
  font-size:0.6rem;font-weight:400;
  letter-spacing:0.25em;text-transform:uppercase;
  color:var(--gold);margin-top:3px;
}

.nav-links{display:flex;gap:3rem;list-style:none;}
.nav-links a{
  font-size:0.7rem;font-weight:400;
  letter-spacing:0.2em;text-transform:uppercase;
  color:var(--cream-dim);text-decoration:none;
  transition:color 0.3s;position:relative;
}
.nav-links a::after{
  content:'';position:absolute;bottom:-4px;left:0;
  width:0;height:1px;background:var(--gold);transition:width 0.3s;
}
.nav-links a:hover,.nav-links a.active{color:var(--gold);}
.nav-links a:hover::after,.nav-links a.active::after{width:100%;}

.nav-cta{
  font-size:0.65rem;font-weight:400;
  letter-spacing:0.2em;text-transform:uppercase;
  color:var(--bg);background:var(--gold);
  padding:0.7rem 1.8rem;border:none;
  cursor:pointer;transition:background 0.3s,transform 0.2s;
  text-decoration:none;
}
.nav-cta:hover{background:var(--gold-light);transform:translateY(-1px);}

.ham{display:none;}
.mobile-menu{
  display:none;position:fixed;inset:0;z-index:99;
  background:rgba(8,8,7,0.97);
  flex-direction:column;align-items:center;justify-content:center;gap:2.5rem;
}
.mobile-menu.open{display:flex;}
.mobile-menu a{
  font-family:'Cormorant Garamond',serif;font-size:2.5rem;
  font-weight:300;color:var(--cream);text-decoration:none;transition:color 0.3s;
}
.mobile-menu a:hover{color:var(--gold);}
.mobile-close{
  position:absolute;top:1.5rem;right:2rem;
  font-size:2rem;color:var(--cream-dim);
  background:none;border:none;cursor:pointer;line-height:1;
}

/* ── SHARED ── */
.container{max-width:1300px;margin:0 auto;padding:0 4rem;}
.section-label{
  font-size:0.6rem;font-weight:400;
  letter-spacing:0.35em;text-transform:uppercase;
  color:var(--gold);display:flex;align-items:center;gap:1rem;margin-bottom:1.2rem;
}
.section-label::before{content:'';display:block;width:30px;height:1px;background:var(--gold);}
.section-title{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(2.4rem,4vw,3.6rem);font-weight:300;
  line-height:1.15;color:var(--white);
}
.section-title em{font-style:italic;color:var(--gold);}

.btn-primary{
  font-size:0.65rem;font-weight:500;letter-spacing:0.22em;text-transform:uppercase;
  color:var(--bg);background:var(--gold);
  padding:1.1rem 2.8rem;border:none;cursor:pointer;
  transition:all 0.3s;text-decoration:none;display:inline-block;
}
.btn-primary:hover{background:var(--gold-light);transform:translateY(-2px);color:var(--bg);}
.btn-secondary{
  font-size:0.65rem;font-weight:400;letter-spacing:0.22em;text-transform:uppercase;
  color:var(--cream-dim);background:none;
  border:1px solid rgba(232,220,200,0.3);
  padding:1.1rem 2.8rem;cursor:pointer;transition:all 0.3s;
  text-decoration:none;display:inline-block;
}
.btn-secondary:hover{border-color:var(--gold);color:var(--gold);}

/* ── HERO ── */
/*
 * Full-bleed sections are intentionally designed to sit under the transparent nav.
 * We pull them up by --nav-h to cancel the body padding-top, so the background
 * image still reaches the very top of the viewport behind the nav.
 */
.hero,
.portfolio-hero,
.contact-hero {
  margin-top: calc(-1 * var(--nav-h));
}

.hero{
  position:relative;height:100vh;
  display:flex;align-items:flex-end;overflow:hidden;
}
.hero-bg{
  position:absolute;inset:0;
  background:url('images/hero.jpg') center/cover no-repeat;
  transform:scale(1.05);animation:heroZoom 12s ease-out forwards;
}
@keyframes heroZoom{to{transform:scale(1);}}
.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(12,11,9,0.85) 0%,rgba(12,11,9,0.4) 50%,rgba(12,11,9,0.7) 100%);
}
.hero-content{
  position:relative;z-index:2;
  padding:0 4rem 8rem;max-width:780px;
  animation:heroFadeUp 1.2s ease-out 0.3s both;
}
@keyframes heroFadeUp{from{opacity:0;transform:translateY(40px);}to{opacity:1;transform:translateY(0);}}
.hero-eyebrow{
  font-size:0.62rem;font-weight:400;letter-spacing:0.35em;text-transform:uppercase;
  color:var(--gold);margin-bottom:1.5rem;
  display:flex;align-items:center;gap:1rem;
}
.hero-eyebrow::before{content:'';display:block;width:40px;height:1px;background:var(--gold);}
.hero-title{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(3.2rem,7vw,6rem);font-weight:300;
  line-height:1.05;color:var(--white);margin-bottom:2rem;
}
.hero-title em{font-style:italic;color:var(--gold);}
.hero-subtitle{
  font-size:0.85rem;font-weight:300;line-height:1.9;
  color:var(--cream-dim);max-width:500px;margin-bottom:3rem;
}
.hero-actions{display:flex;gap:1.5rem;align-items:center;}
.hero-scroll{
  position:absolute;bottom:2.5rem;right:4rem;z-index:2;
  display:flex;flex-direction:column;align-items:center;gap:0.8rem;opacity:0.6;
}
.hero-scroll span{
  font-size:0.55rem;letter-spacing:0.25em;text-transform:uppercase;
  color:var(--cream-dim);writing-mode:vertical-lr;
}
.scroll-line{
  width:1px;height:60px;
  background:linear-gradient(to bottom,var(--gold),transparent);
  animation:scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse{0%,100%{opacity:0.4}50%{opacity:1}}

/* ── ABOUT ── */
.about-strip{
  background:var(--bg2);padding:7rem 0;
  border-top:1px solid var(--border);border-bottom:1px solid var(--border);
}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:6rem;align-items:center;}
.about-img-wrap{position:relative;}
.about-img-wrap img{width:100%;height:520px;object-fit:cover;display:block;}
.about-img-wrap::before{
  content:'';position:absolute;
  top:-20px;left:-20px;right:20px;bottom:20px;
  border:1px solid var(--border);z-index:-1;
}
.about-badge{
  position:absolute;bottom:-1.5rem;right:-1.5rem;
  background:var(--gold);color:var(--bg);padding:1.5rem 2rem;text-align:center;
}
.about-badge .num{font-family:'Cormorant Garamond',serif;font-size:2.8rem;font-weight:600;line-height:1;display:block;}
.about-badge .lbl{font-size:0.55rem;font-weight:500;letter-spacing:0.18em;text-transform:uppercase;display:block;margin-top:4px;}
.about-text p{font-size:0.92rem;line-height:2;color:var(--cream-dim);margin-bottom:1.5rem;}
.about-stats{
  display:grid;grid-template-columns:1fr 1fr;gap:2rem;
  margin-top:3rem;padding-top:2.5rem;border-top:1px solid var(--border);
}
.stat-item .num{font-family:'Cormorant Garamond',serif;font-size:2.4rem;font-weight:300;color:var(--gold);display:block;}
.stat-item .lbl{font-size:0.65rem;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-muted);margin-top:4px;display:block;}

/* ── SERVICES ── */
.services{padding:8rem 0;}
.services-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:2px;margin-top:5rem;background:var(--border);
}
.service-card{
  background:var(--bg);padding:3.5rem 2.8rem;
  position:relative;overflow:hidden;transition:background 0.4s;
}
.service-card::after{
  content:'';position:absolute;bottom:0;left:0;
  width:0;height:2px;background:var(--gold);transition:width 0.4s;
}
.service-card:hover{background:var(--bg2);}
.service-card:hover::after{width:100%;}
.service-num{font-family:'Cormorant Garamond',serif;font-size:4rem;font-weight:300;color:rgba(196,151,90,0.12);line-height:1;margin-bottom:1rem;}
.service-title{font-family:'Cormorant Garamond',serif;font-size:1.5rem;font-weight:400;color:var(--cream);margin-bottom:1rem;}
.service-desc{font-size:0.82rem;line-height:1.85;color:var(--text-muted);}

/* ── FEATURED ── */
.featured{padding:8rem 0;background:var(--bg2);}
.featured-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:4rem;}
.featured-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:2px;}
.featured-main{position:relative;overflow:hidden;height:560px;}
.featured-main img{width:100%;height:100%;object-fit:cover;transition:transform 0.8s ease;}
.featured-main:hover img{transform:scale(1.04);}
.featured-side{display:flex;flex-direction:column;gap:2px;}
.featured-sm{flex:1;position:relative;overflow:hidden;}
.featured-sm img{width:100%;height:100%;object-fit:cover;transition:transform 0.8s ease;display:block;}
.featured-sm:hover img{transform:scale(1.04);}
.img-caption{
  position:absolute;bottom:0;left:0;right:0;
  padding:1.5rem 2rem;
  background:linear-gradient(to top,rgba(12,11,9,0.85) 0%,transparent 100%);
  transform:translateY(100%);transition:transform 0.4s ease;
}
.featured-main:hover .img-caption,.featured-sm:hover .img-caption{transform:translateY(0);}
.img-caption span{font-size:0.75rem;letter-spacing:0.12em;color:var(--cream);}

/* ── TESTIMONIAL ── */
.testimonial{
  padding:8rem 0;text-align:center;
  border-top:1px solid var(--border);border-bottom:1px solid var(--border);
}
.quote-mark{font-family:'Cormorant Garamond',serif;font-size:8rem;line-height:0.5;color:var(--gold);opacity:0.3;display:block;margin-bottom:2rem;}
.quote-text{
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(1.4rem,2.5vw,2rem);font-weight:300;font-style:italic;
  line-height:1.6;color:var(--cream);max-width:780px;margin:0 auto 2.5rem;
}
.quote-author{font-size:0.7rem;letter-spacing:0.2em;text-transform:uppercase;color:var(--gold);}

/* ── PORTFOLIO ── */
.portfolio-hero{height:45vh;display:flex;align-items:flex-end;position:relative;overflow:hidden;}
.portfolio-hero-bg{
  position:absolute;inset:0;
  background:url('images/portfolio-hero.jpg') center/cover no-repeat;
}
.portfolio-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(12,11,9,1) 0%,rgba(12,11,9,0.5) 100%);
}
.portfolio-hero-content{position:relative;z-index:2;padding:0 4rem 4rem;}

.portfolio-filters{padding:3rem 0;border-bottom:1px solid var(--border);}
.filter-btns{display:flex;gap:0.5rem;flex-wrap:wrap;}
.filter-btn{
  font-size:0.62rem;font-weight:400;letter-spacing:0.18em;text-transform:uppercase;
  color:var(--text-muted);background:none;border:1px solid rgba(122,110,96,0.3);
  padding:0.65rem 1.6rem;cursor:pointer;transition:all 0.3s;
}
.filter-btn:hover,.filter-btn.active{color:var(--bg);background:var(--gold);border-color:var(--gold);}

.portfolio-grid{
  padding:5rem 0;
  display:grid;grid-template-columns:repeat(3,1fr);gap:2px;
}
.port-item{position:relative;overflow:hidden;aspect-ratio:3/4;cursor:pointer;}
.port-item img{width:100%;height:100%;object-fit:cover;transition:transform 0.7s ease;display:block;}
.port-item:hover img{transform:scale(1.06);}
.port-overlay{
  position:absolute;inset:0;
  background:rgba(12,11,9,0.75);
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:2rem;opacity:0;transition:opacity 0.4s;
}
.port-item:hover .port-overlay{opacity:1;}
.port-cat{font-size:0.58rem;letter-spacing:0.22em;text-transform:uppercase;color:var(--gold);margin-bottom:0.5rem;}
.port-name{font-family:'Cormorant Garamond',serif;font-size:1.4rem;font-weight:400;color:var(--white);}

.cta-banner{background:var(--bg2);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:6rem 0;text-align:center;}
.cta-banner p.body-text{font-size:0.88rem;color:var(--text-muted);max-width:480px;margin:0 auto 2.5rem;line-height:1.9;}

/* ── CONTACT ── */
.contact-hero{height:40vh;display:flex;align-items:flex-end;position:relative;overflow:hidden;}
.contact-hero-bg{
  position:absolute;inset:0;
  background:url('images/contact-hero.jpg') center/cover no-repeat;
}
.contact-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(12,11,9,1) 0%,rgba(12,11,9,0.6) 100%);
}
.contact-hero-content{position:relative;z-index:2;padding:0 4rem 4rem;}

.contact-body{padding:7rem 0;}
.contact-layout{display:grid;grid-template-columns:1fr 1.4fr;gap:8rem;}

.contact-info h3{font-family:'Cormorant Garamond',serif;font-size:1.8rem;font-weight:300;color:var(--cream);margin-bottom:1.5rem;}
.contact-info>p{font-size:0.85rem;line-height:2;color:var(--text-muted);margin-bottom:3rem;}
.contact-detail{display:flex;flex-direction:column;gap:1.8rem;margin-bottom:3rem;}
.contact-item{display:flex;gap:1.2rem;align-items:flex-start;}
.contact-icon{width:40px;height:40px;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--gold);}
.contact-item-text .lbl{font-size:0.58rem;letter-spacing:0.2em;text-transform:uppercase;color:var(--text-muted);display:block;margin-bottom:3px;}
.contact-item-text a,.contact-item-text span{font-size:0.85rem;color:var(--cream);text-decoration:none;transition:color 0.3s;display:block;}
.contact-item-text a:hover{color:var(--gold);}

.google-btn{
  display:inline-flex;align-items:center;gap:0.8rem;
  font-size:0.65rem;font-weight:400;letter-spacing:0.18em;text-transform:uppercase;
  color:var(--cream-dim);border:1px solid var(--border);
  padding:0.9rem 1.6rem;text-decoration:none;transition:all 0.3s;margin-top:1rem;
}
.google-btn:hover{border-color:var(--gold);color:var(--gold);}

/* ── FORM ── */
.form-title{font-family:'Cormorant Garamond',serif;font-size:1.8rem;font-weight:300;color:var(--cream);margin-bottom:0.5rem;}
.form-subtitle{font-size:0.8rem;color:var(--text-muted);margin-bottom:2.5rem;}
.form-group{margin-bottom:1.6rem;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin-bottom:1.6rem;}
label{display:block;font-size:0.58rem;font-weight:500;letter-spacing:0.18em;text-transform:uppercase;color:var(--text-muted);margin-bottom:0.6rem;}
input,select,textarea{
  width:100%;background:rgba(255,255,255,0.03);
  border:1px solid rgba(196,151,90,0.2);
  padding:1rem 1.2rem;font-family:'Jost',sans-serif;
  font-size:0.85rem;font-weight:300;color:var(--cream);outline:none;
  transition:border-color 0.3s,background 0.3s;
  -webkit-appearance:none;appearance:none;
}
input:focus,select:focus,textarea:focus{border-color:var(--gold);background:rgba(196,151,90,0.05);}
select{
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c4975a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 1.2rem center;padding-right:3rem;
}
select option{background:#1a1612;color:var(--cream);}
textarea{resize:vertical;min-height:130px;line-height:1.7;}
input::placeholder,textarea::placeholder{color:rgba(201,189,166,0.3);}

.captcha-box{background:rgba(196,151,90,0.06);border:1px solid var(--border);padding:1.6rem;margin-bottom:1.8rem;}
.captcha-label{
  font-size:0.58rem;font-weight:500;letter-spacing:0.18em;text-transform:uppercase;
  color:var(--gold);margin-bottom:1rem;display:flex;align-items:center;gap:0.5rem;
}
.captcha-question{display:flex;align-items:center;gap:1.5rem;}
.captcha-math{font-family:'Cormorant Garamond',serif;font-size:1.5rem;font-weight:300;color:var(--cream);white-space:nowrap;}
.captcha-input{width:100px !important;text-align:center;}
.captcha-refresh{
  background:none;border:1px solid var(--border);width:36px;height:36px;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  color:var(--text-muted);transition:all 0.3s;flex-shrink:0;
}
.captcha-refresh:hover{border-color:var(--gold);color:var(--gold);}
.captcha-error{display:none;font-size:0.72rem;color:#e07070;margin-top:0.6rem;}

.form-error-msg{display:none;color:#e07070;font-size:0.78rem;margin-bottom:1rem;}
.form-notice{font-size:0.72rem;color:var(--text-muted);margin-top:1.2rem;line-height:1.7;}
.form-notice.success-notice{color:#7ab87a;}
.form-notice.error-notice{color:#e07070;}

.submit-btn{
  font-size:0.65rem;font-weight:500;letter-spacing:0.22em;text-transform:uppercase;
  color:var(--bg);background:var(--gold);
  padding:1.2rem 3rem;border:none;cursor:pointer;transition:all 0.3s;width:100%;
}
.submit-btn:hover{background:var(--gold-light);}
.submit-btn:disabled{opacity:0.6;cursor:not-allowed;}

.form-success-box{
  display:none;text-align:center;padding:4rem 2rem;border:1px solid var(--border);
}
.success-icon{
  width:60px;height:60px;border:1px solid var(--gold);border-radius:50%;
  display:flex;align-items:center;justify-content:center;margin:0 auto 1.5rem;color:var(--gold);
}
.form-success-box h3{font-family:'Cormorant Garamond',serif;font-size:1.8rem;font-weight:300;color:var(--cream);margin-bottom:1rem;}
.form-success-box p{font-size:0.85rem;color:var(--text-muted);}

/* ── FOOTER ── */
footer{background:#080807;border-top:1px solid var(--border);padding:4rem 0 2rem;}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:4rem;margin-bottom:4rem;}
.footer-brand img{height:56px;mix-blend-mode:screen;margin-bottom:1.2rem;}
.footer-brand p{font-size:0.8rem;line-height:1.9;color:var(--text-muted);max-width:300px;}
.footer-col h4{font-size:0.6rem;font-weight:500;letter-spacing:0.22em;text-transform:uppercase;color:var(--gold);margin-bottom:1.5rem;}
.footer-col ul{list-style:none;}
.footer-col ul li{margin-bottom:0.8rem;}
.footer-col ul li a{font-size:0.8rem;color:var(--text-muted);text-decoration:none;transition:color 0.3s;}
.footer-col ul li a:hover{color:var(--gold);}
.footer-bottom{border-top:1px solid var(--border);padding-top:2rem;display:flex;justify-content:space-between;align-items:center;}
.footer-bottom p{font-size:0.72rem;color:var(--text-muted);}
.footer-bottom a{color:var(--gold);text-decoration:none;}

/* ── RESPONSIVE ── */
@media(max-width:900px){
  :root { --nav-h: 68px; }
  #main-nav{padding:1.2rem 2rem;}
  .nav-links{display:none;}
  .nav-cta{display:none;}
  .ham{display:flex;flex-direction:column;gap:5px;cursor:pointer;background:none;border:none;padding:4px;}
  .ham span{display:block;width:24px;height:1px;background:var(--cream);transition:all 0.3s;}
  .container{padding:0 2rem;}
  .hero-content{padding:0 2rem 6rem;}
  .about-grid{grid-template-columns:1fr;gap:4rem;}
  .services-grid{grid-template-columns:1fr;}
  .featured-grid{grid-template-columns:1fr;}
  .featured-main{height:300px;}
  .featured-sm{height:200px;}
  .contact-layout{grid-template-columns:1fr;gap:4rem;}
  .form-row{grid-template-columns:1fr;}
  .portfolio-grid{grid-template-columns:1fr 1fr;}
  .footer-grid{grid-template-columns:1fr;gap:2.5rem;}
  .footer-bottom{flex-direction:column;gap:1rem;text-align:center;}
  .portfolio-hero-content,.contact-hero-content{padding:0 2rem 3rem;}
}
@media(max-width:600px){
  .portfolio-grid{grid-template-columns:1fr;}
  .hero-title{font-size:2.4rem;}
  .hero-actions{flex-direction:column;align-items:flex-start;}
  .about-stats{grid-template-columns:1fr 1fr;}
}
