/* H&H Custom Woodworks - Warm Modern Rustic Styles */

:root {
  --color-bg: #f8f5f0;
  --color-surface: #ffffff;
  --color-text: #2c241b;
  --color-text-light: #5c4f42;
  --color-accent: #8b5e3c;
  --color-accent-dark: #6b4423;
  --color-border: #e5d9c9;
  --color-warm: #d4a574;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --max-width: 1100px;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(44, 36, 27, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 17px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-dark);
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  color: var(--color-accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: white;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f0e6d8 0%, #e8d9c5 100%);
  padding: 5rem 0 4.5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro */
.intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--color-text-light);
}

/* Featured / Gallery Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(44, 36, 27, 0.12);
}

.card-img {
  aspect-ratio: 4/3;
  background: #e5d9c9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.2rem 1.3rem 1.4rem;
}

.card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.card .btn {
  width: 100%;
  padding: 0.7rem;
  font-size: 0.9rem;
}

/* Two Column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.two-col h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--color-accent-dark);
}

.two-col p {
  color: var(--color-text-light);
}

/* CTA Banner */
.cta-banner {
  background: var(--color-accent);
  color: white;
  text-align: center;
  padding: 3.5rem 0;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.cta-banner p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.cta-banner .btn-primary {
  background: white;
  color: var(--color-accent);
}

.cta-banner .btn-primary:hover {
  background: #f5f0e8;
}

/* Forms */
.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-container {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 2.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.step h4 {
  font-family: var(--font-heading);
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* About */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--color-text-light);
}

.about-content p {
  margin-bottom: 1.2rem;
}

/* Footer */
footer {
  background: #2c241b;
  color: #e5d9c9;
  padding: 3rem 0 2rem;
  text-align: center;
}

footer a {
  color: #d4a574;
}

footer a:hover {
  color: #f0e6d8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin: 1.2rem 0 1.8rem;
  flex-wrap: wrap;
}

.footer-bottom {
  font-size: 0.9rem;
  opacity: 0.8;
  border-top: 1px solid rgba(229, 217, 201, 0.2);
  padding-top: 1.5rem;
  margin-top: 1rem;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .btn-group {
    justify-content: center;
  }
}
