/* 
  Wooden Gate Rough Carpentry & Construction
  Main stylesheet

  Beginner customization:
  - Change colors in :root
  - Change spacing, fonts, and section backgrounds below
*/

:root {
  --dark-brown: #2b1d13;
  --deep-brown: #3b2718;
  --wood-brown: #7a4f2a;
  --warm-brown: #a66a35;
  --light-wood: #f4e6d2;
  --cream: #fff8ef;
  --text-dark: #241913;
  --text-muted: #6d5a4b;
  --white: #ffffff;
  --shadow: 0 12px 35px rgba(43, 29, 19, 0.18);
  --radius: 18px;
}

/* Basic page reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth scrolling for nav links */
html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header */
.site-header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: rgba(43, 29, 19, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
  max-width: 1150px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--light-wood);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--warm-brown);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  position: relative;
  padding: 120px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Replace this background image with your own construction/carpentry photo */
  background:
  linear-gradient(rgba(43, 29, 19, 0.65), rgba(43, 29, 19, 0.72)),
  url("images/project-finished-1.jpeg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 850px;
  color: var(--white);
  animation: fadeUp 0.9s ease forwards;
}

.eyebrow {
  color: var(--warm-brown);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-content .eyebrow {
  color: var(--light-wood);
}

.hero-content h1 {
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero-tagline {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
  color: #f7ead8;
}

/* Buttons */
.primary-button,
.secondary-button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.primary-button {
  background-color: var(--warm-brown);
  color: var(--white);
  box-shadow: 0 12px 25px rgba(166, 106, 53, 0.35);
}

.primary-button:hover {
  background-color: var(--wood-brown);
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(122, 79, 42, 0.4);
}

.secondary-button {
  background-color: transparent;
  color: var(--deep-brown);
  border: 2px solid var(--wood-brown);
}

.secondary-button:hover {
  background-color: var(--wood-brown);
  color: var(--white);
  transform: translateY(-3px);
}

/* General sections */
.section {
  padding: 90px 24px;
}

.section-container {
  max-width: 1150px;
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--dark-brown);
}

.about-section {
  background-color: var(--cream);
}

.about-text {
  max-width: 850px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Why Choose Us */
.why-section {
  background-color: var(--light-wood);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.info-card {
  background-color: var(--cream);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(122, 79, 42, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(43, 29, 19, 0.22);
}

.info-card h3 {
  color: var(--deep-brown);
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.info-card p {
  color: var(--text-muted);
}

/* Gallery */
.gallery-section {
  background-color: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-color: var(--dark-brown);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  opacity: 0.82;
}

.gallery-item figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: rgba(43, 29, 19, 0.85);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Contact */
.contact-section {
  background:
    linear-gradient(135deg, var(--deep-brown), var(--dark-brown));
  color: var(--white);
}

.contact-box {
  background-color: rgba(255, 248, 239, 0.08);
  border: 1px solid rgba(244, 230, 210, 0.18);
  border-radius: var(--radius);
  padding: 45px;
  box-shadow: var(--shadow);
}

.contact-section .section-heading h2 {
  color: var(--white);
}

.contact-info {
  color: var(--light-wood);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.contact-info a,
.contact-info a:visited {
  color: var(--white);
  text-decoration: none;
}

.contact-info a:hover {
  color: var(--light-wood);
  text-decoration: underline;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.contact-section .secondary-button {
  color: var(--cream);
  border-color: var(--light-wood);
}

.contact-section .secondary-button:hover {
  background-color: var(--light-wood);
  color: var(--dark-brown);
}

/* Footer */
.site-footer {
  padding: 24px;
  text-align: center;
  background-color: var(--dark-brown);
  color: var(--light-wood);
  font-size: 0.9rem;
}

/* Simple animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* What We Build */
.services-section {
  background-color: var(--cream);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.services-intro {
  max-width: 520px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background-color: var(--cream);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(122, 79, 42, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(43, 29, 19, 0.22);
}

.service-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background-color: #efe1d3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 22px;
}

.service-card h3 {
  color: var(--deep-brown);
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.service-card p {
  color: var(--text-muted);
}
/* Tablet responsiveness */
@media (max-width: 950px) {
 .cards-grid,
.gallery-grid,
.services-grid {
  grid-template-columns: repeat(2, 1fr);
}
}

/* Mobile responsiveness */
@media (max-width: 700px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 24px;
    width: calc(100% - 48px);
    padding: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--dark-brown);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .hero-section {
    padding-top: 130px;
  }

  .section {
    padding: 70px 20px;
  }

  .cards-grid,
.gallery-grid,
.services-grid {
  grid-template-columns: 1fr;
}
  .gallery-item img {
    height: 240px;
  }

  .contact-box {
    padding: 30px 22px;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    text-align: center;
  }
}