/*
Theme Name: Haleakala Construction Theme
Theme URI: https://haleakalaconstruction.store
Author: HALEAKALA CONSTRUCTION INC
Author URI: https://haleakalaconstruction.store
Description: Professional construction and contracting corporate theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haleakala-construction
Tags: construction, business, custom-logo, custom-menu, featured-images, responsive-layout
*/

:root {
  --ink: #17201c;
  --forest: #173f33;
  --forest-dark: #0d2b23;
  --gold: #e6a928;
  --gold-dark: #b97806;
  --paper: #ffffff;
  --mist: #f3f5f2;
  --muted: #64706a;
  --line: #dce2de;
  --danger: #a32626;
  --success: #1d6b43;
  --shadow: 0 18px 45px rgba(13, 43, 35, .12);
  --radius: 6px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--gold-dark); }
button, input, textarea { font: inherit; }
button, .button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; padding: 12px 18px; margin: 8px; z-index: 10000; background: var(--paper); color: var(--ink); }

.top-bar { background: var(--forest-dark); color: var(--paper); font-size: .875rem; }
.top-bar__inner { min-height: 38px; display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.top-bar a { color: var(--paper); text-decoration: none; }
.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-branding { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.custom-logo { display: block; max-height: 64px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; background: var(--gold); color: var(--forest-dark); font-weight: 900; font-size: 1.15rem; }
.brand-name { display: block; max-width: 290px; color: var(--forest-dark); font-size: 1.05rem; font-weight: 800; line-height: 1.15; }
.brand-tagline { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--gold-dark); }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--paper); color: var(--forest-dark); font-size: 1.4rem; }

.hero { position: relative; min-height: 620px; display: grid; align-items: center; color: var(--paper); overflow: hidden; background: var(--forest-dark); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,30,24,.96) 0%, rgba(8,30,24,.82) 50%, rgba(8,30,24,.42) 100%), repeating-linear-gradient(135deg, transparent 0 38px, rgba(255,255,255,.035) 38px 40px); }
.hero__content { position: relative; z-index: 1; max-width: 800px; padding: 104px 0 112px; }
.eyebrow { display: inline-block; margin-bottom: 18px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0 0 24px; font-size: clamp(2.7rem, 6vw, 5.6rem); line-height: .98; letter-spacing: 0; }
.hero p { max-width: 660px; margin: 0 0 34px; color: #e7ece9; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px; border: 2px solid var(--gold); border-radius: var(--radius); background: var(--gold); color: var(--forest-dark); font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover, .button:focus { transform: translateY(-2px); background: #f2bc4a; color: var(--forest-dark); }
.button--outline { margin-left: 10px; background: transparent; color: var(--paper); }
.button--outline:hover { background: var(--gold); }

.section { padding: 88px 0; }
.section--muted { background: var(--mist); }
.section--dark { background: var(--forest-dark); color: var(--paper); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2, .content-title { margin: 0 0 16px; color: var(--forest-dark); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.fact-panel { padding: 30px; border-top: 5px solid var(--gold); background: var(--forest); color: var(--paper); box-shadow: var(--shadow); }
.fact-panel dl { margin: 0; }
.fact-panel dt { margin-top: 18px; color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.fact-panel dt:first-child { margin-top: 0; }
.fact-panel dd { margin: 3px 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { min-height: 280px; padding: 30px; border: 1px solid var(--line); border-top: 5px solid var(--gold); background: var(--paper); box-shadow: 0 10px 28px rgba(23,32,28,.07); }
.service-card__number { display: block; color: var(--gold-dark); font-size: .8rem; font-weight: 900; letter-spacing: .13em; }
.service-card h3 { margin: 42px 0 12px; color: var(--forest-dark); font-size: 1.45rem; line-height: 1.2; }
.service-card p { margin: 0; color: var(--muted); }
.project-strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.project-type { min-height: 250px; display: flex; flex-direction: column; justify-content: end; padding: 30px; border-right: 1px solid rgba(255,255,255,.2); background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(230,169,40,.12)); }
.project-type:last-child { border-right: 0; }
.project-type strong { color: var(--gold); font-size: 1.35rem; }
.project-type span { color: #d4dfda; }

.cta { background: var(--gold); color: var(--forest-dark); }
.cta__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.cta h2 { margin-top: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; }
.inquiry-form, .contact-form { padding: 32px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field--full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 6px; font-size: .84rem; font-weight: 800; }
input, textarea { width: 100%; border: 1px solid #b9c3bd; border-radius: 3px; background: var(--paper); padding: 12px 13px; color: var(--ink); }
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid rgba(230,169,40,.28); border-color: var(--gold-dark); }
.form-notice { margin: 0 0 20px; padding: 12px 15px; border-left: 4px solid var(--success); background: #eef8f2; }
.form-notice--error { border-color: var(--danger); background: #fff1f1; }
.form-consent { font-size: .8rem; color: var(--muted); }

.page-header { padding: 70px 0; background: var(--forest-dark); color: var(--paper); }
.page-header h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; }
.page-header p { max-width: 700px; margin: 14px 0 0; color: #d5dfda; }
.content-wrap { width: min(calc(100% - 40px), 900px); margin-inline: auto; padding: 72px 0 90px; }
.entry-content h2, .entry-content h3 { margin-top: 2em; color: var(--forest-dark); line-height: 1.2; }
.entry-meta { color: var(--muted); font-size: .88rem; }
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card { padding: 26px; border: 1px solid var(--line); background: var(--paper); }
.post-card h2 { margin-top: 0; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; }
.contact-details { padding: 30px; background: var(--forest); color: var(--paper); }
.contact-details a { color: var(--gold); }
.contact-details h2 { color: var(--paper); }

.site-footer { background: #0a211b; color: #dbe4e0; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; padding: 64px 0 42px; }
.site-footer h2, .site-footer h3 { color: var(--paper); }
.site-footer h2 { margin: 0 0 18px; font-size: 1.45rem; }
.site-footer p { margin: 7px 0; }
.site-footer a { color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); color: #abbab3; font-size: .82rem; }

@media (max-width: 900px) {
  .top-bar__inner { justify-content: center; flex-wrap: wrap; gap: 4px 18px; padding: 8px 0; }
  .site-header__inner { min-height: 76px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 18px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 12px 0; }
  .hero { min-height: 550px; }
  .about-grid, .cta__inner, .contact-layout, .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container, .content-wrap { width: min(calc(100% - 28px), var(--content)); }
  .brand-tagline { display: none; }
  .brand-name { max-width: 200px; font-size: .9rem; }
  .hero__content { padding: 78px 0 88px; }
  .hero h1 { font-size: 2.65rem; }
  .section { padding: 64px 0; }
  .button--outline { margin: 10px 0 0; }
  .form-grid, .archive-grid, .project-strip { grid-template-columns: 1fr; }
  .project-type { min-height: 170px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .inquiry-form, .contact-form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
