/* =============================================
   HSS CARPENTRY — styles.css
   Design: Refined Craft / Dark Navy + Warm Gold
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --navy: #0d2240;
  --navy-mid: #163152;
  --navy-light: #1e4068;
  --gold: #c9a84c;
  --gold-light: #e2c47a;
  --gold-pale: #f5ead3;
  --cream: #faf8f4;
  --white: #ffffff;
  --grey: #6b7280;
  --grey-light: #f1f0ee;
  --text: #1a1a2e;
  --text-light: #4a5568;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(13,34,64,0.10);
  --shadow-lg: 0 12px 48px rgba(13,34,64,0.18);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-body); font-size: 1rem; }

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.hidden { display: none !important; }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: var(--white);
  z-index: 9999;
  padding: 20px 32px;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.2);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-text { flex: 1; font-size: 0.93rem; opacity: 0.9; min-width: 220px; }
.cookie-text strong { color: var(--gold-light); }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-decline {
  padding: 10px 22px; border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white); font-size: 0.9rem; font-family: var(--font-body);
  transition: var(--transition); background: transparent;
}
.btn-cookie-decline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-cookie-accept {
  padding: 10px 22px; border-radius: var(--radius);
  background: var(--gold); color: var(--navy);
  font-size: 0.9rem; font-weight: 600; font-family: var(--font-body);
  transition: var(--transition);
}
.btn-cookie-accept:hover { background: var(--gold-light); }

/* ---------- Navigation ---------- */
.nav-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 10px 0;
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(13,34,64,0.3);
  transition: padding var(--transition);
}
.nav-header.scrolled {
  padding: 6px 0;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.logo-img { height: 42px; width: auto; display: block; filter: brightness(0) invert(1); }
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  color: var(--white); font-size: 0.95rem; font-weight: 400;
  padding: 8px 14px; border-radius: var(--radius);
  transition: var(--transition); opacity: 0.9;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 1.5px; background: var(--gold);
  transform: scaleX(0); transition: var(--transition); transform-origin: left;
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.nav-cta {
  background: var(--gold); color: var(--navy); font-weight: 600;
  padding: 10px 20px; opacity: 1;
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover { background: var(--gold-light); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  font-weight: 600; font-size: 1rem; font-family: var(--font-body);
  padding: 14px 30px; border-radius: var(--radius);
  transition: var(--transition); border: 2px solid var(--gold);
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.35); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  font-weight: 500; font-size: 1rem; font-family: var(--font-body);
  padding: 14px 30px; border-radius: var(--radius);
  transition: var(--transition); border: 2px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--navy);
  font-weight: 500; font-size: 0.95rem; font-family: var(--font-body);
  padding: 12px 24px; border-radius: var(--radius);
  transition: var(--transition); border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Section Headers ---------- */
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--navy); line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-light); max-width: 600px;
}
.section-header { margin-bottom: 56px; }
.section-header .section-sub { margin-top: 8px; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,34,64,0.88) 0%,
    rgba(13,34,64,0.70) 50%,
    rgba(13,34,64,0.45) 100%
  );
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  padding-top: 100px; padding-bottom: 60px;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.2); border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold-light); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px;
  margin-bottom: 24px;
  transition-delay: 0.1s;
}
.hero-badge::before { content: '★ '; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700; color: var(--white); line-height: 1.05;
  margin-bottom: 24px;
  transition-delay: 0.2s;
}
.hero-title em { color: var(--gold-light); font-style: italic; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.85);
  max-width: 560px; margin-bottom: 36px; line-height: 1.7;
  transition-delay: 0.3s;
}
.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px;
  transition-delay: 0.4s;
}
.hero-stats {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg);
  padding: 20px 28px; background: rgba(13,34,64,0.4); backdrop-filter: blur(8px);
  width: fit-content;
  transition-delay: 0.5s;
}
.stat { padding: 0 24px; text-align: center; }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat-num {
  display: block; font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 700; color: var(--gold-light); line-height: 1;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; display: block; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.2); flex-shrink: 0; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 1;
}
.scroll-line {
  display: block; width: 1.5px; height: 64px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.4; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- SERVICES ---------- */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--cream); border-radius: var(--radius-lg);
  padding: 36px 30px; border: 1.5px solid transparent;
  transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
  transform: scaleX(0); transition: var(--transition); transform-origin: left;
}
.service-card:hover { border-color: var(--gold-pale); box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; color: var(--navy);
  margin-bottom: 20px;
  transition: color var(--transition);
}
.service-card:hover .service-icon { color: var(--gold); }
.service-card h3 {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--navy); margin-bottom: 12px;
}
.service-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.65; }

/* ---------- GALLERY ---------- */
.work { background: var(--navy); }
.work .section-label { color: var(--gold); }
.work .section-title { color: var(--white); }
.work .section-sub { color: rgba(255,255,255,0.7); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 12px;
  margin-top: 48px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--navy-mid);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-tall { grid-row: span 2; }
.gallery-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 20px 16px;
  background: linear-gradient(to top, rgba(13,34,64,0.85) 0%, transparent 100%);
  transform: translateY(100%); transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { transform: none; }
.gallery-overlay span { color: var(--white); font-size: 0.9rem; font-weight: 500; }

/* ---------- ABOUT ---------- */
.about { background: var(--cream); }
.about-container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-visual { position: relative; }
.about-img-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-accent {
  position: absolute; bottom: -20px; right: -20px;
  width: 60%; height: 50%; background: var(--gold-pale);
  border-radius: var(--radius-lg); z-index: -1;
}
.about-badge-wrap {
  position: absolute; bottom: 32px; left: -32px;
}
.about-badge {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-lg); padding: 20px 24px;
  text-align: center; box-shadow: var(--shadow-lg);
  min-width: 130px;
}
.badge-big {
  display: block; font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 700; color: var(--gold-light); line-height: 1;
}
.badge-stars { display: block; color: var(--gold); font-size: 0.95rem; margin: 4px 0; }
.badge-small { font-size: 0.75rem; opacity: 0.7; letter-spacing: 0.05em; }
.about-content .section-title { margin-top: 8px; }
.about-content p { color: var(--text-light); margin-bottom: 16px; line-height: 1.75; }
.about-features {
  margin: 28px 0 36px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 10px 20px;
}
.about-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.92rem; color: var(--text);
}
.check { color: var(--gold); font-size: 1rem; font-weight: 700; flex-shrink: 0; }

/* ---------- TESTIMONIALS ---------- */
.testimonials { background: var(--white); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--cream); border-radius: var(--radius-lg);
  padding: 36px; border: 1.5px solid transparent;
  transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--gold-pale); box-shadow: var(--shadow); }
.t-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; }
.testimonial-card blockquote {
  font-size: 1rem; color: var(--text-light); line-height: 1.75;
  margin-bottom: 24px; font-style: italic;
  border-left: 3px solid var(--gold-pale); padding-left: 16px;
}
.t-author { display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.t-author strong { display: block; color: var(--navy); font-weight: 600; }
.t-author span { font-size: 0.82rem; color: var(--grey); }
.google-cta { margin-top: 48px; text-align: center; }
.google-cta .btn-outline { gap: 10px; font-size: 1rem; padding: 14px 28px; }

/* ---------- CONTACT ---------- */
.contact { background: var(--navy); }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact .section-label { color: var(--gold); }
.contact .section-title { color: var(--white); }
.contact-info > p { color: rgba(255,255,255,0.75); margin-bottom: 36px; line-height: 1.75; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  color: var(--white); transition: var(--transition);
}
a.contact-item:hover { color: var(--gold-light); }
.ci-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ci-icon svg { width: 20px; height: 20px; }
.contact-item strong { display: block; font-weight: 600; margin-bottom: 2px; }
.contact-item span { font-size: 0.92rem; opacity: 0.8; }
.contact-form-wrap {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 44px 40px; box-shadow: var(--shadow-lg);
}
.form-success {
  background: #e8f5e9; border: 1.5px solid #4caf50;
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: center; gap: 12px;
  color: #1b5e20; margin-bottom: 20px; font-weight: 500;
}
.form-success svg { width: 24px; height: 24px; flex-shrink: 0; color: #4caf50; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid #dde0e8; border-radius: var(--radius);
  color: var(--text); background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--grey); text-align: center; margin-top: 12px; }

/* ---------- MAP ---------- */
.map-section { background: var(--white); }
.map-header {
  text-align: center; padding: 64px 24px 40px;
  background: var(--cream); border-bottom: 1px solid var(--grey-light);
}
.map-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.map-header p { color: var(--text-light); margin-bottom: 24px; }
.map-btn { font-size: 1rem; padding: 12px 28px; }
.map-embed-wrap {
  position: relative; width: 100%;
  border-top: 3px solid var(--gold);
}
.map-embed-wrap iframe { display: block; filter: grayscale(15%); }
.map-click-overlay {
  position: absolute; inset: 0; z-index: 1;
  cursor: pointer;
}

/* ---------- FOOTER ---------- */
.footer { background: var(--navy); color: var(--white); }
.footer-top { padding: 72px 0 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-brand { }
.footer-logo { height: 56px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.92rem; opacity: 0.7; line-height: 1.75; margin-bottom: 16px; }
.footer-phone { color: var(--gold-light); font-weight: 600; font-size: 1.05rem; }
.footer-phone:hover { color: var(--white); }
.footer-nav h4, .footer-services h4, .footer-contact h4 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: var(--gold-light); margin-bottom: 20px;
}
.footer-nav ul li, .footer-services ul li { margin-bottom: 10px; }
.footer-nav ul li a { opacity: 0.75; font-size: 0.92rem; transition: opacity var(--transition); }
.footer-nav ul li a:hover { opacity: 1; color: var(--gold-light); }
.footer-services ul li { opacity: 0.7; font-size: 0.92rem; }
.footer-contact p { opacity: 0.75; font-size: 0.92rem; margin-bottom: 8px; line-height: 1.6; }
.footer-contact a { transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold-light); }
.footer-hours { margin-top: 12px; }
.footer-bottom { padding: 20px 0; }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 0.82rem; opacity: 0.55; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-container { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 500px; margin: 0 auto; }
  .about-img-wrap { aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0; top: 0;
    background: var(--navy); flex-direction: column;
    justify-content: center; gap: 4px;
    transform: translateX(100%); transition: transform var(--transition);
    padding: 80px 32px 32px;
    z-index: 999;
  }
  .nav-links.open { transform: none; }
  .nav-link { font-size: 1.3rem; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; }
  .nav-link::after { display: none; }
  .nav-link.nav-cta { border-bottom: none; border-radius: var(--radius); justify-content: center; margin-top: 8px; }
  .nav-toggle { z-index: 1001; position: relative; }
  .hero-title { font-size: clamp(2.4rem, 8vw, 4rem); }
  .hero-stats { gap: 0; padding: 16px 20px; }
  .stat { padding: 0 16px; }
  .stat-num { font-size: 1.6rem; }
  .hero-btns { flex-direction: column; width: fit-content; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr; grid-template-rows: auto;
  }
  .gallery-tall { grid-row: span 1; }
  .gallery-item { aspect-ratio: 1; }
  .gallery-item img { height: 100%; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-container { grid-template-columns: 1fr; gap: 48px; }
  .contact-form-wrap { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .about-badge-wrap { left: -12px; bottom: 20px; }
  .cookie-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-badge { font-size: 0.72rem; padding: 6px 14px; }
  .hero-content { padding-top: 90px; }
  .section-title { font-size: 1.75rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 4/3; }
  .gallery-tall { grid-row: span 1; }
  .about-features { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .hero-stats { gap: 16px; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .stat { flex: 1; min-width: 80px; }
}
