/* ============================================================
   BROOKSTONE CONSTRUCTION CO. — One-page site
   ------------------------------------------------------------
   Color palette (matched to the logo):
     --beige          #f4ece0   light beige  (main background)
     --beige-soft     #faf5ed   lighter beige (cards/sections)
     --brown          #8a5a2b   light brown  (primary accent)
     --brown-deep     #6e4520   deeper brown (hover/headings)
     --brown-dark     #3d2815   near-black brown (text)
   Font: Poppins
   ============================================================ */

:root {
  --beige:       #f4ece0;
  --beige-soft:  #faf5ed;
  --brown:       #8a5a2b;
  --brown-deep:  #6e4520;
  --brown-dark:  #3d2815;
  --tan-line:    #d9c7ad;
  --max-width:   1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--brown-dark);
  background: var(--beige);
  line-height: 1.65;
  font-weight: 400;
}

h1, h2, h3 { font-weight: 600; line-height: 1.2; color: var(--brown-dark); }
a { color: var(--brown); text-decoration: none; }
a:hover { color: var(--brown-deep); }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section-title { font-size: 2rem; text-align: center; margin-bottom: 12px; }
.section-intro { text-align: center; max-width: 640px; margin: 0 auto 56px; color: #6b5b48; }
.accent-rule { width: 64px; height: 3px; background: var(--brown); border: 0; margin: 14px auto 0; border-radius: 2px; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 237, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--tan-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; }
.brand { display: flex; align-items: center; gap: 14px; }

/* Logo: drop your logo file in the same folder and name it logo.png
   (or change the src below). Recommended logo height ~72px. */
.brand img.logo { height: 120px; width: auto; display: block; }

.nav { 
    display: flex; 
    gap: 28px; 
align-items: center;
}

.nav a { font-weight: 500; font-size: .95rem; color: var(--brown-dark); }
.nav a:hover { color: var(--brown); }
.nav-cta {
  background: var(--brown); color: #fff !important;
  padding: 9px 18px; border-radius: 6px; font-weight: 500;
}
.nav-cta:hover { background: var(--brown-deep); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--brown-dark); }

/* ---------- HERO ---------- */
.hero {
  background: var(--beige);
  padding: 72px 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-content { max-width: 580px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 18px; }
.hero p { font-size: clamp(1rem, 2vw, 1.15rem); color: #5f5040; margin-bottom: 30px; font-weight: 400; }

/* HERO IMAGE: "custom stairway.jpg" — PORTRAIT photo shown to the right
   of the hero text. The frame uses a 3:4 portrait aspect ratio and
   object-fit: cover enlarges/crops it to fill on any screen. */
.hero-image {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 4;        /* portrait frame to match the photo */
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  display: block;
  box-shadow: 0 14px 36px rgba(61,40,21,.18);
}
.btn {
  display: inline-block; background: var(--brown); color: #fff;
  padding: 14px 30px; border-radius: 6px; font-weight: 500; font-size: 1rem;
  transition: background .2s ease;
}
.btn:hover { background: var(--brown-deep); color: #fff; }
.btn-outline {
  background: transparent; border: 2px solid var(--brown); color: var(--brown); margin-left: 12px;
}
.btn-outline:hover { background: var(--brown); color: #fff; }

/* ---------- IMAGE PLACEHOLDERS ---------- */
/* Every placeholder shares the SAME 3:2 aspect ratio (e.g. 600 x 400 px).
   Swap the placeholder <div> for an <img> when your photo is ready —
   see the "HOW TO ADD IMAGES" note at the bottom of this file. */
.img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;            /* keeps all boxes identical regardless of width */
  background: #ede2d2;
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; color: var(--brown-deep);
  font-size: .9rem; padding: 12px; gap: 4px;
}
.img-placeholder .ph-name { font-weight: 600; }
.img-placeholder .ph-size { font-size: .8rem; color: #8a7559; }

.img-placeholder img {
    width: 300px;
    height: 150px;
    padding: none;
    border-radius: 8px;
}

/* ---------- SERVICES ---------- */
#services { background: var(--beige-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* all 4 on one line in desktop */
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--tan-line);
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(61,40,21,.12); }
.service-card .card-body { padding: 22px 22px 26px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--brown-deep); }
.service-card p { font-size: .95rem; color: #6b5b48; }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
#about-image {
    height:400px;
    width: 600px;
    box-shadow: 0 14px 36px rgba(61, 40, 21, .18);
    border-radius: 10px;
}
.about-text h2 { font-size: 2rem; margin-bottom: 16px; text-align: left; }
.about-text .accent-rule { margin: 0 0 22px; }
.about-text p { margin-bottom: 16px; color: #5f5040; }

/* ---------- CONTACT ---------- */
#contact { background: var(--beige-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info h3 { font-size: 1.2rem; margin-bottom: 18px; color: var(--brown-deep); }
.contact-item { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-item .ci-icon {
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  background: var(--brown); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-item .ci-label { font-weight: 600; color: var(--brown-dark); display: block; }
.contact-item .ci-value { color: #5f5040; font-size: .95rem; }

.contact-form { background: #fff; border: 1px solid var(--tan-line); border-radius: 10px; padding: 30px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .92rem; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--tan-line);
  border-radius: 6px; font-family: inherit; font-size: .95rem; background: var(--beige-soft);
  color: var(--brown-dark);
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--brown); background: #fff; }
.form-group textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { width: 100%; border: 0; cursor: pointer; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--brown-dark); color: #e8dcc9; padding: 34px 0; text-align: center; font-size: .9rem; }
.site-footer a { color: #e8dcc9; text-decoration: underline; }

/* ---------- RESPONSIVE ---------- */
/* Tablet: services drop to 2 columns */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .about-grid, .contact-grid, .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero-content { max-width: none; }
  .hero-image { order: -1; max-width: 320px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
         flex-direction: column; gap: 0; background: var(--beige-soft);
         border-bottom: 1px solid var(--tan-line); padding: 8px 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; }
  .nav-cta { margin: 8px 24px; text-align: center; }
  .menu-toggle { display: block; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
}