/* ==========================================================
   Lewis Painting Solution — styles
   Design language: soft surfaces, 16px radius, faint shadows,
   one logo blue for actions (rest → hover → pressed).
   ========================================================== */

:root {
  /* Brand colours sampled from the Lewis logo */
  --primary: #0056f0;          /* roof / swoosh blue */
  --primary-hover: #003ecc;    /* deep blue */
  --primary-pressed: #002a8f;
  --blue-100: #d3e2ff;
  --blue-50: #eef4ff;
  --sky: #1ca1ff;              /* light blue in the W */
  --navy: #000b1f;             /* wordmark */
  --orange: #ff8b0b;           /* window */
  --orange-50: #fff3e3;

  --heading: #0b1830;
  --foreground: #3b4559;
  --caption: #5b6578;
  --grey-500: #9aa4b8;

  --border: #e6eefb;
  --surface: #f4f8ff;
  --canvas: #ffffff;
  --cream: #fff8ef;

  --danger: #e5484d;

  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 28px;
  --shadow: rgba(40, 40, 48, 0.06) 0 1px 4px;
  --shadow-lg: rgba(40, 40, 48, 0.08) 0 12px 40px;

  --font: "Alan Sans", "AlanSans", Helvetica, Arial, sans-serif;
  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--heading); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; }
a  { color: var(--primary); }
img { max-width: 100%; display: block; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: var(--r-lg);
  font: 500 16px/1 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--primary:active { background: var(--primary-pressed); }
.btn--secondary { background: #fff; color: var(--primary); border-color: var(--border); }
.btn--secondary:active { border-color: var(--surface); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.icon { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--border); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.brand__logo { height: 62px; width: auto; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__link {
  height: 40px; display: inline-flex; align-items: center; padding: 0 14px;
  border-radius: var(--r-lg); color: var(--heading); text-decoration: none; font-size: 15px;
  transition: background-color .15s;
}
.nav__link:hover, .nav__link:active { background: var(--surface); }

.header__cta { display: flex; align-items: center; gap: 8px; }

.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-btn span { width: 16px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px 16px 20px; border-top: 1px solid var(--border); background: #fff;
}
.mobile-nav a:not(.btn) { padding: 12px; border-radius: var(--r-md); color: var(--heading); text-decoration: none; }
.mobile-nav a:not(.btn):active { background: var(--surface); }
.mobile-nav .btn { margin-top: 8px; }
.mobile-nav.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(1000px 500px at 85% -10%, var(--blue-50), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, var(--cream), transparent 60%);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hl { color: var(--primary); }
.lead { font-size: 1.15rem; color: var(--foreground); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 30px; color: var(--heading); font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230056f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.hero__visual { position: relative; }
.hero__card { padding: 10px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.hero__card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }

.bubble {
  position: absolute; left: -28px; top: 40px;
  background: #fff; padding: 14px 18px;
  border-radius: 12px 12px 12px 2px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  display: flex; flex-direction: column; line-height: 1.25;
}
.bubble strong { font-size: 13px; color: var(--caption); font-weight: 500; }
.bubble a { font-size: 20px; font-weight: 700; color: var(--heading); text-decoration: none; }
.bubble a:hover { color: var(--primary); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--surface { background: var(--surface); }
.section--cream { background: var(--cream); }
.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section__head p { color: var(--caption); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .project__btn:hover img { transform: scale(1.03); }
}
.card p { color: var(--caption); font-size: 15px; margin: 0; }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center; margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; fill: currentColor; }
.card__icon--blue { background: var(--blue-50); color: var(--primary); }
.card__icon--sky    { background: #e6f5ff; color: #0b84d9; }
.card__icon--orange { background: var(--orange-50); color: #e07400; }
.card__icon--orange-solid { background: var(--orange); color: #fff; }

.lease {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 12px 32px 12px 12px; box-shadow: var(--shadow);
}
.lease__img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); }
.lease h3 { font-size: 1.4rem; }
.lease p { color: var(--caption); max-width: 40em; margin-bottom: 20px; }

/* ---------- Gallery ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-bottom: 32px; }
.seg {
  height: 40px; padding: 0 18px; border-radius: var(--r-lg);
  border: 0; background: transparent; color: #000; font: 400 15px var(--font); cursor: pointer;
  transition: background-color .15s;
}
.seg:hover, .seg:active { background: var(--canvas); }
.seg.is-active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: var(--shadow); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.project {
  margin: 0; background: #fff; border-radius: 20px; padding: 8px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.project.is-hidden { display: none; }
.project__btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--surface);
  border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in; position: relative;
}
.project__btn img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease); }
.project__btn::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7' fill='none' stroke='%230056f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.project__btn:hover::after, .project__btn:focus-visible::after { opacity: 1; transform: none; }
.project__btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1000px, 100vw - 32px); max-height: calc(100vh - 32px); padding: 0; border: 0;
  background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 11, 31, .85); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: var(--r-lg); background: #fff; }
.lightbox__cap { margin: 12px 0 0; text-align: center; color: #fff; font-weight: 500; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--heading); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-lg);
}
.lightbox__close { top: -14px; right: -14px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: -22px; }
.lightbox__nav--next { right: -22px; }
.lightbox__close:hover, .lightbox__nav:hover { color: var(--primary); }
.project figcaption { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px 4px; line-height: 1.35; }
.project figcaption strong { color: var(--heading); font-weight: 600; }
.project figcaption span { color: var(--caption); font-size: 14px; }

.note { text-align: center; margin: 32px 0 0; color: var(--caption); }
.note a { font-weight: 600; text-decoration: none; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.why__copy { position: sticky; top: calc(var(--header-h) + 32px); }
.why__copy p { margin-bottom: 28px; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.why__list li { padding: 24px 0 28px; border-top: 1px solid var(--blue-100); }
.why__list li:nth-child(-n+2) { border-top: 2px solid var(--heading); }
.why__list h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why__list p { margin: 0; color: var(--caption); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); position: relative; }
.step p { margin: 0; color: var(--caption); font-size: 15px; }
.step__n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 18px;
}

/* ---------- Areas ---------- */
.areas { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.areas__intro p { color: var(--caption); }
.areas__call { font-size: 1.25rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.areas__call:hover { text-decoration: underline; text-underline-offset: 4px; }
.suburbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 2px solid var(--heading); }
.suburbs li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.suburbs span { font-size: 17px; font-weight: 600; color: var(--heading); }
.suburbs small { font-size: 13px; color: var(--caption); text-align: right; }
.suburbs__more span { color: var(--primary); }

/* ---------- Quote ---------- */
.quote { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.quote__info p { color: var(--caption); }
.phone { display: inline-block; margin: 24px 0 16px; text-decoration: none; color: var(--heading); line-height: 1.15; }
.phone small { display: block; font-size: 14px; color: var(--caption); margin-bottom: 4px; }
.phone span { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; border-bottom: 3px solid var(--primary); }
.phone:hover span { color: var(--primary); }
.ig { display: block; width: fit-content; color: var(--heading); font-weight: 500; text-decoration: underline; text-decoration-color: var(--grey-500); text-underline-offset: 4px; }
.ig:hover { text-decoration-color: var(--heading); }

.form {
  background: #fff; border-radius: 20px; padding: 32px; border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: grid; gap: 18px;
}
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--heading); padding: 0; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: 16px var(--font); color: var(--heading);
  padding: 12px 14px; border-radius: var(--r-md); border: 1px solid #d9e3f5; background: var(--surface);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px var(--blue-50); }
.field input.is-invalid { border-color: var(--danger); }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt span {
  display: inline-block; padding: 9px 16px; border-radius: var(--r-md); border: 1px solid #d9e3f5;
  background: #fff; font-size: 15px; cursor: pointer; transition: all .15s;
}
.opt input:checked + span { background: var(--blue-50); border-color: var(--primary); color: var(--primary); font-weight: 500; }
.opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.form__error { margin: 0; color: #b4232a; font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #aab3c5; padding: 72px 0 0; border-top: 4px solid var(--primary); }
.footer a { color: #fff; text-decoration: none; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer__logo { height: 56px; width: auto; display: block; margin-bottom: 20px; }
.footer__brand p { margin: 0 0 20px; font-size: 15px; max-width: 30ch; }
.footer__ig {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500;
  padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); transition: border-color .15s, background-color .15s;
}
.footer__ig svg { width: 18px; height: 18px; }
.footer__ig:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.footer__col h3 { color: #fff; font-size: 14px; font-weight: 600; margin: 6px 0 16px; letter-spacing: 0; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col ul a { color: #aab3c5; font-size: 15px; transition: color .15s; }
.footer__col ul a:hover { color: #fff; }
.footer__phone { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.footer__phone:hover { color: var(--sky); }
.footer__contact p { margin: 0 0 18px; font-size: 15px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center;
  padding: 22px 0 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #7d879b;
}
.footer__top { margin-left: auto; color: #aab3c5 !important; }
.footer__top:hover { color: #fff !important; }

.callbar { display: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header__cta { margin-left: auto; }
  .menu-btn { display: flex; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__grid, .why, .quote, .areas { grid-template-columns: 1fr; gap: 40px; }
  .areas { gap: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .why__copy { position: static; }
  .hero__visual { max-width: 560px; }
  .bubble { left: 12px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .section { padding: 64px 0; }
  .hide-sm { display: none; }
  :root { --header-h: 68px; }
  .brand__logo { height: 44px; }
  .header__cta .btn--secondary span { display: none; }
  .header__cta .btn--secondary { width: 40px; padding: 0; }
  .hero { padding: 32px 0 56px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cards, .steps { grid-template-columns: 1fr; }
  .gallery { gap: 10px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox__close { right: 6px; top: -54px; }
  .lease { grid-template-columns: 1fr; gap: 18px; padding: 10px 10px 22px; }
  .lease__body { padding: 0 10px; }
  .lease .btn { width: 100%; }
  .bubble { display: none; }
  .form { padding: 22px; }
  .project figcaption strong { font-size: 14px; }
  .project figcaption span { font-size: 12px; }
  /* Mobile: no scroll animation, content is always visible */
  .js .reveal { opacity: 1; transform: none; transition: none; }

  /* Bigger touch targets */
  .menu-btn, .header__cta .btn--secondary { width: 44px; height: 44px; }
  .header__inner { gap: 12px; }

  /* Hero: tighter type, photo closer to the top */
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  .lead { font-size: 1rem; }
  .hero__actions { margin: 22px 0; }
  .hero__grid { gap: 28px; }
  .hero__card { padding: 6px; border-radius: 20px; }
  .hero__card img { border-radius: 16px; }

  .section__head { margin-bottom: 28px; }

  /* Filter chips scroll sideways instead of wrapping */
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding: 4px 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .seg { flex: none; height: 44px; background: #fff; border: 1px solid var(--border); }

  .cards { gap: 10px; }
  .card { padding: 18px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
  .card .card__icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .card h3 { margin-bottom: 4px; }
  .why__list { grid-template-columns: 1fr; }
  .why__list li { padding: 18px 0 20px; }
  .why__list li:nth-child(2) { border-top: 1px solid var(--blue-100); }
  .step { padding: 22px; }
  .suburbs { grid-template-columns: 1fr; }
  .suburbs li { padding: 12px 0; }
  .suburbs span { font-size: 16px; }

  /* Mobile menu: roomy tap rows */
  .mobile-nav a:not(.btn) { padding: 14px 12px; font-size: 17px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .mobile-nav .btn { height: 52px; }

  .footer { padding: 52px 0 76px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-bottom: 40px; }
  .footer__brand, .footer__contact { grid-column: 1 / -1; }
  .footer__logo { height: 46px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer__top { margin-left: 0; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; transition: transform .25s var(--ease);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--border);
  }
  .callbar .btn { height: 50px; }
  .callbar.is-hidden { transform: translateY(110%); }
}

@media (max-width: 360px) {
  .brand__logo { height: 38px; }
  h1 { font-size: 1.9rem; }
}
