/* Footer utility classes moved from inline styles */
.footer-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-link-flex {
  display: inline-flex;
  align-items: center;
}
.footer-icon-align {
  vertical-align: middle;
}
.footer-sr-only {
  font-size: 0;
}

/* Classic theme to match the existing At Wood Homes site */
:root{
  --header:#000;
  --bg:#f0ece7;
  --panel:#ffffff;
  --text:#111;
  --muted:#555;
  --link:#ffffff;
  --accent:#eaeaea;
}

*{box-sizing:border-box}
html,body
  {
    margin:0;
    padding:0;
    font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Inter,Arial,sans-serif;
    color:var(--text);
    background:var(--bg);
    height: 100%;
  }
a{color:var(--link);text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:0 16px}
.title {font-size: 30px; /* Change 2rem to your preferred size */}

body {
  background: url('../images/backimage.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

main.container {
  margin-left: 0;
  margin-right: auto;
}

.main-container {
  position: sticky;
  margin-left: auto  !important;
  margin-right: auto !important;
  padding-left: 10px;
  padding-right: 10px;
  max-width: 1210px;
  width: 100%;
}

/* Header */
.site-header{position:sticky;top:0;background:var(--header);color:#fff;z-index:40}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:18px 0 0 0}
.brand{display:flex;align-items:center;gap:14px}
.brand svg{height:42px;width:42px}
.brand .title{font-weight:700;letter-spacing:.5px}
.brand img{height:80px;max-height:80px;width:auto}
.nav a{color:#9bdfa4;opacity:.9;margin:0 14px;letter-spacing:.06em;text-transform:uppercase;font-size:.95rem}
.nav a:hover,.nav a.active{opacity:1;border-bottom:2px solid #fff;padding-bottom:4px}
/* Hero */
.hero{position:relative;min-height:10vh;background:#000 url('../images/hero1.jpg') center/cover no-repeat;display:grid;align-items:center}
.hero .overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,.45))}
.hero .content{position:relative;z-index:2}
.hero h1{color:#fff;font-size:clamp(2rem,4vw,2.5rem);line-height:1.1;margin:0;font-weight:800;text-shadow:0 2px 6px rgba(0,0,0,.45)}
/* Sections */
.section{
  /* margin-left: 0; */
  /* margin-right: auto; */
  margin:40px 0 40px 0; 
  padding: 20px  20px 20px 20px;
  min-height:10vh;
  /* background-color: #000; */
  color: #fff;
  background: rgba(0, 0, 0, 0.65); /* semi-transparent background */
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.18); /* faded border */
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18); /* soft shadow */
  backdrop-filter: blur(4px); /* optional: glass effect */
  -webkit-backdrop-filter: blur(4px); /* for Safari */
  transition: box-shadow 0.3s, border 0.3s;
  
}
.section h2{
  margin:0 0 12px 0
}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width:900px){.cards{grid-template-columns:1fr}}
.card{background:var(--panel);border:1px solid var(--accent);border-radius:8px;padding:18px}
.gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px
}
.gallery img{
  width:100%;
  height:260px;
  object-fit:cover;
  border-radius:6px;
  border:2px solid var(--accent);
  background:#ddd
}

/* Responsive header/nav fixes for small screens */
@media (max-width:700px) {
  /* keep brand and toggle on one line, allow nav to wrap below */
  .topbar{
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    padding-bottom:8px;
  }
  .brand{gap:10px;flex:0 0 auto}
  .brand .title{font-size:1.1rem}
  .brand img{height:56px}

  /* place toggle to the right of the topbar */
  .nav-toggle{display:inline-block;order:2;margin-left:auto;margin-right:10px}

  /* hide nav by default on small screens; show when .open is present */
  .nav{display:none;width:100%;order:3}
  .nav.open{display:flex;flex-direction:column;gap:6px;padding-top:8px}
  .nav a{margin:0;padding:6px 8px;font-size:.9rem}
}

@media (max-width:420px){
  .brand img{height:48px}
  .brand .title{font-size:1rem}
  .nav a{font-size:.85rem;padding:6px 6px}
}

/* hamburger toggle styles */
.nav-toggle{display:none;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.12);color:var(--link);padding:8px 10px;cursor:pointer;border-radius:6px;z-index:60}
.nav-toggle:hover{background:rgba(255,255,255,0.09)}
.nav-toggle:focus{outline:2px solid rgba(255,255,255,0.18);outline-offset:2px}
.hamburger{
  display:inline-block;
  position:relative;
  width:22px;
  height:14px;
}
.hamburger::before,
.hamburger::after,
.hamburger span{
  content:'';
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background:#fff;
  border-radius:2px;
  transition:transform .2s,opacity .2s,top .2s;
}
.hamburger span{top:6px}
.hamburger::before{top:0}
.hamburger::after{top:12px}
/* transform when open: simple fade/rotate */
.nav.open + .nav-toggle .hamburger span{opacity:0}
.nav.open + .nav-toggle .hamburger::before{transform:translateY(6px) rotate(45deg)}
.nav.open + .nav-toggle .hamburger::after{transform:translateY(-6px) rotate(-45deg)}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius:10px;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.25);
  border: 2px solid #fff; /* Add this line for a white border */
  margin-top: 350px; /* Add this line to move the image down */
}
.lightbox.active {
  display: flex;
}


/* Footer */
footer{background:#000;color:#ddd;min-height:20vh}
footer .bold{padding:24px 0 24px 24px; font-weight :bold}
footer .inner{padding:0 0 30px 24px}
footer a{color:#fff;text-decoration:underline}
/* Forms */
label{display:block;margin:8px 0 6px 0;color:#fff}
input,textarea{width:100%;padding:10px;border-radius:6px;border:1px solid #ccc;font:inherit;background:#fff}
button.btn{display:inline-block;background:#000;color:#fff;border:0;padding:12px 16px;border-radius:6px;cursor:pointer}
button.btn:hover{opacity:.9}

/* Explicitly hide the nav-toggle on larger screens to avoid stray icon artifacts */
@media (min-width:701px) {
  .nav-toggle{display:none !important}
}

/* Ensure hamburger is visible on small screens (override ordering) */
@media (max-width:700px) {
  .nav-toggle{display:inline-block !important}
}

