/* Overland Remodeling — site chrome and shared components.
   Page content itself lives in each page's own code-block <style>; this file only provides
   the base those blocks were designed against, plus header/footer/blog/gallery/form. */

:root {
  --ov-black: #181A1B;
  --ov-dark: #1E1F1F;
  --ov-cream: #F4EFE6;
  --ov-gold: #BA924D;
  --ov-muted: #999085;
  --ov-soft: #B8AEA2;
  --ov-line: rgba(244, 239, 230, 0.14);
  --ov-serif: "Cormorant Garamond", Georgia, serif;
  --ov-sans: "DM Sans", Arial, sans-serif;
  --header-h: 116px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--ov-black);
  color: var(--ov-cream);
  font-family: var(--ov-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
main { display: block; }
.code-block { width: 100%; }
.code-block::after { content: ""; display: table; clear: both; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:not(:focus) { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap; }
.skip-link:focus { position: absolute; left: 12px; top: 12px; z-index: 100; background: var(--ov-gold); color: var(--ov-black); padding: 10px 16px; text-decoration: none; font-size: 14px; }
:focus-visible { outline: 2px solid var(--ov-gold); outline-offset: 3px; }

/* ---------------------------------------------------------------- header */

.site-header { background: var(--ov-black); position: relative; z-index: 50; }
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  padding: 8px 30px;
}
.site-logo { display: block; justify-self: start; line-height: 0; }
.site-logo img { width: 276px; height: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 4px; }
.site-nav a, .site-nav button {
  font-family: var(--ov-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ov-cream);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 10px 8px;
  cursor: pointer;
  transition: color .3s ease;
}
.site-nav a:hover, .site-nav button:hover, .site-nav [aria-current="page"], .site-nav .is-current > button { color: var(--ov-gold); }
.site-nav .has-sub { position: relative; }
.site-nav .has-sub > ul {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: var(--ov-dark);
  border: 1px solid var(--ov-line);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}
.site-nav .has-sub > ul a { display: block; padding: 10px 22px; font-size: 12px; white-space: nowrap; }
.site-nav .has-sub:hover > ul, .site-nav .has-sub:focus-within > ul, .site-nav .has-sub.is-open > ul { opacity: 1; visibility: visible; }
.site-nav__phone { display: none; }

.site-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; justify-self: end; }
.site-social a { color: var(--ov-cream); display: block; line-height: 0; transition: color .3s ease; }
.site-social a:hover { color: var(--ov-gold); }

.nav-toggle { display: none; }

@media (max-width: 1100px) {
  :root { --header-h: 84px; }
  .site-header__inner { grid-template-columns: 1fr auto; padding: 8px 20px; }
  .site-logo img { width: 210px; }
  .site-social { display: none; }
  .nav-toggle {
    display: block;
    width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer;
    position: relative;
  }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
    position: absolute; left: 10px; width: 24px; height: 1.5px; background: var(--ov-cream); content: ""; transition: transform .25s ease, opacity .25s ease;
  }
  .nav-toggle span:first-child { top: 21px; }
  .nav-toggle span:first-child::before { left: 0; top: -7px; }
  .nav-toggle span:first-child::after { left: 0; top: 7px; }
  .nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
  .nav-toggle[aria-expanded="true"] span:first-child::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    padding: 8px 0 24px;
    border-top: 1px solid var(--ov-line);
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--ov-line); }
  .site-nav a, .site-nav button { display: block; width: 100%; text-align: left; padding: 16px 4px; font-size: 14px; }
  .site-nav .has-sub > button::after { content: "+"; float: right; color: var(--ov-gold); }
  .site-nav .has-sub.is-open > button::after { content: "–"; }
  .site-nav .has-sub > ul { position: static; transform: none; opacity: 1; visibility: visible; display: none; border: 0; background: none; padding: 0 0 10px 14px; min-width: 0; }
  .site-nav .has-sub.is-open > ul { display: block; }
  .site-nav .has-sub:hover > ul { display: none; }
  .site-nav .has-sub.is-open:hover > ul { display: block; }
  .site-nav .has-sub > ul a { padding: 10px 4px; font-size: 13px; }
  .site-nav__phone { display: block; margin-top: 18px; color: var(--ov-gold) !important; font-size: 15px !important; letter-spacing: 2px; }
}

/* ---------------------------------------------------------------- footer */

.overland-footer { background: var(--ov-black); color: var(--ov-cream); padding: 72px 56px 34px; border-top: 1px solid var(--ov-line); font-family: var(--ov-sans); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 44px; margin-bottom: 72px; }
.footer-brand__name { font-family: var(--ov-serif) !important; font-size: 26px !important; line-height: 1.2 !important; font-weight: 400 !important; color: var(--ov-cream) !important; letter-spacing: .02em; margin: 0 0 22px !important; }
.footer-brand p, .footer-column p, .footer-column a {
  font-size: 15px; line-height: 1.7; font-weight: 300; color: #D8D0C4; margin: 0 0 10px; text-decoration: none;
}
.footer-column__title { font-size: 11px !important; line-height: 1 !important; font-weight: 600 !important; letter-spacing: 5px; text-transform: uppercase; color: var(--ov-gold) !important; margin: 0 0 28px !important; }
.footer-column a { display: block; transition: color .3s ease; }
.footer-column a:hover, .footer-column a:focus { color: var(--ov-cream); }
.footer-column__more { color: var(--ov-gold) !important; }
.footer-bottom { border-top: 1px solid rgba(244, 239, 230, .16); padding-top: 28px; display: flex; justify-content: space-between; gap: 30px; }
.footer-bottom p { font-size: 12px; line-height: 1.5; font-weight: 400; letter-spacing: .04em; color: #CFC7BC; margin: 0; }
.footer-bottom p:last-child { color: #D6AD63; text-transform: uppercase; letter-spacing: 3px; font-size: 11px; font-weight: 600; }
@media (max-width: 1180px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .overland-footer { padding: 56px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; margin-bottom: 56px; }
  .footer-bottom { flex-direction: column; gap: 14px; }
}

/* ---------------------------------------------------------------- shared bits */

.ov-band__eyebrow { font-size: 13px; letter-spacing: 4.5px; text-transform: uppercase; color: var(--ov-gold); margin: 0 0 18px; font-weight: 500; }
.ov-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px;
  background: var(--ov-gold); color: var(--ov-black) !important; border: 1px solid var(--ov-gold);
  font-size: 13px; letter-spacing: 3.3px; text-transform: uppercase; text-decoration: none !important; font-weight: 500;
  transition: transform .3s ease;
}
.ov-button:hover { transform: translateY(-2px); }
.ov-button--ghost { background: transparent; color: var(--ov-gold) !important; }
.ov-button-row { text-align: center; margin: 36px 0; }

/* Rich text (blog bodies, text blocks between project galleries) */
.ov-text { max-width: 1040px; margin: 0 auto; padding: 0 40px; color: var(--ov-cream); font-size: 17px; line-height: 1.7; }
.ov-text h1, .ov-text h2, .ov-text h3, .ov-text h4 { font-family: var(--ov-serif); font-weight: 400; line-height: 1.15; color: var(--ov-cream); margin: 1.6em 0 .6em; }
.ov-text h2 { font-size: clamp(32px, 3.4vw, 44px); }
.ov-text h3 { font-size: clamp(26px, 2.6vw, 34px); }
.ov-text h4 { font-size: 24px; }
.ov-text p { margin: 0 0 1em; }
.ov-text a { color: var(--ov-gold); }
.ov-text strong { font-weight: 600; }
.ov-text ul, .ov-text ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.ov-text li p { margin: 0 0 .4em; }
.ov-text blockquote { border-left: 2px solid var(--ov-gold); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; font-family: var(--ov-serif); font-size: 1.35em; }
.type-page .ov-text { padding-top: 60px; padding-bottom: 60px; }
.ov-figure { max-width: 1040px; margin: 32px auto; padding: 0 40px; }
.ov-figure img { display: block; width: 100%; }
.ov-figure figcaption { color: var(--ov-muted); font-size: 14px; margin-top: 10px; }

/* ---------------------------------------------------------------- blog post */

.post { padding: 30px 0 80px; }
.post__header { max-width: 1040px; margin: 0 auto 40px; padding: 0 40px; }
.post__meta { font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 22px; color: var(--ov-soft); }
.post__meta a { color: var(--ov-gold); text-decoration: none; }
.post__header h1 { font-family: var(--ov-serif); font-weight: 400; font-size: clamp(40px, 5vw, 66px); line-height: 1.08; letter-spacing: -.01em; margin: 0 0 18px; }
.post__author { margin: 0; color: var(--ov-soft); font-size: 15px; }
.post__author a { color: var(--ov-cream); }
.post__body .ov-text:first-child h2:first-child { margin-top: 0; }
@media (max-width: 640px) {
  .post__header, .ov-text, .ov-figure { padding-left: 20px; padding-right: 20px; }
}

/* ---------------------------------------------------------------- blog index */

.bloglist { max-width: 1240px; margin: 0 auto; padding: 60px 40px 100px; }
.bloglist__header { max-width: 760px; margin-bottom: 56px; }
.bloglist__header h1 { font-family: var(--ov-serif); font-weight: 300; font-size: clamp(44px, 5.5vw, 76px); line-height: 1.02; margin: 0 0 22px; }
.bloglist__header p:last-child { color: var(--ov-soft); font-size: 18px; margin: 0; }
.bloglist__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 36px; }
.bloglist__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ov-dark); margin-bottom: 20px; }
.bloglist__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bloglist__item:hover .bloglist__img img { transform: scale(1.04); }
.bloglist__date { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ov-muted); margin: 0 0 10px; }
.bloglist__item h2 { font-family: var(--ov-serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 0 0 12px; }
.bloglist__item h2 a { text-decoration: none; }
.bloglist__item p { color: var(--ov-soft); font-size: 15px; margin: 0 0 14px; }
.bloglist__more { color: var(--ov-gold); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; }
@media (max-width: 980px) { .bloglist__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bloglist { padding: 40px 20px 72px; } .bloglist__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- project galleries */

.ov-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px; }
.ov-gallery__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ov-dark); cursor: zoom-in; }
.ov-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s ease; }
.ov-gallery__item:hover img { transform: scale(1.03); }
@media (max-width: 768px) { .ov-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; } }

.ov-portfolio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px; }
.ov-portfolio__item { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ov-dark); text-decoration: none; }
.ov-portfolio__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ov-portfolio__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(24,26,27,.85), rgba(24,26,27,0) 55%); }
.ov-portfolio__title { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; font-family: var(--ov-serif); font-size: 28px; line-height: 1.15; color: var(--ov-cream); }
.ov-portfolio__item:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .ov-portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ov-portfolio { grid-template-columns: 1fr; } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12, 12, 13, .96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--ov-cream); font-size: 38px; line-height: 1; padding: 16px; cursor: pointer; font-family: var(--ov-sans); font-weight: 300; }
.lightbox button:hover { color: var(--ov-gold); }
.lightbox__close { top: 10px; right: 14px; }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox img { max-width: 100vw; } .lightbox__prev, .lightbox__next { top: auto; bottom: 10px; transform: none; } }

/* ---------------------------------------------------------------- contact form */

.ov-form-wrap { max-width: 820px; margin: 0 auto; padding: 40px 40px 80px; }
.ov-form label { display: block; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ov-soft); margin-bottom: 22px; font-weight: 500; }
.ov-form label span { color: var(--ov-gold); }
.ov-form input, .ov-form select, .ov-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 14px 16px;
  background: var(--ov-dark); color: var(--ov-cream); border: 1px solid var(--ov-line); border-radius: 0;
  font: 400 16px/1.5 var(--ov-sans); letter-spacing: 0; text-transform: none;
}
.ov-form input:focus, .ov-form select:focus, .ov-form textarea:focus { border-color: var(--ov-gold); outline: none; }
.ov-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.ov-form__hp { position: absolute; left: -9999px; }
.ov-form button { min-height: 56px; padding: 0 40px; background: var(--ov-gold); color: var(--ov-black); border: 0; font: 500 13px var(--ov-sans); letter-spacing: 3.3px; text-transform: uppercase; cursor: pointer; }
.ov-form button[disabled] { opacity: .6; cursor: wait; }
.ov-form__status { margin: 18px 0 0; font-size: 16px; color: var(--ov-cream); }
.ov-form__status.is-error { color: #E7A37A; }
@media (max-width: 640px) { .ov-form-wrap { padding: 32px 20px 64px; } .ov-form__row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- internal-link bands */

.ov-band { border-top: 1px solid var(--ov-line); padding: 80px 40px; max-width: 1400px; margin: 0 auto; }
.ov-band__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.ov-band ul { list-style: none; margin: 0; padding: 0; }
.ov-band li a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(186, 146, 77, .25); color: var(--ov-soft); text-decoration: none; transition: color .3s ease; }
.ov-band li a:hover { color: var(--ov-cream); }
.ov-band__all { margin: 36px 0 0; }
.ov-band__all a, .ov-band__service a { color: var(--ov-gold); }
.ov-band__all a { text-decoration: none; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.ov-band__head { margin-bottom: 36px; }
.ov-band__head h2 { font-family: var(--ov-serif); font-weight: 300; font-size: clamp(36px, 4vw, 56px); line-height: 1.05; margin: 0; }
.ov-band__service { font-size: 18px; color: var(--ov-soft); margin: 0 0 48px; }
.ov-band__areas { margin-top: 64px; }
.ov-band__areas ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; }
.ov-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.ov-card { display: flex; flex-direction: column; gap: 12px; padding: 30px; background: var(--ov-dark); border: 1px solid var(--ov-line); text-decoration: none; transition: border-color .3s ease, transform .3s ease; }
.ov-card:hover { border-color: var(--ov-gold); transform: translateY(-2px); }
.ov-card__title { font-family: var(--ov-serif); font-size: 26px; line-height: 1.15; color: var(--ov-cream); }
.ov-card__text { color: var(--ov-soft); font-size: 15px; flex: 1; }
.ov-card__more { color: var(--ov-gold); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
@media (max-width: 640px) { .ov-band { padding: 60px 20px; } }

.overland-area-all { margin: 32px 0 0; }
.overland-area-all a, .overland-area-list a { transition: color .3s ease; }
.overland-area-all a { color: var(--ov-gold) !important; text-decoration: none; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.overland-area-list a:hover { color: var(--ov-cream) !important; }

/* ---------------------------------------------------------------- areas hub */

.hub { padding-bottom: 60px; }
.hub__hero { padding: 110px 52px 90px; border-bottom: 1px solid var(--ov-gold); background: radial-gradient(circle at 20% 55%, rgba(186,146,77,.14), rgba(24,26,27,0) 40%), var(--ov-black); }
.hub__hero h1 { font-family: var(--ov-serif); font-weight: 300; font-size: clamp(52px, 6vw, 92px); line-height: .98; letter-spacing: -.035em; margin: 0 0 30px; }
.hub__hero h1 em { color: var(--ov-gold); }
.hub__hero > p { max-width: 780px; font-size: 18px; line-height: 1.75; margin: 0; }
.hub__hero .ov-band__eyebrow { margin-bottom: 26px; }
.hub__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px !important; }
.hub__group { padding: 80px 52px 0; }
.hub__group h2 { font-family: var(--ov-serif); font-weight: 300; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.05; margin: 0 0 36px; }
.hub__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.hub__area { background: var(--ov-dark); border: 1px solid var(--ov-line); padding: 34px; }
.hub__area h3 { font-family: var(--ov-serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 0 0 14px; }
.hub__area h3 a { text-decoration: none; }
.hub__area h3 a:hover { color: var(--ov-gold); }
.hub__area p { color: var(--ov-soft); font-size: 15px; line-height: 1.7; margin: 0 0 20px; }
.hub__area ul { list-style: none; margin: 0; padding: 0; }
.hub__area li a { display: block; padding: 9px 0; border-top: 1px solid var(--ov-line); color: var(--ov-gold); text-decoration: none; font-size: 15px; }
.hub__area li a:hover { color: var(--ov-cream); }
.hub__services { display: flex; flex-wrap: wrap; gap: 12px; }
.hub__services a { border: 1px solid var(--ov-gold); color: var(--ov-gold); padding: 14px 24px; text-decoration: none; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; }
.hub__services a:hover { background: var(--ov-gold); color: var(--ov-black); }
@media (max-width: 640px) { .hub__hero { padding: 72px 20px 64px; } .hub__group { padding: 60px 20px 0; } .hub__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 404 */

.notfound { max-width: 760px; margin: 0 auto; padding: 100px 24px 120px; }
.notfound h1 { font-family: var(--ov-serif); font-weight: 300; font-size: clamp(44px, 5vw, 70px); line-height: 1.05; margin: 0 0 20px; }
.notfound p { color: var(--ov-soft); }
.notfound ul { list-style: none; padding: 0; }
.notfound li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--ov-line); color: var(--ov-gold); text-decoration: none; }
