/* ============================================================
   MAPLE GROVE CRAFT — STYLE.CSS
   Modern Professional Design
   Deep Forest Green, Warm Beige, Gold Accents
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-forest-green: #1b4332;
  --color-dark-green: #2d6a4f;
  --color-medium-green: #40916c;
  --color-light-green: #52b788;
  --color-beige: #d4a574;
  --color-warm-beige: #e8d5c4;
  --color-light-beige: #f5ede3;
  --color-gold: #c9a961;
  --color-copper: #b8860b;
  --color-white: #ffffff;
  --color-dark-text: #2c2c2c;
  --color-light-text: #666666;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --max-width: 1200px;
  --transition: 0.4s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-white);
  color: var(--color-dark-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-forest-green);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  color: var(--color-light-text);
  line-height: 1.8;
}

/* ---------- Layout Helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 16px;
  color: var(--color-forest-green);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-light-text);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.text-center {
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-transform: uppercase;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-forest-green);
  color: var(--color-white);
  border-color: var(--color-forest-green);
}

.btn-dark:hover {
  background: var(--color-dark-green);
  border-color: var(--color-dark-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-warm-beige);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-forest-green);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark-text);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.navbar-nav a:hover {
  color: var(--color-gold);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-phone {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-forest-green);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-forest-green);
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 76px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 12s ease;
}

.hero-bg.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 67, 50, 0.4) 0%,
    rgba(27, 67, 50, 0.5) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 32px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 20px;
  color: var(--color-white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: var(--color-warm-beige);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--color-white);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  background: var(--color-light-beige);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.9;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--color-light-beige);
  padding: 40px 32px;
  border-radius: 8px;
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why {
  background: var(--color-forest-green);
  color: var(--color-white);
}

.why .section-title,
.why h2 {
  color: var(--color-warm-beige);
}

.why .section-subtitle {
  color: var(--color-warm-beige);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.why-item {
  text-align: center;
  padding: 32px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.why-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.why-item h3 {
  color: var(--color-gold);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.why-item p {
  color: var(--color-warm-beige);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery {
  background: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 67, 50, 0);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay {
  background: rgba(27, 67, 50, 0.5);
}

.gallery-overlay-icon {
  color: var(--color-white);
  font-size: 2rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--transition), transform var(--transition);
}

.gallery-item:hover .gallery-overlay-icon {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  background: var(--color-light-beige);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-item {
  margin-bottom: 28px;
}

.contact-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.contact-item a,
.contact-item span {
  font-size: 1rem;
  color: var(--color-dark-text);
  font-weight: 500;
}

.contact-item a {
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--color-gold);
}

/* Contact Form */
.contact-form {
  background: var(--color-white);
  padding: 48px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.contact-form > p {
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark-text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--color-warm-beige);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark-text);
  background: var(--color-white);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

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

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--color-gold);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--color-copper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#formSuccess {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  color: #155724;
  font-weight: 600;
  font-size: 0.95rem;
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ============================================================
   GOOGLE MAP
   ============================================================ */
.map-section {
  padding: 0;
}

.map-section iframe {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-forest-green);
  color: var(--color-warm-beige);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--color-gold);
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.footer-brand p {
  color: var(--color-warm-beige);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--color-gold);
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: var(--color-warm-beige);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-visible {
  opacity: 1;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .navbar-nav,
  .navbar-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  #navMenu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-warm-beige);
    padding: 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    z-index: 999;
  }

  #navMenu.active {
    max-height: 400px;
  }

  #navMenu a {
    font-size: 0.95rem;
    font-weight: 600;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .navbar-container {
    padding: 0 16px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

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