@font-face {
  font-family: Farsan;
  src: url("assets/farsan.ttf") format("truetype");
  font-display: swap;
}

:root {
  color: #1b2b39;
  background: #fff;
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --blue: #245d87;
  --navy: #152f44;
  --accent: #087698;
  --ink: #1b2b39;
  --muted: #485866;
  --line: #d9e4eb;
  --soft-blue: #f3f8fb;
  --header-link: #c5e6f9;
  --radius: .8rem;
  --site-header-height: 8.5rem;
  scroll-padding-block-start: var(--site-header-height);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd { margin: 0; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid #d8892c; outline-offset: 3px; }
.wrap { width: min(1155px, 100% - 3rem); margin-inline: auto; }
.skip-link { position: fixed; top: .25rem; left: .25rem; padding: .5rem 1rem; background: white; transform: translateY(-150%); z-index: 11; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; inset-block-start: 0; z-index: 10; background: linear-gradient(110deg, #245d87, #1e4c6e); color: white; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 2vw, 1.5rem); padding-block: .75rem; }
.brand { flex: 0 0 auto; align-self: center; transform: scale(1.15); }
.site-header:has(+ main > .hero) .brand { align-self: end; transform: translateY(1.5rem) scale(1.15); transform-origin: center bottom; }
.brand img { width: clamp(10rem, 22vw, 212px); height: auto; }
.header-right { display: grid; justify-items: end; gap: .55rem; }
.call-line { color: var(--header-link); font-size: .875rem; font-weight: 400; text-transform: uppercase; }
.call-line a { text-decoration: none; white-space: nowrap; }
.call-line a:hover { text-decoration: underline; }
.menu-toggle { display: none; }
.main-nav { display: flex; align-items: center; gap: clamp(.45rem, .93vw, 1rem); color: var(--header-link); }
.main-nav > a { display: block; padding-block: .35rem; color: white; text-decoration: none; text-transform: uppercase; font-size: clamp(.875rem, 1.25vw, 1.07rem); font-weight: 600; white-space: nowrap; }
.main-nav > a:hover, .main-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
.nav-divider { font-weight: 400; }

.hero { position: relative; border-bottom: 4px solid var(--blue); background: #e3e9ed; }
.hero img { width: 100%; height: clamp(230px, 46.2vw, 750px); object-fit: cover; }
.home-slideshow { display: grid; }
.home-slideshow img { grid-area: 1 / 1; }
.home-slideshow .slide-entering { z-index: 1; }
.project-photo { filter: contrast(var(--photo-contrast, 1.01)) brightness(var(--photo-brightness, 1.03)) saturate(var(--photo-saturation, .86)) sepia(var(--photo-warmth, .055)); }
.photo-cool { --photo-warmth: .13; }
.photo-warm { --photo-warmth: 0; --photo-saturation: .76; }
.photo-shadow { --photo-contrast: .94; --photo-brightness: 1.12; }
.photo-haze { --photo-contrast: 1.15; --photo-brightness: .96; }
.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.section-heading { margin-bottom: clamp(1.6rem, 4vw, 3.25rem); text-align: center; }
.section-heading h1, h1.section-heading, .section-heading h2, h2.section-heading { font-size: clamp(2.15rem, 5vw, 3.45rem); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
.accent { color: var(--accent); font: 400 clamp(1.55rem, 2.5vw, 2rem)/1.15 Farsan, Georgia, serif; margin-bottom: .35rem; }
.service-area { margin: 1.1rem 0 0; }
.intro { max-width: 55rem; margin: 0 auto clamp(1.65rem, 4vw, 2.5rem); text-align: center; font-size: 1.125rem; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 1.8rem); }
.project-grid a { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; color: var(--ink); text-decoration: none; box-shadow: 0 5px 16px #16334e0d; }
.project-grid a:hover { border-color: #87aec8; box-shadow: 0 8px 22px #16334e1a; }
.project-grid a:hover span { text-decoration: underline; text-underline-offset: .2em; }
.project-grid img { width: 100%; aspect-ratio: 2.16; object-fit: cover; }
.project-grid span { display: block; padding: .9rem 1.1rem; font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 650; }
.project-cta { padding-block: clamp(3rem, 6vw, 5rem); background: linear-gradient(115deg, var(--navy), #2d6691); text-align: center; color: white; }
.project-cta h2 { margin-bottom: 1.1rem; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.button { display: inline-block; padding: .85rem 1.6rem; border: 0; border-radius: .5rem; background: var(--blue); color: white; font-weight: 650; font-size: .95rem; text-decoration: none; }
.button:hover { background: var(--navy); }
.project-cta .button { background: white; color: var(--ink); }
.project-cta .button:hover { background: #e9f0f5; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.1rem); align-items: start; }
.split h2, .split h3 { margin-bottom: .45rem; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.22; }
.split p { margin-bottom: .9rem; color: var(--muted); }
.options { padding-left: 1.3rem; list-style: square; color: var(--muted); }
.options li + li { margin-top: .3rem; }
.options li::marker { color: var(--accent); }
.project-copy .project-experience { margin: 1.4rem 0 1rem; padding: .8rem 1rem; border-left: .25rem solid var(--blue); border-radius: .3rem; background: var(--soft-blue); color: var(--navy); font-size: clamp(1.15rem, 2.5vw, 1.45rem); }
.project-experience span { display: inline-block; margin-right: .25rem; color: var(--blue); font-size: 1.4em; }
.project-benefits strong { display: block; color: var(--ink); font-size: 1.08rem; }
.project-benefits li + li { margin-top: .65rem; }
.project-photos { display: grid; gap: 1rem; }
.project-photos img, .split > img, .renovation-photo { width: 100%; height: auto; border-radius: var(--radius); }
.renovation-photo { margin-top: 1rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.65rem, 2vw, 1.25rem); margin-top: clamp(2.5rem, 7vw, 5rem); }
.stats div { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .25rem; padding: 4rem clamp(.7rem, 2.1vw, 1.35rem) 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft-blue); }
.stat-icon { position: absolute; top: .95rem; left: clamp(.7rem, 2.1vw, 1.35rem); width: 2.5rem; height: 2.5rem; fill: none; stroke: #60b3df; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.stats dt { font-size: .875rem; font-weight: 700; }
.stats dd { font-size: clamp(1.35rem, 3vw, 2rem); font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1.1; }

.reviews { padding-block: clamp(2.75rem, 5vw, 4.5rem); background: linear-gradient(115deg, var(--navy), #2d6691); color: white; }
.reviews h2 { margin-bottom: 1.5rem; text-align: center; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.review-slides { display: grid; gap: 1rem; max-width: 48rem; margin-inline: auto; overflow: hidden; }
.review { margin: 0; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid #ffffff52; border-radius: var(--radius); background: #ffffff12; }
.review-slides[data-rotating] .review { grid-area: 1 / 1; }
.review-slides[data-rotating] .review:not([data-active]) { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .review[data-active] { animation: review-in .35s ease-out; }
}
@keyframes review-in {
  from { opacity: 0; transform: translateX(1rem); }
  to { opacity: 1; transform: translateX(0); }
}
.review blockquote { margin: 0; }
.review figcaption { margin-top: .9rem; color: #d5edfc; font-weight: 650; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: clamp(1rem, 3vw, 2rem); max-width: 56rem; margin-inline: auto; }
.contact-methods { display: grid; gap: 1rem; }
.contact-card { display: flex; align-items: start; gap: 1rem; min-width: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft-blue); }
.contact-card img { width: 42px; height: 42px; object-fit: contain; }
.contact-card h3 { font-size: 1.1rem; }
.contact-card a { color: var(--blue); text-underline-offset: .16em; overflow-wrap: anywhere; }
.contact-form { display: grid; gap: 1rem; padding: clamp(.75rem, 3vw, 1.65rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft-blue); }
.contact-form label { display: grid; gap: .3rem; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; padding: .7rem .9rem; border: 1px solid #859aa9; border-radius: .45rem; background: white; color: var(--ink); }
.contact-form input, .contact-form textarea { font-weight: 400; }
.contact-form textarea { resize: vertical; }
.contact-form button:disabled { opacity: .55; cursor: default; }
.contact-captcha:empty, .contact-status:empty { display: none; }
.contact-form p { font-size: .9rem; color: var(--muted); }
.site-footer { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; background: #142735; color: #f1f6fa; }
.site-footer h2 { margin-bottom: 1rem; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; }
.footer-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.15rem 2.5rem; max-width: 50rem; font-style: normal; }
.footer-label { margin-bottom: .2rem; font-size: .875rem; color: #c5d3dd; }
.footer-contact a { display: inline-block; color: #b6def0; font-size: clamp(.972rem, 1.8vw, 1.17rem); font-weight: 500; overflow-wrap: anywhere; text-underline-offset: .2em; }
.footer-contact a:hover, .footer-meta a:hover { color: white; }
.footer-phones { display: flex; flex-wrap: wrap; gap: .15rem 1rem; }
.footer-meta { display: flex; justify-content: space-between; gap: .75rem 2rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #485b6b; color: #c5d3dd; font-size: .875rem; }
.footer-meta a { color: inherit; text-underline-offset: .18em; }
.footer-credit { white-space: nowrap; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .45rem 0 0; padding: 0; list-style: none; }
.footer-legal [aria-current="page"] { font-weight: 700; }

.legal-page { max-width: 48rem; }
.legal-page h1 { font-size: clamp(2.35rem, 5vw, 3.45rem); line-height: 1.1; letter-spacing: -.035em; }
.legal-page h2 { margin: 1.75rem 0 .45rem; font-size: clamp(1.2rem, 3vw, 1.45rem); line-height: 1.3; }
.legal-page p { color: var(--muted); }
.legal-page p + p { margin-top: .75rem; }
.legal-page .legal-date { margin: .55rem 0 1.45rem; font-size: .875rem; }
.legal-page a { color: var(--blue); overflow-wrap: anywhere; text-underline-offset: .16em; }

@media (max-width: 820px) {
  .header-inner { width: min(1155px, 100% - 2rem); gap: .75rem; }
  .header-right { min-width: 0; grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .call-line { text-align: right; }
  .brand img { width: clamp(7rem, 33vw, 12rem); }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-inline-end: -.55rem; padding: 0; border: 0; background: transparent; color: var(--header-link); }
  .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { color: white; }
  .menu-toggle span { width: 20px; height: 2px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
  .menu-toggle:not([hidden])[aria-expanded="false"] + .main-nav { display: none; }
  .main-nav { flex-direction: column; align-items: end; gap: 0; max-width: 100%; max-height: 40dvh; overflow-y: auto; text-align: right; }
  .main-nav > a { display: flex; align-items: center; justify-content: end; min-height: 44px; max-width: 100%; white-space: normal; }
  .nav-divider { display: none; }
}

@media (max-width: 760px) {
  .wrap { width: min(1155px, 100% - 2rem); }
  .project-grid { gap: 1.5rem 1rem; }
  .split { grid-template-columns: 1fr; }
  .project-copy { grid-row: 1; }
  .project-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; max-width: 35rem; }
}

@media (max-width: 440px) {
  .call-line { font-size: .82rem; }
  .project-grid, .project-photos { grid-template-columns: 1fr; }
  .contact-form { padding-inline: .65rem; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-meta { flex-wrap: wrap; }
}
