/* ─── Warm Earth-Tone Palette ─── */
:root {
  --bg: #f7f3ee;
  --bg-warm: #f0ebe4;
  --surface: #ffffff;
  --surface-warm: #fdfbf8;
  --ink: #2e251f;
  --ink-soft: #4a3f36;
  --muted: #8a7d72;
  --accent: #b35a2e;
  --accent-hover: #9a4820;
  --accent-light: #e8cbb8;
  --accent-glow: rgba(179, 90, 46, 0.08);
  --olive: #6b7c4e;
  --olive-light: #dde4d0;
  --ring: #e2d9cf;
  --ring-light: #eee8e0;
  --shadow-sm: 0 2px 8px rgba(46, 37, 31, 0.06);
  --shadow: 0 8px 30px rgba(46, 37, 31, 0.08);
  --shadow-lg: 0 16px 50px rgba(46, 37, 31, 0.10);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* ─── Header ─── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ring);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand {
  font-weight: 700; font-size: 1.05rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.brand .muted { font-weight: 400; font-size: 0.85rem; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a {
  padding: 7px 14px; border-radius: 6px;
  color: var(--ink-soft); font-weight: 500; font-size: 0.92rem;
  transition: all var(--transition);
}
nav a:hover { background: var(--ring-light); color: var(--ink); text-decoration: none; }
nav a.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 8px rgba(179, 90, 46, 0.25);
}
nav a.active:hover { background: var(--accent-hover); color: #fff; }

/* ─── Hero ─── */
.hero {
  background:
    linear-gradient(135deg, rgba(62, 44, 30, 0.88) 0%, rgba(120, 72, 38, 0.82) 50%, rgba(179, 90, 46, 0.75) 100%),
    url('https://lh3.googleusercontent.com/sitesv/APaQ0SRwSsqViQ5bhR_0C8CNK4142geQhJROFgqQUOk6gkIqXwqmFm_D7Ytip98RKrYitT_OyLAYKgfU0mjxRlS2stH3x_-r5Eo9oWo-i2mriRhfs-iu6E39B8bHCix_gVB1JsbBc98oJ0jj5_0DHUcrCxa0GWNGlhxRUzveba3vppXJ0yswyXPkWpwt0ZQh9psIlyl0MwZm5oHPRkt-yhI8II4kY_vv1tTx1lw1TO0=w1280') center/cover;
  color: #fff;
  padding: 100px 0 80px;
  margin-bottom: 40px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero p {
  margin: 0; max-width: 680px;
  font-size: 1.12rem; opacity: 0.92; line-height: 1.7;
}
.hero .subtitle {
  display: inline-block; margin-bottom: 16px;
  padding: 5px 14px; border-radius: 20px;
  background: rgba(255,255,255,0.15);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ─── Page Header (inner pages) ─── */
.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--ring);
  margin-bottom: 36px;
}
.page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.page-header p {
  margin: 0; color: var(--muted);
  font-size: 1.05rem; max-width: 680px;
}

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
  margin-bottom: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.card h2 .card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-right: 10px;
  border-radius: 8px; font-size: 1.1rem;
  background: var(--accent-glow);
  vertical-align: middle;
}
.card p { margin: 0 0 12px; color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }

/* ─── Highlight Card (accent border) ─── */
.card-highlight {
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-warm) 100%);
}

/* ─── Stats Row ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  text-align: center; padding: 20px 16px;
  background: var(--surface-warm);
  border: 1px solid var(--ring-light);
  border-radius: var(--radius);
}
.stat-number {
  display: block; font-size: 2rem; font-weight: 800;
  color: var(--accent); letter-spacing: -0.02em;
  line-height: 1.2;
}
.stat-label {
  display: block; font-size: 0.82rem; font-weight: 500;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-top: 4px;
}

/* ─── Grid Layouts ─── */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Project Cards ─── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}
.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--accent-light);
}
.project-card .project-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  margin-bottom: 12px;
}
.project-card h3 {
  margin: 0 0 8px; font-size: 1.05rem;
  font-weight: 700; color: var(--ink);
  line-height: 1.4;
}
.project-card .location {
  display: inline-block; margin-bottom: 10px;
  padding: 3px 10px; border-radius: 4px;
  background: var(--bg-warm); color: var(--muted);
  font-size: 0.78rem; font-weight: 500;
}
.project-card p {
  margin: 0; color: var(--ink-soft);
  font-size: 0.93rem; line-height: 1.65;
}

/* Legacy project styling (fallback) */
.project { border-left: 4px solid var(--accent-light); padding-left: 16px; margin: 20px 0; }
.project h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--ink); }

/* ─── Service Cards ─── */
.service-card {
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.service-card .service-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  margin-bottom: 16px; font-size: 1.3rem;
}
.service-icon.geo { background: linear-gradient(135deg, #e8d5c4, #dcc4ae); }
.service-icon.construct { background: linear-gradient(135deg, #d4dfc6, #c5d4b1); }
.service-icon.failure { background: linear-gradient(135deg, #e2d0c0, #d5bfab); }
.service-icon.legal { background: linear-gradient(135deg, #d5d0c6, #c8c1b4); }
.service-card h2 {
  margin: 0 0 16px; font-size: 1.2rem;
  font-weight: 700; color: var(--ink);
}
.list-clean {
  margin: 0; padding-left: 0; list-style: none;
}
.list-clean li {
  position: relative; padding: 6px 0 6px 20px;
  color: var(--ink-soft); font-size: 0.92rem;
  border-bottom: 1px solid var(--ring-light);
}
.list-clean li:last-child { border-bottom: none; }
.list-clean li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-light);
}

/* ─── Gallery ─── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.gallery figure:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.gallery img {
  width: 100%; height: 200px;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.gallery figure:hover img {
  transform: scale(1.04);
}

/* ─── Contact Layout ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-info-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--ring-light);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-glow); color: var(--accent);
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 2px;
}
.contact-value {
  font-size: 1rem; font-weight: 500; color: var(--ink);
}

/* ─── Island Badge ─── */
.island-badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.island-badge.oahu { background: #dde4d0; color: #4a5a32; }
.island-badge.big-island { background: #e8d5c4; color: #7a5030; }
.island-badge.kauai { background: #d5dce8; color: #3a5070; }
.island-badge.maui { background: #e4d8e6; color: #5a3a60; }

/* ─── Inquiry Form ─── */
.inquiry-form .form-group {
  margin-bottom: 18px;
}
.inquiry-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.inquiry-form .required {
  color: var(--accent);
}
.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"],
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.inquiry-form textarea {
  resize: vertical;
}
.inquiry-form select {
  cursor: pointer;
  appearance: auto;
}
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500 !important;
  font-size: 0.93rem !important;
  color: var(--ink-soft) !important;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--ring-light);
  transition: all var(--transition);
}
.checkbox-label:hover {
  background: var(--accent-glow);
  border-color: var(--accent-light);
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.form-hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.btn-submit {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(179, 90, 46, 0.25);
}
.btn-submit:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(179, 90, 46, 0.3);
  transform: translateY(-1px);
}

/* ─── Divider ─── */
.divider {
  width: 48px; height: 3px; border-radius: 2px;
  background: var(--accent-light); margin: 20px 0;
  border: none;
}

/* ─── Muted ─── */
.muted { color: var(--muted); }

/* ─── Footer ─── */
footer {
  padding: 36px 0 52px;
  color: var(--muted); font-size: 0.9rem;
  border-top: 1px solid var(--ring);
  margin-top: 24px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero { padding: 70px 0 56px; }
  .project-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 22px 20px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  nav a { padding: 6px 10px; font-size: 0.85rem; }
}
