/* ============================================================
   Light Design Knoxville — site styles
   Hand-written; no Elementor / Astra / plugin CSS.
   ============================================================ */

/* ---------- Fonts (Outfit, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-300-latin.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy:  #00172B;
  --cream: #FFFCF2;
  --peach: #FFC89D;
  --navy-80: rgba(0, 23, 43, .8);
  --radius-lg: 30px;
  --radius-sm: 8px;
  --gutter: 60px;
  --maxw: 1400px;
  --shadow-tile: 0 0 10px rgba(0, 0, 0, .47);
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 125%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;          /* 20px */
  font-weight: 400;
  line-height: 1.65;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-transform: capitalize; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .4rem 1.4rem;
  font-size: .9rem;         /* 18px */
  font-weight: 300;
  line-height: 1.33;
  text-transform: capitalize;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
  font-family: inherit;
}
.btn--solid { background: var(--navy); color: var(--cream); }
.btn--solid:hover { background: #002a4d; }
.btn--light  { background: var(--cream); color: var(--navy); }
.btn--light:hover { background: var(--peach); }
.btn--outline { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--outline:hover { background: var(--cream); color: var(--navy); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--cream);
  padding: .5rem 1rem; border-radius: var(--radius-sm); text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 2px 14px rgba(0, 23, 43, .12); }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .4rem var(--gutter) 0;
  max-width: var(--maxw); margin-inline: auto;
}
.topbar__note { font-size: .7rem; opacity: .75; }
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 10px var(--gutter);
  max-width: var(--maxw); margin-inline: auto;
}
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { width: 117px; height: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 300; color: var(--peach);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  font-family: inherit; padding: .25rem 0;
}
.nav__link:hover { color: var(--navy); }
.nav__chevron { width: .55em; height: .4em; transition: transform .2s ease; }
.nav__item--has-menu[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

.submenu {
  position: absolute; margin-top: .5rem; min-width: 250px;
  background: var(--cream); border-radius: var(--radius-sm);
  box-shadow: 0 6px 26px rgba(0, 23, 43, .16);
  padding: .5rem 0; display: none;
}
.nav__item { position: relative; }
.nav__item.is-open .submenu { display: block; }
.submenu a {
  display: block; padding: .45rem 1.1rem;
  font-size: .78rem; font-weight: 300; color: var(--navy); text-decoration: none;
}
.submenu a:hover { background: rgba(0, 23, 43, .06); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; margin: 5px 0;
  background: var(--navy); transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex; align-items: center;
  padding: 4rem 3rem;
  background: var(--navy) url("../images/hero-1920x1080.jpg") center center / cover no-repeat;
  color: var(--cream);
}
/* Flat navy wash over the photo, matching the original 45% overlay. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: var(--navy); opacity: .45;
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin-inline: auto; width: 100%;
  animation: fade-up 1s ease both;
}
.hero__title {
  font-size: 2.5rem;          /* 50px */
  line-height: 1.2;
  font-weight: 400;
  max-width: 960px;
  margin-bottom: 1.6rem;
}
.hero__sub {
  font-style: italic; font-size: 1rem; margin-bottom: 1.7rem;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Section rhythm ---------- */
.section { padding-block: 70px; }
.section__title { font-size: 2.2rem; line-height: 1.16; }
.rule {
  height: 2px; background: var(--navy); border: 0;
  margin: 1.1rem 0 1.4rem; max-width: 935px;
}
.rule--light { background: var(--peach); }

/* ---------- Service tiles ---------- */
.tiles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 2rem;
}
.tile {
  position: relative; display: grid; place-items: center;
  min-height: 350px; padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-tile);
  background-size: cover; background-position: center;
  text-decoration: none; color: var(--cream);
  overflow: hidden; isolation: isolate;
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0, 23, 43, .38);
  transition: background .25s ease;
}
.tile:hover::after { background: rgba(255, 200, 157, .34); }
.tile__label {
  font-size: 3rem; font-weight: 300; line-height: 44px; text-align: center;
}
.tiles-cta { display: flex; justify-content: center; margin-top: 2.4rem; }

/* ---------- Navy card (What is a Smart Home) ---------- */
.card-navy {
  background: var(--navy); color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  max-width: var(--maxw); margin-inline: auto;
}
.card-navy .rule { background: var(--cream); max-width: 300px; }
.card-navy__body { max-width: 62ch; margin-bottom: 1.6rem; font-size: .8rem; }

/* ---------- Lifestyle band ---------- */
.band {
  position: relative; overflow: hidden;
  background: #7c8288;
  color: var(--cream);
  padding-block: 133px;
}
.band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(closest-side at 62% 55%, rgba(255,252,242,.34) 0%, rgba(255,252,242,0) 72%);
}
.band > * { position: relative; }
.band .rule { background: var(--peach); }
.band__body { max-width: 74ch; }
.band__body p + p { margin-top: 1rem; }
.band .btn { margin-top: 1.8rem; }

/* ---------- About ---------- */
.about { padding-block: 100px; }
.about__grid {
  display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.about__media img { width: 100%; height: auto; border-radius: 6px; }
.about__placeholder {
  display: grid; place-items: center; aspect-ratio: 4/5;
  border: 1px dashed rgba(0,23,43,.3); border-radius: 6px;
  background: rgba(0,23,43,.04);
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .55;
}
.about__eyebrow {
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--peach); margin-bottom: .5rem;
}
.about__title { font-size: 1.6rem; font-weight: 300; margin-bottom: 1.1rem; }

/* ---------- Contact ---------- */
.contact { padding-block: 8px 24px; }
.contact__title { font-size: 1.8rem; font-weight: 300; }
.contact__intro { margin: .4rem 0 1.1rem; }
.form { max-width: 34rem; }
.form__field { margin-bottom: .75rem; }
.form label { display: block; margin-bottom: .4rem; }
.form input[type="email"] {
  width: 100%; padding: .7rem .85rem; font: inherit; color: var(--navy);
  background: #fff; border: 1px solid rgba(0,23,43,.25); border-radius: 4px;
}
.form input[type="email"]:focus-visible { border-color: #198567; outline-color: #198567; }
.form__help { margin-top: .3rem; font-size: .7rem; opacity: .7; }
.form__status { margin-top: .5rem; min-height: 1.1em; font-size: .8rem; }
.form__status.is-error { color: #b3261e; }
.form__alt { margin-top: .8rem; font-size: .8rem; opacity: .8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--cream); padding: 64px var(--gutter); }
.site-footer__inner {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; align-items: start;
}
.site-footer img { width: 243px; height: auto; }
.footer-heading { font-size: 1.5rem; margin-bottom: .8rem; }
.footer-list li { margin-bottom: .35rem; }
.footer-list a { font-size: .8rem; font-weight: 300; text-decoration: none; opacity: .9; }
.footer-list a:hover { color: var(--peach); }
.footer-address { font-size: .85rem; }
.site-footer__legal {
  max-width: var(--maxw); margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,252,242,.18); font-size: .7rem; opacity: .8;
}

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed; right: 25px; bottom: 25px; z-index: 120;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--navy); color: var(--cream);
  border: 0; border-radius: 50%; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease, background .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--peach); color: var(--navy); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .brand img { width: 104px; }
  .site-footer img { width: 190px; }
  .hero__title { font-size: 2.1rem; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 5rem 1.5rem 2rem;
    background: var(--cream); box-shadow: -8px 0 30px rgba(0,23,43,.2);
    transform: translateX(100%); transition: transform .25s ease; z-index: 150;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { color: var(--navy); padding: .7rem 0; font-size: .9rem; justify-content: space-between; }
  .submenu { position: static; display: none; box-shadow: none; padding-left: .8rem; }
  .nav__item.is-open .submenu { display: block; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(0,23,43,.5);
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; z-index: 140;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  .tiles { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero__title { font-size: 1.75rem; }
  .section__title, .band .section__title { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
