/* ================================================================
   CFS Woodshop — Global Styles
   ================================================================ */

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

/* ── TOKENS ── */
:root {
  --bg:       #F7F5F2;
  --ink:      #1A1714;
  --mid:      #6B6460;
  --faint:    #9E9896;
  --accent:   #C8A96E;
  --line:     #E0DBD5;
  --white:    #FFFFFF;
  --dark:     #2C2420;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'DM Sans', sans-serif;
  --radius:   2px;
  --nav-h:    72px;
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font-family: var(--sans);
  font-size: inherit;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  background: rgba(247, 245, 242, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}

#nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: all 0.25s;
}

/* ── PAGE WRAPPER ── */
main {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.4);
  padding: 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
}
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.75); }

/* ── UTILITY ── */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section {
  padding: 6rem 4rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  white-space: nowrap;
}
.btn-primary   { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--accent); color: var(--ink); }
.btn-ghost     { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light     { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.btn-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ── CARDS ── */
.card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.09);
}
.card-img {
  overflow: hidden;
  position: relative;
}
.card-img svg,
.card-img img {
  width: 100%;
  transition: transform 0.5s var(--ease);
}
.card:hover .card-img svg,
.card:hover .card-img img { transform: scale(1.04); }

.card-body { padding: 1.4rem; }
.card-tag {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.card-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.card-desc {
  font-size: 0.84rem;
  color: var(--mid);
  line-height: 1.7;
}
.card-price {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

/* ── FORMS ── */
.form-group { margin-bottom: 1.4rem; }
.form-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.55rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  outline: none;
  border-radius: 0;
  appearance: none;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note {
  font-size: 0.77rem;
  color: var(--faint);
  margin-top: 0.9rem;
}

/* ── WOOD VISUAL HELPERS ── */
.wood-panel {
  background: linear-gradient(150deg, #2C2420 0%, #4A3728 55%, #3D2D22 100%);
  position: relative;
  overflow: hidden;
}
.wood-grain {
  position: absolute; inset: 0;
  pointer-events: none;
}
.wood-grain::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 38px,
      rgba(200,169,110,0.6) 38px, rgba(200,169,110,0.6) 39px);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.anim-fade-up  { animation: fadeUp  0.7s var(--ease) both; }
.anim-fade-in  { animation: fadeIn  0.8s var(--ease) both; }
.anim-slide-left { animation: slideLeft 0.7s var(--ease) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #nav { padding: 0 1.5rem; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1.5rem 2rem 2rem; gap: 1.5rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .section { padding: 4rem 1.5rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
}
