/* ============================================
   KRAFTWORKS — Global Stylesheet
   Warm, elegant, artisan wood brand identity
   ============================================ */

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

/* ── Variables ─────────────────────────────── */
:root {
  --forest:       #3A4820;
  --forest-deep:  #2A3516;
  --forest-mid:   #4F6128;
  --gold:         #C4973B;
  --gold-light:   #D4AA56;
  --gold-pale:    #E8D4A0;
  --cream:        #EDE8DC;
  --cream-dark:   #D8CCBA;
  --off-white:    #F7F3EC;
  --dark:         #1A1A18;
  --text:         #2C2C28;
  --text-mid:     #5A5750;
  --text-light:   #8A8780;
  --white:        #FFFFFF;

  --ff-serif:  'Cormorant Garamond', Georgia, serif;
  --ff-sans:   'Jost', system-ui, sans-serif;

  --nav-h:    72px;
  --r-sm:     4px;
  --r-md:     8px;
  --r-lg:     16px;
  --r-xl:     32px;

  --shadow-soft: 0 4px 24px rgba(26,26,24,.08);
  --shadow-card: 0 8px 40px rgba(26,26,24,.10);
  --shadow-gold: 0 4px 20px rgba(196,151,59,.25);

  --transition: 0.35s 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; font-size: 16px; }
body {
  font-family: var(--ff-sans);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { font-size: 1rem; font-weight: 300; line-height: 1.75; color: var(--text-mid); }

.label {
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Navigation ────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  transition: var(--transition);
}
.nav--scrolled {
  background: rgba(247, 243, 236, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(196,151,59,.15);
}
.nav--dark .nav__logo-text,
.nav--dark .nav__link { color: var(--off-white); }
.nav--dark .nav__cta { border-color: var(--gold); color: var(--gold); }
.nav--dark .nav__cta:hover { background: var(--gold); color: var(--dark); }
.nav--dark .nav__hamburger span { background: var(--off-white); }
.nav--dark.nav--scrolled .nav__logo-text,
.nav--dark.nav--scrolled .nav__link { color: var(--text); }
.nav--dark.nav--scrolled .nav__hamburger span { background: var(--text); }
.nav--dark.nav--scrolled .nav__cta { border-color: var(--forest); color: var(--forest); }

.nav__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo svg { width: 36px; height: 36px; }
.nav__logo-text {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }
.nav__link:hover { color: var(--gold); }
.nav__link.active { color: var(--gold); }

.nav__cta {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid var(--forest);
  color: var(--forest);
  border-radius: var(--r-sm);
  transition: var(--transition);
}
.nav__cta:hover {
  background: var(--forest);
  color: var(--off-white);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--forest-deep);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav__mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.nav__mobile-link {
  font-family: var(--ff-serif);
  font-size: 2.5rem;
  color: var(--off-white);
  transition: color var(--transition);
}
.nav__mobile-link:hover { color: var(--gold); }
.nav__mobile-close {
  position: absolute;
  top: 24px; right: clamp(1.5rem, 5vw, 4rem);
  color: var(--off-white);
  font-size: 2rem;
  font-weight: 200;
  line-height: 1;
}
.nav__mobile-contact {
  margin-top: 1rem;
  text-align: center;
}
.nav__mobile-contact p {
  color: rgba(255,255,255,.5);
  font-size: 0.85rem;
}
.nav__mobile-contact a {
  color: var(--gold);
  font-size: 0.9rem;
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--r-sm);
  transition: var(--transition);
  cursor: pointer;
}
.btn--primary {
  background: var(--gold);
  color: var(--dark);
  border: 1px solid var(--gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn--outline-light {
  background: transparent;
  color: var(--off-white);
  border: 1px solid rgba(255,255,255,.4);
}
.btn--outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--outline-dark {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}
.btn--outline-dark:hover {
  background: var(--forest);
  color: var(--off-white);
}

/* ── Section Utilities ─────────────────────── */
.section { padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 6vw, 6rem); }
.section__header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.section__header .label { display: block; margin-bottom: 0.75rem; }
.section__header h2 { margin-bottom: 1rem; }
.section__header p { max-width: 520px; margin: 0 auto; }

.divider {
  display: block;
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}
.divider--left { margin-left: 0; }

/* ── Reveal Animation ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Footer ─────────────────────────────────── */
.footer {
  background: var(--forest-deep);
  color: var(--off-white);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 6rem) 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}
.footer__brand .footer__tagline {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,.5);
  margin: 1rem 0 1.5rem;
}
.footer__brand .footer__desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,.45);
  max-width: 300px;
  line-height: 1.7;
}
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}
.footer__social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: rgba(255,255,255,.6);
}
.footer__social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.footer__social-link svg { width: 15px; height: 15px; }

.footer__col h4 {
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer__col li + li { margin-top: 0.75rem; }
.footer__col a, .footer__col p {
  font-size: 0.88rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
  line-height: 1.6;
}
.footer__col a:hover { color: var(--off-white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,.3);
}
.footer__logo { display: flex; align-items: center; gap: 8px; }
.footer__logo-text {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  color: rgba(255,255,255,.6);
}

/* ── Page Hero (inner pages) ───────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) clamp(1.5rem, 6vw, 6rem) 4rem;
  background: var(--forest);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(196,151,59,.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .label { color: rgba(196,151,59,.8); }
.page-hero h1 { color: var(--off-white); font-size: clamp(2.5rem, 5vw, 4.5rem); }
.page-hero p { color: rgba(247,243,236,.6); max-width: 560px; margin: 1rem auto 0; }

/* ── Wood Texture Pattern (CSS only) ──────── */
.wood-card-bg {
  position: relative;
  overflow: hidden;
}
.wood-card-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      94deg,
      transparent 0,
      transparent 4px,
      rgba(0,0,0,.018) 4px,
      rgba(0,0,0,.018) 5px
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 8px,
      rgba(255,255,255,.04) 8px,
      rgba(255,255,255,.04) 9px
    );
  pointer-events: none;
  z-index: 1;
}

/* ── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Media Queries ──────────────────────────── */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile-menu { display: flex; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
