/* =========================================================
   Wagler’s Amish Construction – Muted Light Theme
   ========================================================= */

/* Base color system */
:root{
  --bg: #f1f2ee;          /* soft warm gray */
  --panel: #ffffff;
  --panel2: #f6f6f3;
  --text: #24303a;
  --muted: #4f5d6b;
  --muted2: #6b7280;
  --line: #d9dde3;
  --accent: #7a5536;      /* restrained wood tone */
  --accent2: #8b6546;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
  --radius: 14px;
  --radius2: 18px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Links */
a{
  color: var(--accent);
  text-decoration: none;
}
a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Layout */
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Accessibility */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  background: #1f2933;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  z-index: 9999;
}
.skip-link:focus{ left: 12px; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}
.brand-mark{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}
.brand-name{
  display:block;
  font-weight: 800;
}
.brand-tagline{
  display:block;
  font-size: 12px;
  color: var(--muted2);
  margin-top: 2px;
}

/* Navigation */
.nav{ position: relative; }

.nav-toggle{
  display: none;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle-lines{
  display:block;
  width: 22px;
  height: 14px;
  position: relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content:"";
  position:absolute;
  left:0;
  width: 22px;
  height: 2px;
  background: var(--text);
}
.nav-toggle-lines::before{ top: 2px; }
.nav-toggle-lines::after{ bottom: 2px; }

.nav-menu{
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.nav-menu a{
  display:inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
}
.nav-menu a:hover{
  background: var(--panel2);
  color: var(--text);
  text-decoration: none;
}

.header-cta{
  display:flex;
  gap: 10px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}
.btn:hover{
  background: var(--panel2);
}

.btn-primary{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover{
  background: var(--accent2);
}

.btn-secondary{
  background: var(--panel);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost{
  background: transparent;
}

.full{ width: 100%; }

/* Hero */
.hero{
  padding: 44px 0 28px;
  background: var(--panel);
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.kicker{
  display:inline-block;
  font-size: 12px;
  color: var(--muted2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--panel2);
}

.hero h1{
  font-size: clamp(32px, 4vw, 46px);
  margin: 14px 0 10px;
}
.lead{
  font-size: 16px;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions{
  display:flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Sections */
.section{
  padding: 40px 0;
}
.section.alt{
  background: var(--panel2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head{
  margin-bottom: 18px;
}
.section-head h2{
  margin: 0 0 6px;
  font-size: 26px;
}
.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
}

/* Cards */
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card-title{
  margin: 0 0 8px;
  font-size: 18px;
}
.card-text{
  margin: 0 0 12px;
  color: var(--muted);
}

.divider{
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}
.fineprint{
  font-size: 12px;
  color: var(--muted2);
}

/* Grid */
.grid{
  display: grid;
  gap: 16px;
}
.grid.two{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Features */
.feature{
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px;
}
.feature h3{
  margin: 0 0 8px;
}
.feature p{
  margin: 0 0 12px;
  color: var(--muted);
}

.bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li{
  margin: 6px 0;
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.gallery-item{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.placeholder{
  height: 160px;
  display:grid;
  place-items:center;
  background: repeating-linear-gradient(
    45deg,
    #eceeed 0 12px,
    #f6f6f3 12px 24px
  );
}
.placeholder span{
  font-weight: 600;
  color: var(--muted2);
}
.gallery-item figcaption{
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Contact */
.contact-lines{
  display:grid;
  gap: 10px;
}
.contact-line{
  display:flex;
  justify-content: space-between;
  gap: 10px;
}
.contact-label{
  color: var(--muted2);
  font-size: 12px;
}
.contact-value{
  font-weight: 700;
}

.form{
  display:grid;
  gap: 12px;
}
.field span{
  font-size: 12px;
  color: var(--muted2);
}
input, textarea{
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}
input:focus, textarea:focus{
  border-color: var(--accent);
  outline: none;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 22px 0;
}
.footer-inner{
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand{
  font-weight: 800;
}
.footer-meta{
  margin-top: 6px;
  color: var(--muted);
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-small{
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted2);
}
.footer-links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-links a{
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 8px;
}
.footer-links a:hover{
  background: var(--panel2);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{
    grid-template-columns: 1fr;
  }
  .grid.three{
    grid-template-columns: 1fr;
  }
  .gallery{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-inner{
    grid-template-columns: 1fr auto;
  }
  .header-cta{
    display:none;
  }
  .nav-toggle{
    display:inline-flex;
  }
  .nav-menu{
    position:absolute;
    right: 0;
    top: 52px;
    flex-direction: column;
    width: 220px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel);
    display:none;
  }
  .nav-menu.open{
    display:flex;
  }
}

@media (max-width: 560px){
  .grid.two{
    grid-template-columns: 1fr;
  }
  .gallery{
    grid-template-columns: 1fr;
  }
}
