/* ==========================================================================
   Kuechle Construction Company (KCC) — Core Styles
   - Minimal, architectural, high-end
   - Dark charcoal with warm bronze accents
   - Sharp edges, no glow, no softness
   - Bootstrap-compatible in spirit (container/grid/utilities)
   ========================================================================== */
/* ------------------------------
   1) CSS Variables / Theme
-------------------------------- */
:root {
    --bg: #0b0c0e;

    /* near-black charcoal */
    --bg-2: #0f1114;

    /* slightly lighter panel */
    --text: #f2f3f5;

    /* primary text */
    --muted: rgba(242,243,245,.78);
    --muted-2: rgba(242,243,245,.62);
    --line: rgba(242,243,245,.12);
    --line-2: rgba(242,243,245,.18);
    --bronze: #b08a5a;

    /* warm bronze */
    --bronze-2: #8f6d44;

    /* deeper bronze */
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0,0,0,.35);
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1160px;
    --gutter: 1.25rem;
    --h1: clamp(2rem, 3.2vw, 3.1rem);
    --h2: clamp(1.35rem, 2vw, 1.75rem);
    --h3: 1.15rem;
    --focus: 2px solid rgba(176,138,90,.75);
}

/* ------------------------------
   2) Resets / Base
-------------------------------- */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

a:hover {
    text-decoration: none;
}

p {
    margin: 0 0 1rem 0;
}

h1,
h2,
h3 {
    margin: 0 0 .75rem 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 {
    font-size: var(--h1);
}

h2 {
    font-size: var(--h2);
}

h3 {
    font-size: var(--h3);
}

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

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

::selection {
    background: rgba(176,138,90,.35);
}

/* Accessibility */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: .6rem .8rem;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    z-index: 9999;
}

/* Focus styles */
:focus-visible {
    outline: var(--focus);
    outline-offset: 3px;
}

/* ------------------------------
   3) Layout Utilities
-------------------------------- */
.container {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
}

.section {
    padding: 3.25rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1.25rem;
}

@media (max-width: 900px){
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------
   4) Typography Helpers
-------------------------------- */
.lead {
    font-size: 1.08rem;
    color: var(--text);
    max-width: 68ch;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: .95rem;
    color: var(--muted);
}

.eyebrow {
    display: inline-block;
    font-size: .85rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted-2);
    border-left: 2px solid var(--bronze);
    padding-left: .6rem;
    margin-bottom: .9rem;
}

.h1-sub {
    display: block;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 500;
    color: var(--muted);
    margin-top: .55rem;
    letter-spacing: 0;
}

/* ------------------------------
   5) Header / Nav
-------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11,12,14,.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 240px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-weight: 650;
    letter-spacing: .01em;
}

.brand-sub {
    font-size: .85rem;
    color: var(--muted-2);
    margin-top: .15rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav a {
    color: var(--muted);
    padding: .4rem .15rem;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover {
    color: var(--text);
    border-bottom-color: rgba(176,138,90,.55);
}

.site-nav a[aria-current="page"] {
    color: var(--text);
    border-bottom-color: var(--bronze);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line-2);
    background: transparent;
    border-radius: 10px;
    padding: .55rem .65rem;
    cursor: pointer;
}

.nav-toggle-bars {
    width: 22px;
    height: 2px;
    background: var(--text);
    position: relative;
    display: block;
}

.nav-toggle-bars::before,

.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--text);
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

/* Mobile nav */
@media (max-width: 980px){
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        right: var(--gutter);
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem;
        padding: .85rem;
        background: var(--bg-2);
        border: 1px solid var(--line-2);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        min-width: 240px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        padding: .55rem .6rem;
        border-bottom: none;
    }
}

/* ------------------------------
   6) Buttons
-------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.btn:hover {
    border-color: rgba(176,138,90,.55);
}

.btn-primary {
    background: var(--bronze);
    border-color: var(--bronze);
    color: #0b0c0e;
}

.btn-primary:hover {
    background: var(--bronze-2);
    border-color: var(--bronze-2);
}

.btn-secondary {
    background: transparent;
}

.btn-cta {
    background: transparent;
    border-color: rgba(176,138,90,.55);
}

.btn-cta:hover {
    border-color: var(--bronze);
}

/* ------------------------------
   7) Hero + CTA Sections
-------------------------------- */
.hero {
    position: relative;
    padding: 4.25rem 0 3.25rem 0;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 300px at 20% 10%, rgba(176,138,90,.10), transparent 55%),
    radial-gradient(700px 300px at 80% 20%, rgba(176,138,90,.08), transparent 60%),
    linear-gradient(to bottom, rgba(255,255,255,.03), transparent 60%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
}

.hero-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.cta {
    position: relative;
    padding: 3.25rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(650px 260px at 30% 0%, rgba(176,138,90,.10), transparent 55%),
    linear-gradient(to bottom, rgba(255,255,255,.02), transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
}

.cta .lead {
    color: var(--muted);
}

/* ------------------------------
   8) Cards / Media
-------------------------------- */
.media-card {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
}

/* Services/Insights cards grid */
.cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0,1fr));
}

@media (max-width: 980px){
    .cards {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 640px){
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.card h2 {
    margin-bottom: .55rem;
}

.card p {
    margin-bottom: .6rem;
}

.card p:last-child {
    margin-bottom: 0;
}

/* ------------------------------
   9) Lists / Checkmarks
-------------------------------- */
.checklist {
    display: grid;
    gap: .55rem;
    margin-top: .75rem;
}

.checklist li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--muted);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5rem;
    width: .85rem;
    height: .85rem;
    border: 1px solid rgba(176,138,90,.75);
    border-radius: 3px;
    transform: translateY(-50%);
}

.checklist li::after {
    content: "";
    position: absolute;
    left: .25rem;
    top: .5rem;
    width: .35rem;
    height: .55rem;
    border-right: 2px solid rgba(176,138,90,.85);
    border-bottom: 2px solid rgba(176,138,90,.85);
    transform: translateY(-55%) rotate(40deg);
}

/* ------------------------------
   10) Forms (Contact)
-------------------------------- */
.form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

label {
    font-size: .92rem;
    color: var(--muted);
}

input,
select,
textarea {
    border: 1px solid rgba(242,243,245,.16);
    border-radius: 12px;
    padding: .75rem .9rem;
    background: rgba(255,255,255,.02);
    color: var(--text);
}

input::placeholder,
textarea::placeholder {
    color: rgba(242,243,245,.45);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(176,138,90,.65);
}

/* Make textarea full-width easier (your inline style handles it too) */
textarea {
    grid-column: 1 / -1;
}

/* --- Fix select dropdown options visibility (critical for your issue) --- */
select {
    color: var(--text);
    background-color: rgba(255,255,255,.02);
    appearance: auto;
}

select option {
    color: #111;

    /* readable in dropdown list */
    background-color: #fff;

    /* readable in dropdown list */
}

/* Buttons inside forms remain aligned */
.form .btn {
    justify-content: center;
}

/* ------------------------------
   11) Footer
-------------------------------- */
.site-footer {
    padding: 1.4rem 0;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.footer-brand {
    font-weight: 650;
    letter-spacing: .01em;
}

.footer-sub {
    margin-top: .2rem;
    color: var(--muted-2);
    font-size: .92rem;
}

.footer-right {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-right a {
    color: var(--muted);
    border-bottom: 1px solid transparent;
    padding-bottom: .15rem;
}

.footer-right a:hover {
    color: var(--text);
    border-bottom-color: rgba(176,138,90,.55);
}

@media (max-width: 720px){
    .footer-inner {
        flex-direction: column;
    }
}

/* ------------------------------
   12) Minor Page-specific hooks
-------------------------------- */
.page-contact .hero,

.page-services .hero,

.page-about .hero {
    border-bottom-color: var(--line);
}

/* ------------------------------
   13) Utility helpers (optional)
-------------------------------- */
.hr {
    height: 1px;
    background: var(--line);
    margin: 1.5rem 0;
}

.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* =========================
   INSIGHTS + ARTICLE HELPERS
   ========================= */

/* Softened housemark effect via CSS (works on any SVG/PNG) */
.housemark-soft {
  opacity: .92;
  filter: saturate(.92) contrast(1.05) brightness(1.02);
}

/* Article layout */
.article-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2.25rem;
}

.article-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.article-mark img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding: .35rem;
}

.article-byline .dot {
  margin: 0 .45rem;
  opacity: .6;
}

.article-body {
  max-width: 74ch;
}

.article-body h2 {
  margin-top: 1.6rem;
}

.article-body p {
  color: var(--muted);
}

.article-body p:first-child {
  color: var(--text);
}

@media (max-width: 720px){
  .article-head {
    grid-template-columns: 1fr;
  }

  .article-mark img {
    width: 52px;
    height: 52px;
  }
}

/* =========================
   INSIGHTS PAGE POLISH
   (minimal additions, on-brand)
   ========================= */

/* Hero grid for Insights (and other pages that use it) */
.hero-grid{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr);
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 900px){
  .hero-grid{
    grid-template-columns: 1fr;
  }
}

/* Hero logo positioning */
.hero-logo-wrap{
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 900px){
  .hero-logo-wrap{
    justify-content: flex-start;
    margin-top: .75rem;
  }
}

.hero-logo{
  width: min(320px, 100%);
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(242,243,245,.10);
  background: rgba(255,255,255,.01);
  padding: .75rem;
}

/* Dark section wrapper (used on Insights for the cards block) */
.section-dark{
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Section head spacing */
.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-head p{
  margin: 0;
  max-width: 70ch;
}

@media (max-width: 900px){
  .section-head{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Make cards feel like links (without getting “salesy”) */
.card-linkwrap{
  display: block;
  transition: border-color .18s ease, transform .18s ease;
}

.card-linkwrap:hover{
  border-color: rgba(176,138,90,.45);
  transform: translateY(-1px);
}

.card-link{
  display: inline-block;
  margin-top: .35rem;
  color: rgba(176,138,90,.95);
  border-bottom: 1px solid rgba(176,138,90,.35);
  padding-bottom: .05rem;
}

/* A subtle separator between major blocks on Insights */
.page-insights #all{
  padding-top: 2.25rem;
}

.page-insights #all .section-head{
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Optional: slightly tighter card headings for readability */
.page-insights .card h3{
  margin-bottom: .55rem;
}

/* Card meta (Published date) */
.card-meta{
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .55rem;
}

.card-date-label{
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-left: 2px solid rgba(176,138,90,.75);
  padding-left: .55rem;
}

.card-date{
  font-size: .92rem;
  color: var(--muted);
}

.card-meta{
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .55rem;
}

.card-date-label{
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-left: 2px solid rgba(176,138,90,.75);
  padding-left: .55rem;
}

.card-date{
  font-size: .92rem;
  color: var(--muted);
}



