:root {
  --navy: #13285a;
  --navy-2: #1e3a78;
  --royal: #1f5fbf;
  --cream: #f1f4f9;
  --paper: #ffffff;
  --ink: #1f2328;
  --muted: #5d6670;
  --line: #dfe5ee;
  --accent: #1f5fbf;
  --accent-dark: #17489a;
  --gold: #f2b632;
  --magenta: #d61f6e;
  --orange: #f2711c;
  --green: #6cbf2a;
  --purple: #6b2fc4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 40, 90, .09);
  --script: "Kaushan Script", cursive;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }
.hidden { display: none; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 2rem; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 999px; border: 2px solid var(--accent); transition: background .2s, transform .2s; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-sm { padding: 8px 16px; font-size: .95rem; }
.link { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 220px; height: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; color: var(--navy); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cream), var(--paper)); padding: clamp(48px, 8vw, 96px) 0; }
.hero::before { content: ""; position: absolute; right: -120px; top: 40px; width: 720px; height: 180px; background: var(--royal); opacity: .08; border-radius: 60% 40% 55% 45% / 70% 30% 70% 30%; transform: rotate(-12deg); }
.hero-inner { position: relative; }
.tagline { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--navy-2); margin-top: -.2rem; }
.script-badge { position: absolute; z-index: 2; left: -18px; bottom: -26px; margin: 0; font-family: var(--script); font-size: 2.3rem; color: var(--navy); transform: rotate(-8deg); background: #fff; padding: 2px 18px 6px; border-radius: 12px; box-shadow: var(--shadow); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-weight: 600; color: var(--navy-2); font-size: .95rem; }
.stars { color: var(--gold); letter-spacing: 2px; }
.lede { font-size: 1.15rem; color: #3b4450; max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.hero-photo { position: relative; margin: 0; isolation: isolate; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% center; border-radius: 22px; box-shadow: 0 24px 50px rgba(19, 40, 90, .22); border: 6px solid #fff; }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 22px; background: linear-gradient(135deg, var(--royal), var(--purple)); z-index: -1; }
.about-side { display: grid; gap: 20px; }
.about-photo { width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center 40%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--accent-dark); margin-bottom: .5rem; }
.section-intro { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.chip { display: block; width: 44px; height: 12px; border-radius: 6px; background: var(--c); margin-bottom: 16px; }

.about { background: var(--cream); }
.about-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.ticks li { padding-left: 28px; position: relative; font-weight: 500; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: #fff; background: var(--accent); width: 20px; height: 20px; border-radius: 50%; font-size: .75rem; display: grid; place-items: center; top: 3px; }
.hours-card { background: var(--navy); color: #e8edf2; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.hours-card h3 { color: #fff; font-size: 1.1rem; margin-top: 0; }
.hours-card dl { margin: 0 0 1.6rem; }
.hours-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hours-card dd { margin: 0; font-weight: 600; }
.alt-contact { font-size: .92rem; color: #c8d3e6; margin: 0 0 1rem; line-height: 1.7; word-break: break-word; }
.alt-contact a { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 8px; }
.contact-list li { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-list span { min-width: 72px; color: var(--muted); font-size: .9rem; padding-top: 2px; }
.contact-list a { color: var(--navy); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--accent); }
.map { margin-top: 1.6rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--cream); }
.map iframe { display: block; width: 100%; height: 280px; border: 0; }
.phone { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--gold); text-decoration: none; display: inline-block; margin-bottom: .6rem; }
.phone.big { font-size: 2rem; color: var(--accent-dark); }
.area { font-size: .92rem; color: #b9c6dc; margin: 0; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2rem; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review blockquote { margin: .8rem 0 1.2rem; color: #3b4450; flex: 1; }
.review figcaption { font-weight: 600; color: var(--navy); }
.review figcaption::before { content: "— "; color: var(--accent); }

.contact { background: linear-gradient(180deg, var(--paper), var(--cream)); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; color: var(--navy); }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #c9d3e2; border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; }

/* Footers */
.site-footer { background: var(--navy); color: #c8d3e6; padding: 40px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; }
.site-footer strong { color: #fff; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer .muted { color: #8b99a7; }
.built-by { background: var(--cream); border-top: 1px solid var(--line); padding: 18px 16px; text-align: center; }
.built-by a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); font-size: .8rem; letter-spacing: .04em; opacity: .85; transition: opacity .2s; }
.built-by a:hover { opacity: 1; }
.built-by img { width: 120px; height: auto; }

/* Our Work / projects */
.work { background: var(--paper); }
.project { margin-top: 2.2rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }
.project + .project { margin-top: 2rem; }
.project-head { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 12px 32px; align-items: start; margin-bottom: 1.4rem; }
.project-head h3 { font-size: 1.6rem; margin: 0 0 .2rem; }
.project-meta { margin: 0; color: var(--accent-dark); font-weight: 600; font-size: .92rem; }
.project-desc { margin: 0; color: var(--muted); }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
/* Gallery: the last photo stretches to fill an incomplete final row.
   Sharing a row: it spans the leftover columns and its image fills that box.
   Alone on a row: it spans the full width with its own wide aspect ratio. */
@media (min-width: 901px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  /* two left over: both share the row; three left over: the last one widens */
  .gallery .shot:last-child:nth-child(4n+2),
  .gallery .shot:nth-last-child(2):nth-child(4n+1) { grid-column: span 2; aspect-ratio: 8 / 3; }
  .gallery .shot:last-child:nth-child(4n+3) { grid-column: span 2; }
  .gallery .shot:last-child:nth-child(4n+1) { grid-column: 1 / -1; aspect-ratio: 8 / 3; }
  .gallery .shot:last-child:not(:nth-child(4n)) img,
  .gallery .shot:nth-last-child(2):nth-child(4n+1) img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .shot:last-child:nth-child(3n+2) { grid-column: span 2; }
  .gallery .shot:last-child:nth-child(3n+1) { grid-column: 1 / -1; aspect-ratio: 8 / 3; }
  .gallery .shot:last-child:not(:nth-child(3n)) img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .shot:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .gallery .shot:last-child:nth-child(odd) img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}

.shot { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--cream); cursor: zoom-in; }
.shot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.04); }
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.shot-cap { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; font-size: .85rem; font-weight: 500; color: #fff; background: linear-gradient(transparent, rgba(10, 22, 50, .78)); }
.tag { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.tag-before { background: rgba(19, 40, 90, .85); }
.tag-after { background: var(--magenta); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 16, 36, .92); }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; height: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { color: #e6ecf5; margin-top: 12px; font-size: .95rem; }
.lb-btn { position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255,255,255,.28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 520px) { .before-after { grid-template-columns: 1fr; } }

/* Thank-you page */
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; background: var(--cream); }

/* Responsive */
@media (max-width: 900px) {
  .project-head { grid-template-columns: 1fr; }
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-photo { margin: 8px 18px 24px 0; }
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .gallery { gap: 8px; }
  .shot-cap { font-size: .75rem; padding: 20px 8px 6px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .nav a:not(.btn) { display: none; }
  .brand img { width: 160px; }
  .script-badge { font-size: 1.6rem; left: -6px; bottom: -22px; }
  .ticks, .form .row { grid-template-columns: 1fr; }
    .btn { width: 100%; text-align: center; }
  .nav .btn { width: auto; }
  .form .btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
