/* ============================================
   DUNNINGTON DESIGN — Global Stylesheet
   Modern Minimal Woodworking Portfolio
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg:        #fafaf8;
  --color-surface:   #ffffff;
  --color-text:      #1c1c1c;
  --color-muted:     #6b6b6b;
  --color-accent:    #8b5e3c;   /* warm walnut */
  --color-accent-lt: #c9956a;
  --color-border:    #e4e0db;
  --color-nav-bg:    #ffffff;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  --max-w: 1140px;
  --nav-h: 72px;
  --radius: 2px;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

/* --- Layout Helpers --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }

.divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin: 1.5rem 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.82rem 2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border-radius: var(--radius);
}
.btn:hover {
  background: var(--color-accent);
  color: #fff;
}
.btn-solid {
  background: var(--color-accent);
  color: #fff;
}
.btn-solid:hover {
  background: #6e4a2e;
  border-color: #6e4a2e;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.nav-logo span { color: var(--color-accent); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--transition);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

/* Page offset for fixed nav */
.page-content { padding-top: var(--nav-h); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--color-text);
  margin-bottom: 1.5rem;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--color-accent);
}
.hero-text p {
  font-size: 1.08rem;
  color: var(--color-muted);
  max-width: 440px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-image-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
}
.hero-image-badge .num {
  font-size: 2.2rem;
  color: var(--color-accent);
  display: block;
  line-height: 1;
}
.hero-image-badge .lbl {
  font-size: 0.78rem;
  color: var(--color-muted);
  letter-spacing: 0.08em;
}

/* ============================================
   FEATURED WORK (home)
   ============================================ */
.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}
.featured-header h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.work-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.work-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.work-card:hover img { transform: scale(1.04); }

.work-card-label {
  margin-top: 0.9rem;
}
.work-card-label h3 {
  font-size: 1.15rem;
  font-family: var(--font-heading);
}
.work-card-label p {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
  letter-spacing: 0.05em;
}

/* ============================================
   ABOUT STRIP (home teaser)
   ============================================ */
.about-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-strip-img img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.about-strip-text h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1.5rem; }
.about-strip-text p  { color: var(--color-muted); margin-bottom: 1rem; }

/* ============================================
   GALLERY PAGE
   ============================================ */
.page-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { font-size: clamp(2.4rem, 4vw, 3.5rem); margin-bottom: 0.75rem; }
.page-hero p  { color: var(--color-muted); max-width: 560px; font-size: 1.05rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 4rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-border);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); opacity: 0.88; }

.gallery-item-info {
  padding: 0.85rem 0 0.25rem;
}
.gallery-item-info h3 { font-size: 1.1rem; font-family: var(--font-heading); }
.gallery-item-info p  { font-size: 0.8rem; color: var(--color-muted); letter-spacing: 0.04em; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  padding: 5rem 0;
}
.about-intro-text h1 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}
.about-intro-text p {
  color: var(--color-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.about-intro-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.values-section { background: var(--color-surface); border-top: 1px solid var(--color-border); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-top: 1rem;
}
.value-item h3 { font-size: 1.3rem; margin-bottom: 0.65rem; }
.value-item p  { color: var(--color-muted); font-size: 0.95rem; }
.value-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-border);
  display: block;
  margin-bottom: 0.5rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  padding: 5rem 0;
}
.contact-info h1 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 1rem; }
.contact-info p  { color: var(--color-muted); margin-bottom: 2rem; font-size: 1.02rem; }
.contact-detail {
  margin-bottom: 1.25rem;
}
.contact-detail .label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.2rem;
}
.contact-detail .value { font-size: 0.98rem; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-accent);
}
.field textarea { min-height: 140px; }

.form-note { font-size: 0.82rem; color: var(--color-muted); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-text);
  color: #fff;
  padding: 3.5rem 0;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.footer-logo span { color: var(--color-accent-lt); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; gap: 1.75rem; list-style: none; }
.footer-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-accent-lt); }

/* ============================================
   PLACEHOLDER IMAGES
   ============================================ */
.img-placeholder {
  background: linear-gradient(135deg, #e8e0d8 0%, #d5c9bd 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 0.5rem;
}
.img-placeholder svg { opacity: 0.4; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-grid           { grid-template-columns: 1fr; }
  .hero-image          { display: none; }
  .hero-text h1        { font-size: 2.8rem; }
  .featured-grid       { grid-template-columns: repeat(2, 1fr); }
  .about-strip-inner   { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-grid        { grid-template-columns: repeat(2, 1fr); }
  .about-intro         { grid-template-columns: 1fr; gap: 2.5rem; }
  .values-grid         { grid-template-columns: 1fr 1fr; }
  .contact-layout      { grid-template-columns: 1fr; gap: 3rem; }
  .form-row            { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container           { padding: 0 1.25rem; }
  section              { padding: 4rem 0; }
  .nav-links           { display: none; }
  .nav-links.open      { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--color-surface); border-bottom: 1px solid var(--color-border); padding: 1.5rem 2rem; gap: 1.25rem; }
  .nav-toggle          { display: flex; }
  .featured-grid       { grid-template-columns: 1fr; }
  .gallery-grid        { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .values-grid         { grid-template-columns: 1fr; }
  .featured-header     { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
