/*
Theme Name: HB Construction Services
Theme URI: https://hirzbaybuilders.com/
Author: HB Construction Services
Author URI: https://hirzbaybuilders.com/
Description: One-page business theme for HB Construction Services (Hirz Bay Builders). Custom carpentry, home remodeling, and new construction.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: hb-construction
License: GNU General Public License v2 or later
*/

/* Main styles are loaded from assets/css/styles.css */

:root {
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --paper: #f4efe6;
  --white: #ffffff;
  --line: #e4ddd4;
  --accent: #c4a15a;
  --accent-dark: #9e7e3d;
  --steel: #6b655c;
  --shadow: 0 20px 50px rgba(20, 20, 20, 0.12);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

h1, h2, h3, .logo-type {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.45rem; }

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

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

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

.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.35);
}

.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-dark {
  background: var(--ink);
  color: white;
}

.btn-dark:hover { background: #000; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(246, 243, 238, 0.86);
  border-bottom: 1px solid rgba(20,20,20,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  background: #0b0b0b;
  border: 1px solid #2a2a2a;
}

.mark {
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo-type {
  font-size: 1.2rem;
  line-height: 1.05;
}

.logo-type small {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  font-size: 0.95rem;
}

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

.menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: end start;
  color: white;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,12,12,0.18) 0%, rgba(12,12,12,0.55) 55%, rgba(12,12,12,0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 90px;
}

.hero-content .lede { color: rgba(255,255,255,0.86); }

.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* Trust */
.trust {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-item strong { display: block; font-size: 1.05rem; }
.trust-item span { color: #b8b3ab; font-size: 0.92rem; }

/* Sections */
section { padding: 92px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}

.services { background: var(--paper); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: white;
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: var(--radius);
}

.card .num {
  font-family: "Cormorant Garamond", serif;
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.card p { color: var(--ink-soft); margin-top: 10px; }

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 280px;
}

.work-item:first-child { grid-row: span 2; min-height: 580px; }
.work-grid.mixed { grid-template-columns: 1.2fr 1fr 1fr; }
.work-grid.mixed .work-item:first-child { grid-row: auto; min-height: 320px; }

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

.work-cap {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: white;
  text-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.work-cap span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Process */
.process { background: var(--paper); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  background: white;
  padding: 26px;
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
}

.step p { color: var(--ink-soft); margin-top: 10px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.about-grid img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-copy p { margin: 16px 0; color: var(--ink-soft); }

/* Contact */
.contact {
  background: var(--ink);
  color: var(--paper);
}

.contact .lede { color: #cfc9c0; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  margin-top: 36px;
}

.contact-list { list-style: none; margin-top: 24px; }
.contact-list li { margin-bottom: 16px; }
.contact-list span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8a29a;
}

form {
  display: grid;
  gap: 14px;
  background: #1d1d1d;
  padding: 28px;
  border-radius: var(--radius);
}

label { font-size: 0.86rem; color: #d6d0c8; }

input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #3a3a3a;
  background: #151515;
  color: white;
  border-radius: 10px;
  font: inherit;
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.note { font-size: 0.82rem; color: #9d968c; }

/* Footer */
footer {
  background: #0e0e0e;
  color: #b8b3ab;
  padding: 28px 0;
  font-size: 0.92rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
  }
  .menu-btn { display: block; }
  .trust-grid, .card-grid, .steps, .about-grid, .contact-grid, .work-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .work-item, .work-item:first-child { min-height: 260px; grid-row: auto; }
  .about-grid img { height: 340px; }
  section { padding: 68px 0; }
}

body.admin-bar header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar header { top: 46px; }
}
