/* ===========================================
   WIDE BAY DESIGN DRAFTING  — Main Stylesheet
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --brand:        #C4521A;
  --brand-dark:   #A34215;
  --brand-light:  #E8703A;
  --dark:         #1E2A35;
  --text:         #3D3D3D;
  --text-light:   #6B6B6B;
  --light:        #F7F4F0;
  --white:        #FFFFFF;
  --border:       #E5E0D8;
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:    0 10px 40px rgba(0,0,0,0.14);
  --radius:       5px;
  --tr:           0.3s ease;
  --heading:      'Playfair Display', Georgia, serif;
  --body:         'Inter', system-ui, -apple-system, sans-serif;
  --max:          1200px;
  --nav-h:        80px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--text); background: var(--white); line-height: 1.65; }

h1,h2,h3,h4 { font-family: var(--heading); color: var(--dark); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); }
p  { margin-bottom: 1rem; color: var(--text-light); }
a  { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .85rem 2.1rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  transition: all var(--tr); cursor: pointer; border: 2px solid transparent;
}
.btn-primary  { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn-primary:hover  { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(196,82,26,.35); }
.btn-outline  { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover  { background: var(--white); color: var(--brand); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline-dark:hover { background: var(--brand); color: var(--white); transform: translateY(-2px); }

/* ── Sections ── */
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-light { background: var(--light); }
.section-dark  { background: var(--dark); }
.section-dark h2,.section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.72); }

.section-label {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 600; color: var(--brand); margin-bottom: .75rem;
}
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header .section-label { display: block; }
.divider { width: 50px; height: 3px; background: var(--brand); margin: .9rem auto; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  transition: all var(--tr);
}
.nav.scrolled { background: var(--white); box-shadow: 0 2px 20px rgba(0,0,0,.08); }

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

.nav-links { display: flex; align-items: center; list-style: none; gap: .15rem; }
.nav-links a {
  padding: .5rem 1rem; font-weight: 500; font-size: .95rem;
  color: var(--white); border-radius: var(--radius); transition: all var(--tr);
}
.nav.scrolled .nav-links a { color: var(--dark); }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-links .nav-cta { background: var(--brand); color: var(--white) !important; padding: .5rem 1.3rem; margin-left: .5rem; border-radius: var(--radius); }
.nav-links .nav-cta:hover { background: var(--brand-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: .25rem; }
.nav-toggle span { width: 25px; height: 2px; background: var(--white); display: block; transition: all var(--tr); border-radius: 2px; }
.nav.scrolled .nav-toggle span { background: var(--dark); }

/* ============================================================
   HERO — Full page
   ============================================================ */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,42,53,.88) 0%, rgba(30,42,53,.45) 100%); }
.hero-content { position: relative; z-index: 1; color: var(--white); max-width: 700px; }
.hero-content .section-label { color: rgba(255,255,255,.85); border-left: 3px solid var(--brand); padding-left: .85rem; margin-bottom: 1.25rem; }
.hero-content h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-content p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; max-width: 560px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; color: rgba(255,255,255,.65); text-align: center;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
}
.hero-scroll::after {
  content:''; display: block; width: 1px; height: 40px;
  background: rgba(255,255,255,.38); margin: .5rem auto 0;
  animation: scrollPulse 1.6s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:1; transform: scaleY(1); }
  50% { opacity:.3; transform: scaleY(.6); }
}

/* ── Page hero (subpages) ── */
.page-hero {
  height: 400px; position: relative; display: flex; align-items: flex-end;
  padding-bottom: 3rem; overflow: hidden; margin-top: var(--nav-h);
}
.page-hero .hero-bg { background-attachment: scroll; }
.page-hero .hero-overlay { background: linear-gradient(to top, rgba(30,42,53,.9) 0%, rgba(30,42,53,.35) 100%); }
.page-hero-content { position: relative; z-index: 1; color: var(--white); }
.page-hero-content h1 { color: var(--white); margin-bottom: .5rem; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.65); }
.breadcrumb a { color: var(--brand); }
.breadcrumb-sep { color: rgba(255,255,255,.35); }

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 2rem; }
.feature-card {
  background: var(--white); border-radius: 10px; padding: 2.5rem 2rem;
  box-shadow: var(--shadow); transition: all var(--tr); border-top: 4px solid transparent;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-top-color: var(--brand); }
.feature-icon {
  width: 58px; height: 58px; background: rgba(196,82,26,.1); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.feature-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin-bottom: .65rem; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 2rem; }
.service-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: all var(--tr); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-card-img-wrap { overflow: hidden; }
.service-card-img { width: 100%; height: 240px; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card-img { transform: scale(1.06); }
.service-card-body { padding: 1.75rem; }
.service-card-body h3 { margin-bottom: .65rem; }
.learn-more {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--brand); font-weight: 600; font-size: .9rem;
  margin-top: 1rem; transition: gap var(--tr);
}
.learn-more:hover { gap: .75rem; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: var(--brand); padding: 3.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 2rem; text-align: center; }
.stat-item h3 { font-size: 2.8rem; color: var(--white); line-height: 1; }
.stat-item p  { color: rgba(255,255,255,.82); font-size: .88rem; font-weight: 500; margin: 0; }

/* ============================================================
   GALLERY — Featured (home page)
   ============================================================ */
.gallery-featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 280px 280px;
  gap: .85rem;
}
.gallery-featured .gallery-item:first-child { grid-row: 1 / 3; }

/* ============================================================
   GALLERY — Full grid (gallery page)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px,1fr));
  gap: .9rem;
}
.gallery-item { position: relative; overflow: hidden; border-radius: 7px; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute; inset: 0; background: rgba(30,42,53,.55);
  opacity: 0; transition: opacity var(--tr);
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay svg { width: 42px; height: 42px; stroke: #fff; stroke-width: 1.5; fill: none; stroke-linecap: round; }

/* Gallery filter */
.gallery-filter { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 3rem; }
.gallery-filter-btn {
  padding: .6rem 1.6rem; border: 1.5px solid var(--border); background: transparent;
  color: var(--text); border-radius: 30px; font-family: var(--body);
  font-size: .9rem; font-weight: 500; cursor: pointer; transition: all var(--tr);
}
.gallery-filter-btn:hover, .gallery-filter-btn.active {
  background: var(--brand); border-color: var(--brand); color: #fff;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 9999;
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none;
  color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; opacity: .75; transition: opacity var(--tr);
}
.lightbox-close:hover { opacity: 1; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { background: var(--dark); padding: 5.5rem 0; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.72); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2.25rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 2rem; }
.step { text-align: center; padding: 2rem 1.25rem; }
.step-number {
  width: 58px; height: 58px; background: var(--brand); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--heading); font-size: 1.5rem; font-weight: 700;
  margin: 0 auto 1.25rem;
}
.step h4 { font-family: var(--body); font-weight: 600; color: var(--dark); margin-bottom: .5rem; }
.step p { margin: 0; font-size: .92rem; }

/* ============================================================
   SERVICES DETAIL (services page)
   ============================================================ */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; margin-bottom: 5rem; }
.service-detail.reverse { grid-template-columns: 1fr 1fr; }
.service-detail.reverse .service-detail-img { order: 2; }
.service-detail.reverse .service-detail-text { order: 1; }
.service-detail-img { border-radius: 10px; overflow: hidden; height: 420px; }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.service-list {  list-style: none; margin: 1.25rem 0 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.service-list li {
  padding: .45rem 0 .45rem 1.6rem; border-bottom: 1px solid var(--border);
  color: var(--text-light); font-size: .94rem; position: relative;
}
.service-list li::before { content: '→'; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img-wrap { position: relative; border-radius: 10px; overflow: hidden; }
.about-img-wrap img { width: 100%; height: 520px; object-fit: cover; }
.about-badge {
  position: absolute; bottom: 2rem; right: -1.5rem;
  background: var(--brand); color: var(--white); padding: 1.4rem 1.6rem;
  border-radius: 10px; text-align: center; box-shadow: var(--shadow-lg);
}
.about-badge .badge-num { font-family: var(--heading); font-size: 2.1rem; font-weight: 700; line-height: 1; }
.about-badge p { color: rgba(255,255,255,.85); font-size: .78rem; margin: 0; margin-top: .25rem; }

.about-checklist { list-style: none; margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: .8rem; }
.about-checklist li { display: flex; align-items: center; gap: .85rem; font-size: .95rem; color: var(--text); }
.about-checklist li::before {
  content: '';
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
  background: rgba(196,82,26,.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4521A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 2rem; margin-top: 1rem; }
.value-card { background: var(--white); border-radius: 10px; padding: 2rem; box-shadow: var(--shadow); text-align: center; }
.value-icon { width: 52px; height: 52px; background: rgba(196,82,26,.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.value-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; }
.value-card h4 { font-family: var(--body); font-weight: 600; color: var(--dark); margin-bottom: .5rem; }
.value-card p { font-size: .9rem; margin: 0; }

.bdq-box { display: flex; align-items: center; gap: 3rem; background: var(--white); border-radius: 12px; padding: 3rem; box-shadow: var(--shadow); flex-wrap: wrap; }
.bdq-box img { height: 90px; flex-shrink: 0; }
.bdq-text h3 { margin-bottom: .65rem; }

.area-list { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.area-tag { background: rgba(196,82,26,.1); color: var(--brand); padding: .45rem 1.1rem; border-radius: 30px; font-size: .88rem; font-weight: 600; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.contact-card { background: var(--white); border-radius: 10px; padding: 2rem; box-shadow: var(--shadow); text-align: center; transition: all var(--tr); }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.contact-card-icon { width: 56px; height: 56px; background: var(--brand); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.contact-card-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; }
.contact-card h4 { font-family: var(--body); font-weight: 600; color: var(--dark); margin-bottom: .5rem; }
.contact-card p { font-size: .92rem; margin: 0; overflow-wrap: break-word; word-break: break-word; }
.contact-card a { color: var(--brand); overflow-wrap: break-word; word-break: break-word; }
.contact-card a:hover { color: var(--brand-dark); }

.contact-main { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.contact-aside h3 { margin-bottom: 1.5rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.75rem; }
.contact-item-icon { width: 44px; height: 44px; background: rgba(196,82,26,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 1.9; stroke-linecap: round; }
.contact-item-text h5 { font-family: var(--body); font-weight: 600; color: var(--dark); margin-bottom: .2rem; }
.contact-item-text p { margin: 0; font-size: .92rem; }
.contact-item-text a { color: var(--brand); }

/* Contact Form */
.contact-form-box { background: var(--white); padding: 2.75rem; border-radius: 12px; box-shadow: var(--shadow-lg); }
.contact-form-box h3 { margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; font-size: .88rem; color: var(--dark); margin-bottom: .4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--body); font-size: .95rem;
  color: var(--text); transition: border-color var(--tr); background: var(--light);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brand); background: var(--white);
}
.form-group textarea { height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--dark); color: var(--white); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand img { height: 58px; margin-bottom: 1.25rem; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.75; }
.footer-col h4 {
  color: var(--white); font-family: var(--body); font-weight: 600;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color var(--tr); }
.footer-links a:hover { color: var(--brand); }
.footer-contact-item { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .9rem; }
.footer-contact-item svg { width: 15px; height: 15px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; margin-top: 3px; }
.footer-contact-item span { color: rgba(255,255,255,.6); font-size: .88rem; line-height: 1.55; }
.footer-contact-item a { color: rgba(255,255,255,.6); transition: color var(--tr); }
.footer-contact-item a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.75rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: rgba(255,255,255,.42); font-size: .82rem; margin: 0; }
.footer-bdq { height: 44px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid  { grid-template-columns: 1fr; }
  .about-badge { right: 1rem; }
  .contact-main { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail.reverse .service-detail-img { order: 0; }
  .service-detail.reverse .service-detail-text { order: 0; }
}

@media (max-width: 768px) {
  :root { --nav-h: 70px; }

  .nav-links {
    display: none; position: fixed; inset: var(--nav-h) 0 0 0;
    background: var(--white); flex-direction: column; align-items: center;
    justify-content: center; gap: 1.5rem; z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--dark) !important; font-size: 1.1rem; }
  .nav-toggle { display: flex; }

  .hero-buttons { flex-direction: column; align-items: flex-start; }

  .gallery-featured { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-featured .gallery-item:first-child { grid-row: auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .bdq-box { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3.5rem 0; }
  .page-hero { height: 300px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
