/* Pacific Northwest Log Home Aesthetic — Dark Edition */
:root{
  /* Dark, Rich Color Palette */
  --bg: #0D0D0D;           /* rich black - like charred wood */
  --bg-alt: #141414;       /* slightly lifted dark surface */
  --text: #C8B98A;         /* warm beige - consistent throughout */
  --muted: #C8B98A;        /* warm beige/wheat - secondary text */
  --card: #1C1C1C;         /* dark card surface */

  /* Rich Accent Colors */
  --accent: #B85C38;       /* warm rust/cedar - sunset on logs */
  --accent-hover: #A04D2C; /* deeper rust on hover */
  --forest: #2C5530;       /* deep forest green - PNW evergreens */
  --forest-light: #4A8F54; /* lighter forest for dark-bg headings */
  --burgundy: #8B3A3A;     /* rich burgundy - autumn leaves */

  /* Borders & Shadows - dark mode depth */
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --shadow-sm: 0 4px 12px rgba(0,0,0,.4);
  --shadow: 0 12px 32px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.65);

  /* Design Elements */
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1160px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fonts loaded via <link> in HTML for better performance */

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{height:100%}

body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  font-size:16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6{
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1{font-size: clamp(36px, 5vw, 58px); font-weight: 900; margin: 0}
h2{font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin: 0}
h3{font-size: clamp(20px, 3vw, 26px); font-weight: 700; margin: 0}

p{margin: 0 0 1em 0; line-height: 1.7}

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

a{
  color:inherit;
  text-decoration:none;
  transition: color var(--transition), opacity var(--transition);
}
a:hover{opacity: 0.85}

.container{width:min(var(--max), calc(100% - 32px)); margin:0 auto}

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{left:16px; top:16px; width:auto; height:auto; padding:10px 12px; background:#fff; border:1px solid var(--border); border-radius:12px; z-index:9999}

.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0}

/* Header - Premium & Elevated */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter:saturate(1.3) blur(20px);
  background:rgba(13,13,13,.96);
  border-bottom:1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.5);
  transition: all var(--transition);
}

.topbar{
  background: var(--forest);
  border-bottom:1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.95);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:16px;
}

.topbar-right{display:flex; align-items:center; gap:16px}

.toplink{
  font-size:14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}
.toplink:hover{color: #EDE8E0; opacity: 1}

.social img{
  opacity:.9;
  transition: opacity var(--transition);
  filter: brightness(0) invert(1);
}
.social:hover img{opacity:1}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
  gap:20px;
}

.brand img{
  width:260px;
  max-width:52vw;
  transition: transform var(--transition);
}
.brand:hover img{transform: scale(1.02)}

.site-nav{
  display:flex;
  align-items:center;
  gap:24px;
}

.site-nav a{
  font-weight:600;
  font-size:15px;
  font-family: 'Inter', sans-serif;
  position: relative;
  padding: 6px 0;
  color: var(--muted);
}

.site-nav a:not(.btn):hover{
  color: #EDE8E0;
  opacity: 1;
}

.site-nav a:not(.btn):after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--forest);
  transition: width var(--transition), left var(--transition);
}

.site-nav a:not(.btn):hover:after{
  width: 100%;
  left: 0;
}

.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background:var(--card);
  border-radius:var(--radius);
  padding:12px 14px;
  box-shadow:var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.nav-toggle:hover{box-shadow:var(--shadow)}

.nav-toggle-lines{display:block; width:22px; height:2px; background:var(--forest); position:relative; transition: background var(--transition)}
.nav-toggle-lines:before,.nav-toggle-lines:after{content:""; position:absolute; left:0; width:22px; height:2px; background:var(--forest); transition: all var(--transition)}
.nav-toggle-lines:before{top:-7px}
.nav-toggle-lines:after{top:7px}

/* Buttons - Warm & Inviting */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 28px;
  border-radius:var(--radius);
  font-weight:700;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  border:2px solid transparent;
  text-decoration:none;
  cursor:pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn:hover{
  text-decoration:none;
  transform:translateY(-2px);
  opacity: 1;
}

.btn-primary{
  background: var(--accent);
  color:#fff;
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.btn-primary:hover{
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-lg);
}

.btn-ghost{
  background:transparent;
  border-color:rgba(255,255,255,.5);
  color:#fff;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.7);
}

/* Hero - Immersive & Dramatic */
.hero{
  position:relative;
  min-height:680px;
  display:grid;
  align-items: center;
}

.hero-media{
  position:absolute;
  inset:0;
  overflow:hidden;
}

.hero-media:after{
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(44,85,48,.15) 0%, transparent 60%),
    url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjciIG51bU9jdGF2ZXM9IjMiLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIC4wMyAwIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIiBvcGFjaXR5PSIuNSIvPjwvc3ZnPg==');
  background-size: cover, 200px;
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 1200ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05);
}

.hero-img.is-active{
  opacity:1;
  animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    /* Strong left-side gradient for text readability */
    linear-gradient(100deg,
      rgba(18,18,18,.85) 0%,
      rgba(18,18,18,.65) 35%,
      rgba(44,85,48,.40) 55%,
      rgba(44,85,48,.25) 70%,
      transparent 100%
    ),
    /* Subtle vignette for depth */
    radial-gradient(ellipse at center, transparent 0%, rgba(18,18,18,.20) 100%);
  z-index: 1;
}

.hero-content{
  position:relative;
  padding:120px 0 80px 0;
  z-index: 2;
  max-width: 720px;
}

.kicker{
  display:inline-block;
  padding:8px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  color:#fff;
  font-weight:700;
  font-size:13px;
  letter-spacing:.8px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.2);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.hero h1{
  margin:24px 0 18px 0;
  color:#fff;
  line-height:1.1;
  letter-spacing:-.02em;
  text-shadow: 0 4px 24px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.2);
  font-weight: 900;
}

.lead{
  color:rgba(255,255,255,.95);
  max-width:56ch;
  font-size:19px;
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  font-weight: 400;
}

.hero-cta{
  display:flex;
  gap:14px;
  margin-top:32px;
  flex-wrap:wrap;
}

.trustbar{
  margin-top:48px;
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.trust{
  background:rgba(255,255,255,.96);
  padding:12px 16px;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: all var(--transition);
}

.trust:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.trust img{height:48px; width:auto}

.trust-text{
  color:#fff;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.trust-title{
  font-weight:800;
  font-family: 'Merriweather', serif;
  font-size: 16px;
}

.trust-sub{
  color:rgba(255,255,255,.9);
  font-size:14px;
  margin-top: 2px;
}

/* Sections - Generous Spacing */
.section{
  padding:100px 0;
  position: relative;
}

.section-alt{
  background:var(--bg-alt);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

/* Optional: Add subtle wood texture to alternating sections */
.section-alt:before{
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAwIiBoZWlnaHQ9IjQwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZmlsdGVyIGlkPSJub2lzZSI+PGZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9Ii44NSIgbnVtT2N0YXZlcz0iNCIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNub2lzZSkiIG9wYWNpdHk9Ii4wMiIvPjwvc3ZnPg==');
  opacity: 0.5;
  pointer-events: none;
}

.section-head{
  margin-bottom:48px;
  max-width: 800px;
}

.section-head h2{
  margin:0 0 16px 0;
  color: var(--accent);
}

.section-head p{
  margin:0;
  color:var(--muted);
  max-width:70ch;
  font-size: 18px;
  line-height: 1.7;
}

.grid{
  display:grid;
  gap:24px;
}

.cards{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:32px;
  box-shadow:var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card:before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--forest) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
  border-color: var(--border-strong);
}

.card:hover:before{
  opacity: 1;
}

.card h3{
  margin:0 0 12px 0;
  color: var(--accent);
  font-size: 22px;
}

.card p{
  margin:0;
  color:var(--muted);
  line-height: 1.7;
}

.gallery{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.shot{
  margin:0;
  overflow:hidden;
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  background: var(--card);
  box-shadow:var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.shot:hover{
  transform:translateY(-6px) scale(1.02);
  box-shadow:var(--shadow-lg);
  border-color: var(--border-strong);
}

.shot img{
  width:100%;
  height:280px;
  object-fit:cover;
  transition: transform var(--transition-slow);
}

.shot:hover img{
  transform: scale(1.08);
}

.shot figcaption{
  padding:16px 18px;
  color:var(--muted);
  font-size:15px;
  font-weight: 600;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.3) 100%);
}

.note{
  margin-top:24px;
  color:var(--muted);
  font-size: 15px;
}

.note code{
  background:rgba(184,92,56,.18);
  color: var(--accent);
  padding:3px 8px;
  border-radius:6px;
  font-size: 14px;
  font-weight: 600;
}

.split{
  display:grid;
  grid-template-columns:1.4fr .9fr;
  gap:48px;
  align-items:start;
}

.split > div > h2{
  margin-bottom: 20px;
  color: var(--muted);
}

.split > div > p{
  color: var(--muted);
}

.bullets{
  margin:20px 0 0 0;
  padding-left:24px;
  color:var(--muted);
}

.bullets li{
  margin:12px 0;
  line-height: 1.6;
}

.callout{
  margin-top:32px;
  border-left:5px solid var(--accent);
  padding:24px 28px;
  background:linear-gradient(135deg, rgba(184,92,56,.18) 0%, rgba(184,92,56,.10) 100%);
  border-radius:var(--radius);
  box-shadow: var(--shadow-sm);
}

.callout h3{
  margin:0 0 10px 0;
  color: var(--accent);
}

.callout p{
  margin:0;
  color:var(--muted);
  line-height: 1.7;
}

.contact-card{
  position:sticky;
  top:120px;
  background: var(--forest);
  color: var(--muted);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-card h3{
  color: var(--muted);
  margin-bottom: 8px;
}

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

.contact-card .kv{
  display:grid;
  grid-template-columns:80px 1fr;
  gap:14px 16px;
  margin:24px 0 28px 0;
}

.contact-card .k{
  color: var(--muted);
  font-weight:700;
  font-size:14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}

.contact-card .v{
  color: var(--muted);
  font-weight: 600;
}

.contact-card .v a{
  font-weight:700;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(200,185,138,.3);
  text-decoration-thickness: 2px;
  transition: all var(--transition);
}

.contact-card .v a:hover{
  text-decoration-color: rgba(200,185,138,.8);
  opacity: 1;
}

.contact-grid{
  grid-template-columns:1fr 1fr;
}

.contact-reach{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 16px 0;
}

.contact-reach h3{
  margin: 0;
  font-size: 30px;
  color: var(--muted);
}

.contact-reach-btns{
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.form{
  background: var(--card);
}

.form h3{
  margin-bottom: 8px;
}

.form label{
  display:grid;
  gap:8px;
  margin:18px 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

input, textarea{
  width:100%;
  padding:14px 16px;
  border-radius:var(--radius);
  border:2px solid var(--border);
  background: var(--card);
  color: var(--text);
  font:inherit;
  font-size: 15px;
  transition: all var(--transition);
}

input:focus, textarea:focus{
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(44,85,48,.1);
}

input::placeholder, textarea::placeholder{
  color: var(--muted);
  opacity: 0.6;
}

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

.form .btn{
  margin-top: 8px;
}

.fineprint{
  margin:14px 0 0 0;
  color:var(--muted);
  font-size:14px;
  line-height: 1.6;
}

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

/* Footer - Grounded & Natural */
.site-footer{
  padding:60px 0 40px 0;
  background: var(--forest);
  color: var(--muted);
  border-top: 4px solid var(--accent);
}

.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}

.footer-inner strong{
  font-family: 'Merriweather', serif;
  font-size: 20px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

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

.footer-links{
  display:flex;
  gap:24px;
  flex-wrap:wrap;
}

.footer-links a{
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  transition: color var(--transition);
}

.footer-links a:hover{
  color: #EDE8E0;
  opacity: 1;
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 920px){
  .section{padding: 70px 0}

  .cards{grid-template-columns:repeat(2, minmax(0, 1fr))}
  .gallery{grid-template-columns:repeat(2, minmax(0, 1fr))}

  .split{grid-template-columns:1fr; gap: 32px}

  .contact-card{
    position:static;
    margin-top: 32px;
  }

  .contact-grid{grid-template-columns:1fr}

  .hero{min-height:600px}
  .hero-content{padding:100px 0 60px 0}

  .trustbar{margin-top: 36px; gap: 14px}
  .trust img{height: 42px}
}

@media (max-width: 720px){
  .section{padding: 50px 0}
  .section-head{margin-bottom: 32px}
  .section-head h2{margin-bottom: 12px}

  .topbar-inner{
    flex-direction:column;
    align-items:flex-start;
    gap: 8px;
  }

  .nav-toggle{display:inline-flex}

  .site-nav{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background:rgba(13,13,13,.99);
    backdrop-filter: blur(20px);
    border-bottom:1px solid var(--border);
    padding:20px 16px;
    flex-direction:column;
    align-items:flex-start;
    box-shadow: var(--shadow);
  }

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

  .site-nav a{
    padding:12px 0;
    width: 100%;
    font-size: 16px;
  }

  .site-nav a:not(.btn):after{display: none}

  .site-nav .btn{
    width: 100%;
    margin-top: 8px;
  }

  .hero{min-height:560px}
  .hero-content{
    padding:80px 0 50px 0;
    max-width: 100%;
  }

  .hero-cta{margin-top: 24px}
  .hero-cta .btn{width: 100%; justify-content: center}

  .trustbar{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 32px;
  }

  .trust-text{
    width: 100%;
  }

  .cards{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr}

  .card{padding: 24px}

  .shot img{height: 240px}

  .contact-card{
    padding: 32px 24px;
  }

  .contact-card .kv{
    grid-template-columns: 1fr;
    gap: 8px 0;
    margin: 20px 0 24px 0;
  }

  .contact-card .k{
    font-size: 12px;
    margin-top: 12px;
  }

  .footer-inner{
    flex-direction: column;
    gap: 24px;
  }

  .footer-links{
    flex-direction: column;
    gap: 12px;
  }
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-header{
  margin-bottom: 16px;
}

.testimonial-header h3{
  margin: 0 0 8px 0;
  font-size: 20px;
  color: var(--accent);
}

.testimonial-meta{
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px){
  .container{width: calc(100% - 24px)}

  .hero{min-height: 500px}
  .hero-content{padding: 60px 0 40px 0}

  .kicker{font-size: 12px; padding: 6px 12px}

  .lead{font-size: 17px}

  .section{padding: 40px 0}
  .section-head{margin-bottom: 24px}

  .card{padding: 20px}

  .callout{padding: 20px; margin-top: 24px}

  .contact-card{padding: 24px 20px}
}

/* ============================================
   Gallery Filter Tabs
   ============================================ */
.gallery-filters{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn{
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid rgba(200,185,138,.3);
  background: var(--card);
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover{
  border-color: var(--muted);
  color: #EDE8E0;
  background: rgba(200,185,138,.1);
}

.filter-btn.is-active{
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(184,92,56,.35);
}

@media (max-width: 480px){
  .filter-btn{ font-size: 13px; padding: 7px 14px; }
}
