/* ============================================
   BARNES CABINETS — Global Stylesheet
   Kentucky Craftsmanship You Can Trust
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Cinzel:wght@400;600&family=Lato:wght@300;400;700&display=swap');

/* ── CSS Variables ── */
:root {
  --espresso:    #1a0f00;
  --walnut-dark: #2c1a0e;
  --walnut-mid:  #6b4226;
  --gold:        #c8953a;
  --gold-light:  #e2b96a;
  --cream:       #f5f0e8;
  --linen:       #ede6da;
  --warm-white:  #faf7f2;
  --text-dark:   #1e1208;
  --text-mid:    #4a3520;
  --text-light:  #8a6d50;
  --border:      rgba(200, 149, 58, 0.25);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-accent:  'Cinzel', serif;
  --font-body:    'Lato', sans-serif;

  --transition: 0.35s ease;
  --shadow-sm:  0 2px 12px rgba(26,15,0,0.08);
  --shadow-md:  0 6px 30px rgba(26,15,0,0.14);
  --shadow-lg:  0 16px 60px rgba(26,15,0,0.2);
}

/* ── 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);
  background-color: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--walnut-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-mid); font-size: 1rem; font-weight: 300; max-width: 65ch; }

.accent-label {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}

.gold-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.2rem 0;
}
.gold-divider.center { margin: 1.2rem auto; }

/* ── Layout Utilities ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 90px 0; }
.section-alt { background-color: var(--linen); }
.section-dark { background-color: var(--walnut-dark); }

.text-center { text-align: center; }
.text-center p { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--espresso);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--espresso);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--walnut-dark);
  border: 1px solid var(--walnut-mid);
}
.btn-outline-dark:hover {
  background: var(--walnut-dark);
  color: var(--cream);
}

/* ── Text Logo ── */
.text-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.text-logo-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.text-logo-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
  padding-left: 2px;
}
.text-logo:hover .text-logo-main { color: var(--gold-light); }

/* Footer text logo variant */
.text-logo-footer .text-logo-main { font-size: 1.35rem; }

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: var(--espresso);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 0.6rem 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar-logo img {
  height: 58px;
  width: auto;
  transition: height var(--transition);
}
.navbar.scrolled .navbar-logo img { height: 46px; }

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-accent);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  transition: opacity var(--transition), color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { opacity: 1; color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { opacity: 1; color: var(--gold); }

.nav-cta {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--espresso) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 2px;
  opacity: 1 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile Nav ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--espresso);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--cream);
  opacity: 0.85;
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--gold); opacity: 1; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--walnut-dark);
  padding: 140px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/showroom-4.jpg') center/cover no-repeat;
  opacity: 0.12;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--cream); }
.page-hero .accent-label { color: var(--gold-light); }

/* ── Footer ── */
footer {
  background: var(--espresso);
  color: var(--cream);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(200,149,58,0.2);
}

.footer-brand img { height: 60px; margin-bottom: 1rem; }

.footer-brand p {
  color: rgba(245,240,232,0.65);
  font-size: 0.9rem;
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}
.footer-col ul li a {
  color: rgba(245,240,232,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  color: rgba(245,240,232,0.65);
  font-size: 0.9rem;
}
.fc-label {
  font-family: var(--font-accent);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 36px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(245,240,232,0.4);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Forms ── */
.form-group {
  margin-bottom: 1.4rem;
}
.form-group label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,149,58,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── Order Now animated nav item ── */
@keyframes orderPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(200,149,58,0.5); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 7px rgba(200,149,58,0); }
}
.nav-order-now {
  color: var(--gold) !important;
  border: 1px solid rgba(200,149,58,0.5) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 2px;
  animation: orderPulse 2.4s ease-in-out infinite;
  background: transparent !important;
}
.nav-order-now:hover {
  background: rgba(200,149,58,0.1) !important;
  border-color: var(--gold) !important;
  animation-play-state: paused;
}
.nav-order-now::after { display: none !important; }
