/* AMC Renovations Sydney: shared styles */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #F3F0EA; overflow-x: clip; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, a, span { overflow-wrap: break-word; }
h2 em { overflow-wrap: anywhere; }
a { color: #121212; }
a:hover { color: #3E3A35; }
:focus-visible { outline: 2px solid #121212; outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid #121212; outline-offset: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #121212; color: #FFFFFF; padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #FFFFFF; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 2px; text-decoration: none; font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 15px; white-space: nowrap; }
.btn-dark { background: #121212; color: #FFFFFF; }
.btn-dark:hover { background: #2A2826; color: #FFFFFF; }
.btn-outline { border: 1.5px solid #121212; color: #121212; }

/* ---------- top bar ---------- */
.topbar { background: #F3F0EA; color: #3E3A35; font: 13px/1.5 Inter, system-ui, sans-serif; border-bottom: 1px solid #E6E1D8; }
.topbar-inner { min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.topbar-left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; color: #3E3A35; text-decoration: none; }
.tb-rating strong { color: #121212; }

/* ---------- nav bar ---------- */
.navbar { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid #E6E1D8; font-family: Inter, system-ui, sans-serif; color: #121212; }
.navbar-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 66px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 36px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-link { color: #5C5750; text-decoration: none; border: 0; border-bottom: 1.5px solid transparent; padding: 6px 0 4px; background: transparent; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-current { color: #121212; }
.nav-link[aria-current="page"], .nav-link.is-current { border-bottom-color: #121212; }
.dropdown { position: relative; }
.dropdown-toggle svg { transition: transform 0.2s; }
.dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: calc(100% + 30px); left: -28px; width: 340px; background: #FFFFFF; border: 1px solid #E6E1D8; border-top: 2px solid #121212; box-shadow: 0 24px 50px rgba(18,18,18,0.14); padding: 10px; display: flex; flex-direction: column; text-transform: none; letter-spacing: 0; }
.dropdown-menu[hidden] { display: none; }
.dropdown-menu a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; text-decoration: none; color: #121212; }
.dropdown-menu a:hover, .dropdown-menu a[aria-current="page"] { background: #F3F0EA; }
.dropdown-menu strong { font-size: 15px; font-weight: 600; }
.dropdown-menu span { font-size: 13px; font-weight: 400; color: #5C5750; }
.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-phone { color: #121212; text-decoration: none; font-family: Montserrat, sans-serif; font-weight: 700; font-size: 16px; white-space: nowrap; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1.5px solid #121212; border-radius: 2px; background: #FFFFFF; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: #121212; transition: transform 0.2s, opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid #E6E1D8; background: #FFFFFF; padding: 12px 20px 24px; max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav > a { padding: 14px 0; border-bottom: 1px solid #EEEAE2; text-decoration: none; color: #121212; font-family: Montserrat, sans-serif; font-weight: 600; font-size: 18px; }
.mm-label { margin: 18px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #5C5750; }
.mm-sub { display: flex; flex-direction: column; padding-bottom: 8px; border-bottom: 1px solid #EEEAE2; }
.mm-sub a { padding: 10px 0; text-decoration: none; color: #3E3A35; font-size: 16px; }
.mm-cta { display: grid; gap: 10px; margin-top: 20px; }
.mm-cta .btn { width: 100%; min-height: 52px; }

/* ---------- carousels ---------- */
.carousel { position: relative; }
.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 2px; }
.track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; flex: 0 0 calc((100% - 32px) / 3); margin: 0; }
.project-slide { position: relative; min-height: clamp(380px, 46vw, 520px); overflow: hidden; border-radius: 2px; flex-basis: calc((100% - 16px) / 2); }
.project-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-badge { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 2px; background: rgba(18,18,18,0.72); display: flex; align-items: center; justify-content: center; }
.slide-badge img { height: 24px; width: auto; }
.slide-shade { position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(12,11,10,0.82), rgba(12,11,10,0)); }
.project-slide figcaption { position: absolute; left: 22px; right: 22px; bottom: 20px; color: #FFFFFF; font-family: Inter, sans-serif; }
.slide-cat { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.85; }
.slide-title { display: block; font-family: Montserrat, sans-serif; font-weight: 600; font-size: 20px; }
.review-slide { background: #FFFFFF; color: #121212; border-radius: 2px; padding: 30px; display: flex; flex-direction: column; gap: 22px; min-height: 300px; font-family: Inter, sans-serif; }
.review-slide p { margin: 0; font-size: 15px; line-height: 1.7; color: #2A2723; }
.review-slide footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.review-slide footer img { width: 40px; height: 40px; border-radius: 999px; }
.review-slide footer strong { display: block; font-weight: 600; font-size: 15px; }
.review-slide footer span span { display: block; font-size: 13px; color: #5C5750; }
button[data-prev][disabled], button[data-next][disabled] { opacity: 0.35; cursor: default; }

/* ---------- projects page ---------- */
.filter-btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 2px; background: transparent; color: #3E3A35; font-size: 14px; font-weight: 500; cursor: pointer; font-family: Inter, sans-serif; }
.filter-btn[aria-selected="true"] { background: #121212; color: #FFFFFF; font-weight: 600; }
.project-card { margin: 0; display: flex; flex-direction: column; gap: 12px; font-family: Inter, sans-serif; }
.project-card[hidden] { display: none; }
.pc-img { position: relative; overflow: hidden; border-radius: 2px; }
.pc-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform 0.4s ease; }
.project-card:hover .pc-img img { transform: scale(1.03); }
.pc-cat { position: absolute; top: 14px; left: 14px; background: #FFFFFF; padding: 4px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.project-card figcaption { display: flex; flex-direction: column; }
.project-card figcaption strong { font-family: Montserrat, sans-serif; font-weight: 600; font-size: 18px; }
.project-card figcaption span { font-size: 14px; color: #5C5750; }

/* ---------- forms ---------- */
.form-status { grid-column: 1 / -1; margin: 0; padding: 14px 16px; background: #F3F0EA; border-left: 3px solid #121212; font-size: 14px; color: #121212; font-family: Inter, sans-serif; }
.form-status a { font-weight: 600; }

/* ---------- mobile sticky call bar ---------- */
.mobile-cta { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav, .nav-phone { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
  .slide { flex-basis: calc((100% - 16px) / 2); }
  .project-slide { flex-basis: 78%; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 90px; }
  .wrap { padding: 0 20px; }
  .topbar-left { display: none; }
  .topbar-inner { justify-content: center; min-height: 34px; }
  .navbar-inner { min-height: 76px; gap: 12px; }
  .brand img { height: 50px; }
  .nav-cta .btn { display: none; }
  .slide { flex-basis: 86%; }
  .project-slide { flex-basis: 86%; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #FFFFFF; border-top: 1px solid #E6E1D8; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; box-shadow: 0 -8px 24px rgba(18,18,18,0.08); }
  .mobile-cta a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 2px; border: 1.5px solid #121212; color: #121212; text-decoration: none; font: 600 15px Inter, sans-serif; }
  .mobile-cta a.mc-dark { background: #121212; color: #FFFFFF; }
  body { padding-bottom: 72px; }
  /* stack the two-column forms */
  form[style*="repeat(2, minmax(0, 1fr))"] { grid-template-columns: 1fr !important; }
  /* the about badge sits inside the image on phones */
  [style*="right: -20px; bottom: -36px"] { right: 12px !important; bottom: 12px !important; padding: 16px 18px !important; }
  [style*="font-size: 44px; line-height: 1; letter-spacing: -0.03em\">5.0"] { font-size: 34px !important; }
  /* "who we work with" rows stack */
  [style*="justify-content: space-between; gap: 20px; padding: 16px 0"] { flex-direction: column; gap: 2px !important; }
  [style*="justify-content: space-between; gap: 20px; padding: 16px 0"] span[style*="text-align: right"] { text-align: left !important; }
  /* hero estimate card overlaps less */
  #quote { margin-top: -60px !important; }
  /* footer columns two-up */
  footer [style*="minmax(min(180px, 100%), 1fr)"] { grid-template-columns: 1fr 1fr !important; }
  footer [style*="minmax(min(180px, 100%), 1fr)"] > :first-child { grid-column: 1 / -1 !important; }
  /* wordmark */
  [style*="letter-spacing: 0.9em"] { letter-spacing: 0.5em !important; }
}
@media (max-width: 420px) {
  footer [style*="minmax(min(180px, 100%), 1fr)"] { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  html, .track { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- refinements ---------- */
:root { color-scheme: light; }
input, select, textarea { color: #121212; -webkit-text-fill-color: #121212; caret-color: #121212; }
::placeholder { color: #8A847A; -webkit-text-fill-color: #8A847A; opacity: 1; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #121212; }
.brand img { height: 54px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 21px; letter-spacing: 0.01em; }
.brand-text small { margin-top: 6px; font-family: Montserrat, sans-serif; font-weight: 500; font-size: 10px; letter-spacing: 0.62em; color: #3E3A35; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; }
.dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -34px; height: 34px; }
.dropdown-toggle:focus:not(:focus-visible) { outline: none; }
.hl { background: linear-gradient(transparent 58%, #DCD3C3 58%); padding: 0 0.08em; }
.review-slide .stars { display: flex; gap: 2px; }
.review-slide p { display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.avatar { width: 40px; height: 40px; border-radius: 999px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; font: 500 18px Inter, sans-serif; }
.track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
@media (hover: hover) and (pointer: fine) { .track { cursor: grab; } }
@media (max-width: 720px) {
  .brand img { height: 44px; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { font-size: 9px; letter-spacing: 0.55em; margin-top: 5px; }
}
/* keep the longer business name on one line */
.brand-text strong { white-space: nowrap; }
/* narrow desktops: tighten the header so the name, menu and buttons fit */
@media (min-width: 1101px) and (max-width: 1220px) {
  .navbar-inner { gap: 16px; }
  .main-nav { gap: 22px; }
  .nav-cta { gap: 14px; }
  .brand-text strong { font-size: 18px; }
}
@media (max-width: 400px) {
  .brand { gap: 9px; }
  .brand-text strong { font-size: 15px; }
}
@media (max-width: 340px) {
  .brand { gap: 8px; }
  .brand img { height: 38px; }
  .brand-text strong { font-size: 13px; letter-spacing: 0; }
  .brand-text small { font-size: 8px; }
}
/* tablet: keep the call + estimate actions grouped beside the menu button */
@media (max-width: 1100px) {
  .nav-cta { margin-left: auto; gap: 18px; }
  .navbar-inner { gap: 18px; }
}
@media (max-width: 720px) {
  .nav-phone { display: none; }
}
.dropdown-menu { width: 280px; padding: 8px; }
.dropdown-menu a { padding: 13px 14px; }
.dropdown-menu a + a { border-top: 1px solid #EEEAE2; }

/* ---------- full-screen animated mobile menu ---------- */
.mobile-menu {
  position: fixed; left: 0; right: 0; top: var(--menu-top, 76px); bottom: 0; z-index: 70;
  display: flex !important; flex-direction: column; justify-content: space-between; gap: 24px;
  max-height: none; overflow-y: auto; overscroll-behavior: contain;
  background: #FFFFFF; border-top: 1px solid #E6E1D8;
  padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.32s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }
.mobile-menu nav > a, .mm-acc { opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.35s ease; }
.mobile-menu.is-open nav > a, .mobile-menu.is-open .mm-acc { opacity: 1; transform: none; }
.mobile-menu.is-open nav > :nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.is-open nav > :nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.is-open nav > :nth-child(5) { transition-delay: 0.12s; }
.mobile-menu.is-open nav > :nth-child(6) { transition-delay: 0.16s; }
.mobile-menu nav > a { font-size: 22px; padding: 18px 0; }
.mm-acc { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 18px 0; border: 0; border-bottom: 1px solid #EEEAE2; background: transparent; color: #121212; font-family: Montserrat, sans-serif; font-weight: 600; font-size: 22px; cursor: pointer; text-align: left; }
.mm-acc svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.mm-acc[aria-expanded="true"] svg { transform: rotate(180deg); }
.mm-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; padding: 0; border-bottom: 0; }
.mm-sub.is-open { grid-template-rows: 1fr; border-bottom: 1px solid #EEEAE2; }
.mm-sub-inner { overflow: hidden; display: flex; flex-direction: column; }
.mm-sub-inner a { padding: 11px 0 11px 14px; border-left: 2px solid #E6E1D8; color: #3E3A35; text-decoration: none; font-size: 17px; }
.mm-sub-inner a:first-child { margin-top: 6px; }
.mm-sub-inner a:last-child { margin-bottom: 14px; }
.mm-cta { margin-top: 0; }
html.menu-open .mobile-cta { visibility: hidden; }
@media (min-width: 1101px) { .mobile-menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mobile-menu, .mobile-menu nav > a, .mm-acc, .mm-sub { transition: none !important; } }

/* ---------- menu button + phone header layout ---------- */
.mobile-call { display: none; }
.menu-toggle { border: 0; background: transparent; width: 44px; height: 44px; gap: 6px; border-radius: 2px; }
.menu-toggle span { width: 22px; height: 2px; border-radius: 2px; }
.menu-toggle span:nth-child(2) { width: 22px; }
.menu-toggle:hover { background: #F3F0EA; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 720px) {
  .navbar-inner { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
  .brand { justify-self: center; }
  .nav-cta { display: none; }
  .menu-toggle { justify-self: end; }
  .mobile-call { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 2px; color: #121212; text-decoration: none; }
  .mobile-call svg { width: 22px; height: 22px; }
  .mobile-call:hover { background: #F3F0EA; }
}

/* ---------- hover & motion ---------- */
a, button { transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.22s ease; }
a svg, button svg { transition: transform 0.25s ease; }

/* dark buttons */
a[style*="background: #121212"]:hover, button[style*="background: #121212"]:hover, .btn-dark:hover {
  background: #2E2B28 !important; color: #FFFFFF !important; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(18,18,18,0.18);
}
/* light buttons (on dark sections) */
a[style*="background: #F3F0EA"][style*="min-height"]:hover, a[style*="background: #FFFFFF"][style*="min-height"]:hover {
  background: #FFFFFF !important; color: #121212 !important; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}
a[style*="background: #FFFFFF"][style*="min-height"]:hover { background: #E9E4DA !important; }
/* outlined buttons */
a[style*="border: 1.5px solid #121212"]:hover, .btn-outline:hover { background: #121212 !important; color: #FFFFFF !important; transform: translateY(-2px); }
a[style*="border: 1.5px solid #4A4640"]:hover { border-color: #F3F0EA !important; background: rgba(243,240,234,0.08) !important; transform: translateY(-2px); }
/* arrow icons nudge */
a:hover > svg:has(path[d="M7 17L17 7M8 7h9v9"]), a:hover span > svg:has(path[d="M7 17L17 7M8 7h9v9"]) { transform: translate(2px, -2px); }
button:active, a[style*="min-height"]:active { transform: translateY(0); box-shadow: none; }

/* nav underline grows in */
.nav-link { position: relative; border-bottom-color: transparent !important; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: #121212; transform: scaleX(0); transform-origin: left; transition: transform 0.28s ease; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link.is-current::after { transform: scaleX(1); }
.nav-phone:hover { color: #3E3A35; }
.nav-phone:hover svg { transform: rotate(-12deg); }
.brand img { transition: transform 0.3s ease; }
.brand:hover img { transform: translateY(-2px); }
.dropdown-menu a { transition: background-color 0.18s ease, padding-left 0.22s ease; }
.dropdown-menu a:hover { padding-left: 20px; }
.dropdown-menu:not([hidden]) { animation: dd-in 0.22s ease; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* image cards zoom */
a[style*="position: relative"][style*="overflow: hidden"] > img,
.project-slide > img, .pc-img img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
a[style*="position: relative"][style*="overflow: hidden"]:hover > img, .project-slide:hover > img, .project-card:hover .pc-img img { transform: scale(1.045); }

/* square icon buttons (carousels) */
button[data-prev], button[data-next] { transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease; }
button[data-prev]:not([disabled]):hover, button[data-next]:not([disabled]):hover { transform: translateY(-2px); }
button[data-prev][style*="transparent"]:not([disabled]):hover { background: rgba(127,120,110,0.14) !important; }

/* filters */
.filter-btn { transition: background-color 0.2s ease, color 0.2s ease; }
.filter-btn[aria-selected="false"]:hover { background: #F3F0EA; color: #121212; }

/* text links */
a[style*="text-underline-offset"] { text-decoration-thickness: 1px; transition: text-underline-offset 0.2s ease, color 0.2s ease; }
a[style*="text-underline-offset"]:hover { text-underline-offset: 7px !important; }
footer a[style*="color: #C9C3B9"]:hover, footer a[style*="color: #A8A29A"]:hover { color: #FFFFFF !important; }
.tb-item:hover { color: #121212; }
.mobile-menu nav > a:hover, .mm-sub-inner a:hover { color: #5C5750; }
.mm-sub-inner a { transition: color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease; }
.mm-sub-inner a:hover { border-left-color: #121212; padding-left: 18px; }
.mobile-cta a:active { transform: scale(0.98); }

/* review cards */
.review-slide { transition: transform 0.3s ease, box-shadow 0.3s ease; }
@media (hover: hover) { .review-slide:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0,0,0,0.25); } }
.track { padding-top: 6px; }

/* touch screens don't keep hover lifts */
@media (hover: none) {
  a[style*="min-height"]:hover, button:hover { transform: none !important; box-shadow: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  a, button, img, path, .review-slide { transition: none !important; animation: none !important; }
  a:hover, button:hover, a:hover img { transform: none !important; }
}

/* instagram tiles */
.ig-tile { position: relative; display: block; overflow: hidden; border-radius: 2px; }
.ig-tile img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ig-ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(18,18,18,0.45); opacity: 0; transition: opacity 0.3s ease; }
.ig-ov svg { transform: scale(0.8); transition: transform 0.35s ease; }
.ig-tile:hover img, .ig-tile:focus-visible img { transform: scale(1.06); }
.ig-tile:hover .ig-ov, .ig-tile:focus-visible .ig-ov { opacity: 1; }
.ig-tile:hover .ig-ov svg, .ig-tile:focus-visible .ig-ov svg { transform: scale(1); }

/* service photo cards: white arrow box grows, arrow nudges once */
a[style*="position: relative"][style*="overflow: hidden"] span[style*="background: #FFFFFF"] { transition: transform 0.3s ease, box-shadow 0.3s ease; }
a[style*="position: relative"][style*="overflow: hidden"]:hover span[style*="background: #FFFFFF"] { transform: scale(1.1); box-shadow: 0 8px 18px rgba(0,0,0,0.3); }
a[style*="position: relative"][style*="overflow: hidden"]:hover span[style*="background: #FFFFFF"] svg { transform: translate(1.5px, -1.5px); }

/* home hero photo: soft top corners */
@media (max-width: 720px) { #top > div:first-child > div:nth-child(2) { border-radius: 14px 14px 0 0 !important; overflow: hidden; } }
/* phones: the estimate form sits right below the hero, so drop the hero button */
@media (max-width: 720px) {
  #top > div:first-child > div:first-child div:has(> a[href="#quote"]:only-child) { display: none !important; }
}

/* phones: maintenance tiles become a sideways swipe row */
@media (max-width: 720px) {
  .hscroll { display: flex !important; gap: 10px !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: transparent !important; border: 0 !important; padding-bottom: 4px; }
  .hscroll::-webkit-scrollbar { display: none; }
  .hscroll > div { flex: 0 0 80%; scroll-snap-align: start; border: 1px solid #2E2C29; }
}

/* reviews header controls on phones: rating pill on one line, arrows to the right */
#reviews [style*="display: flex; align-items: center; gap: 10px"] { flex-wrap: nowrap; }
#reviews [style*="display: flex; align-items: center; gap: 10px"] > span { white-space: nowrap; }
@media (max-width: 720px) {
  #reviews [style*="display: flex; align-items: center; gap: 10px"] { width: 100%; }
  #reviews [style*="display: flex; align-items: center; gap: 10px"] > span { margin-right: auto; padding: 0 14px !important; font-size: 13px !important; }
}

/* ---------- editable lists (Magnet) ----------
   Every row of a list is written alike, so what differs by an item's place lives here, not on the item. */
.home-stats > :nth-child(3) > p:first-child { font-family: 'Instrument Serif', serif !important; font-style: italic !important; font-weight: 400 !important; font-size: 40px !important; line-height: 0.9 !important; letter-spacing: normal !important; }
.about-stats > :nth-child(4) > p:first-child { font-family: 'Instrument Serif', serif !important; font-style: italic !important; font-weight: 400 !important; font-size: 62px !important; line-height: 0.9 !important; letter-spacing: normal !important; }
.ruled-rows > :last-child { border-bottom: 1px solid #DDD7CC; }
.ruled-rows-soft > :last-child { border-bottom: 1px solid #E6E1D8; }
.chip-row { display: contents; }
.card-text p { margin: 0; font-size: 15px; color: #5C5750; }
.card-text a { color: #121212; font-weight: 600; }

/* service photo cards: the title is the link, stretched over the whole card */
.service-cards > :nth-child(2) { border-radius: 0 !important; }
.service-cards > :nth-child(2) span[style*="background: #FFFFFF"] { flex: none; }
.service-card > img { aspect-ratio: 3 / 4; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.service-card a::after { content: ""; position: absolute; left: -20px; right: -20px; bottom: -20px; top: -1200px; }
.service-card a:focus-visible { outline: none; }
.service-card:has(a:focus-visible) { outline: 2px solid #121212; outline-offset: 3px; }
.service-card svg { transition: transform 0.25s ease; }
.service-card:hover > img { transform: scale(1.045); }
.service-card span[style*="background: #FFFFFF"] { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover span[style*="background: #FFFFFF"] { transform: scale(1.1); box-shadow: 0 8px 18px rgba(0,0,0,0.3); }
.service-card:hover span[style*="background: #FFFFFF"] svg { transform: translate(1.5px, -1.5px); }
@media (prefers-reduced-motion: reduce) { .service-card:hover > img { transform: none !important; } }

/* photos the client swaps keep their box */
.project-slide > img { aspect-ratio: 3 / 4; }
.review-slide footer img { object-fit: cover; flex: none; max-width: none; }
.review-slide footer img.review-source { width: 24px; height: 24px; border-radius: 0; flex: none; margin-left: auto; object-fit: contain; }

/* instagram tiles: the overlay is the link, so the photo can be the tile's own field */
.ig-ov:focus-visible { outline: none; }
.ig-tile:has(.ig-ov:focus-visible) { outline: 2px solid #121212; outline-offset: 3px; }
.ig-tile:has(.ig-ov:focus-visible) img { transform: scale(1.06); }
.ig-tile:has(.ig-ov:focus-visible) .ig-ov { opacity: 1; }
.ig-tile:has(.ig-ov:focus-visible) .ig-ov svg { transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .ig-tile:hover img { transform: none !important; } }

/* words the client types later (a long name, an email, a web address) wrap instead of pushing the page sideways */
body, h1, h2, h3, p, a, span { overflow-wrap: anywhere; }
/* short labels beside longer words wrap as they always have: a score, a step's number, a badge, a reviewer's name */
:is(p, span)[style*="flex"] > strong, .tb-rating strong, .ruled-rows-soft > div > span:first-child, .keep-whole,
.review-slide footer strong, .review-slide footer span { overflow-wrap: break-word; }

/* the thank-you line Magnet shows after an enquiry */
form[data-enquiry] + [role="status"] { flex: 1 1 100%; margin: 14px 0 0; font-size: 15px; font-weight: 600; }
