/* Colourz Quality Painting: her 2026 site restored as plain HTML and CSS (prospects/colourz-quality-painting/restore). */
:root {
  --blue: #52a6cc;        /* her brand blue, used where it carries no small text */
  --blue-ink: #2d7da3;    /* the same blue deepened so white words on it read 4.5:1 */
  --ink: #1a1d1c;
  --ink-2: #292b2b;
  --text: #5f6363;        /* her #7a7a7a darkened to read 5.9:1 on white */
  --line: #eaeaea;
  --dark: #292b2b;
  --white: #fff;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --radius: 0 0 0 20px;   /* her buttons and photos: one rounded corner, bottom left */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--white); color: var(--text); font: 400 15px/1.75 Poppins, system-ui, sans-serif; }
img, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink-2); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: clamp(22px, 2.4vw, 26px); }
p { margin: 0 0 .9em; }
a { color: var(--blue-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #1a5c7a; outline-offset: 2px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.kicker { color: var(--blue-ink); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }

/* Buttons */
.btn { display: inline-block; font: 700 14px/1 Poppins, sans-serif; letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  color: var(--white); background: var(--blue-ink); border: 2px solid var(--blue-ink); border-radius: var(--radius); padding: 15px 25px; cursor: pointer;
  transition: background .2s, color .2s; }
.btn:hover { background: #22668a; border-color: #22668a; }
.btn--white { background: var(--white); color: var(--blue-ink); border-color: var(--white); }
.btn--white:hover { background: rgba(255,255,255,.85); border-color: transparent; }
.btn--line { background: transparent; color: var(--white); border-color: var(--white); }
.btn--line:hover { background: var(--white); color: var(--blue-ink); border-color: var(--white); }

/* Header */
.top { background: var(--blue-ink); position: relative; z-index: 10; }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 125px; }
.top__logo img { width: 240px; }
.top__nav { flex: 1; }
.top__nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 8px; }
.top__nav a { display: block; color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 18px; border-bottom: 3px solid transparent; }
.top__nav a:hover { border-bottom-color: rgba(255,255,255,.6); }
.top__nav a[aria-current="page"] { border-bottom-color: var(--ink-2); }
.top__menu { display: none; }
@media (max-width: 899px) {
  .top__in { min-height: 84px; flex-wrap: wrap; gap: 0 12px; }
  .top__logo img { width: 170px; }
  .top__cta { display: none; }
  .top__menu { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; background: none; border: 2px solid var(--white); border-radius: var(--radius);
    color: var(--white); font: 600 14px Poppins, sans-serif; padding: 10px 14px; min-height: 44px; cursor: pointer; }
  .burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .burger::before, .burger::after { content: ''; position: absolute; left: 0; }
  .burger::before { top: -6px; } .burger::after { top: 6px; }
  .top__nav { flex-basis: 100%; display: none; padding-bottom: 14px; }
  .top--open .top__nav { display: block; }
  .top__nav ul { flex-direction: column; gap: 0; }
  .top__nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.25); font-size: 16px; }
  .top__nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.25); text-decoration: underline; text-underline-offset: 6px; }
}

/* Home hero: her dining room photo with her logo over it */
.hero { position: relative; display: grid; min-height: clamp(380px, 62vh, 620px); color: var(--white); overflow: hidden; }
.hero__bg, .pagehead__bg { position: absolute; inset: 0; }
.hero__bg img, .pagehead__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after, .pagehead::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero__in { position: relative; z-index: 1; align-self: center; text-align: center; padding-top: 40px; padding-bottom: 40px; }
.hero h1 { margin: 0 auto 26px; }
.hero__logo { width: min(406px, 78vw); margin: 0 auto; }
.hero__tag { color: var(--white); font: 600 clamp(22px, 7vw, 36px)/1.3 Poppins, sans-serif; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,.4); }  /* Sarah, 9 Nov: bigger here only, the bands keep their normal size */

/* Framed photos: an offset blue outline behind, one rounded corner */
.frame { position: relative; margin: 0 28px 28px 0; }
.frame--left { margin: 0 0 28px 28px; }
.frame::before { content: ''; position: absolute; inset: 28px -28px -28px 28px; border: 3px solid var(--blue); border-radius: var(--radius); }
.frame--left::before { inset: 28px 28px -28px -28px; }
.frame picture { position: relative; }
.frame img { border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,.18); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* About */
.about { display: grid; gap: 48px; align-items: center; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(40px, 6vw, 64px); }
@media (min-width: 900px) { .about { grid-template-columns: 1.15fr 1fr; gap: 72px; } }
.about .frame { max-width: 440px; justify-self: center; width: calc(100% - 28px); }

/* Dulux */
.dulux { display: grid; gap: 32px; align-items: center; padding-bottom: clamp(48px, 7vw, 72px); }
@media (min-width: 900px) { .dulux { grid-template-columns: 1fr auto; gap: 72px; } }
.dulux__badge { width: min(560px, 100%); margin-top: 18px; }
.dulux__warranty { width: 160px; justify-self: center; }

/* Blue bands */
.band { background: var(--blue-ink); color: var(--white); text-align: center; padding: 60px 0; }
.band--mid { padding: 72px 0; }
.band__h { color: var(--white); font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; margin-bottom: 10px; }
.band__tag { font-weight: 600; font-size: clamp(17px, 2vw, 21px); margin-bottom: 28px; }

/* Work features */
.work { padding-top: clamp(56px, 8vw, 96px); display: grid; gap: clamp(64px, 9vw, 110px); }
.feature { display: grid; gap: 40px; align-items: center; }
.feature--flip .frame { order: -1; }  /* phones: the photo first, like the other two */
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature--flip .frame { order: 2; }
}
.feature .frame { width: calc(100% - 28px); }
.feature h2 { font-size: clamp(24px, 2.6vw, 30px); }
.feature .btn { margin-top: 8px; }

/* Reviews (her old site loaded these from NoCowboys with a script) */
.reviews { padding-top: clamp(80px, 10vw, 120px); padding-bottom: clamp(64px, 9vw, 100px); text-align: center; }
.reviews__score { font-size: 17px; margin-bottom: 36px; }
/* the live NoCowboys feed (7 Nov, Sarah wanted her reviews live): their script sets the frame's height, this box scrolls it */
.reviews__feed { height: 480px; overflow: auto; margin: 0 auto 28px; max-width: 900px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.reviews__feed iframe { display: block; border: 0; }
.reviews__score strong { color: var(--blue-ink); font-size: 26px; }
.reviews__list { display: grid; gap: 24px; text-align: left; margin-bottom: 28px; }
@media (min-width: 900px) { .reviews__list { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: 28px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); background: #f7fbfd; }
.review blockquote { margin: 0 0 14px; color: var(--ink-2); }
.review figcaption { font-weight: 600; color: var(--ink-2); font-size: 14px; }
.review figcaption span { font-weight: 400; color: var(--text); }
.more { font-weight: 600; }

/* Page heads (gallery, contact) */
.pagehead { position: relative; display: grid; align-items: center; min-height: clamp(240px, 40vh, 450px); overflow: hidden; }
.pagehead::after { background: rgba(0,0,0,.35); }
.pagehead .wrap { position: relative; z-index: 1; }
.pagehead h1 { color: var(--white); font-size: clamp(40px, 6vw, 64px); font-weight: 700; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.pagehead--contact .pagehead__bg img { object-position: 50% 45%; }

/* Gallery */
.gallery { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
/* Rows in her order (before next to after), every photo whole: each item grows by its width-to-height ratio --r */
.grid { --h: 170px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 700px) { .grid { --h: 260px; gap: 16px; } }
.grid li { flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--h)); }
.grid::after { content: ''; flex: 999 1 0; }
.shot { display: block; overflow: hidden; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.shot:hover img { transform: scale(1.03); }
.viewer { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.viewer::backdrop { background: rgba(0,0,0,.9); }
.viewer img { position: absolute; inset: 56px 12px 72px; margin: auto; max-width: calc(100% - 24px); max-height: calc(100% - 128px); object-fit: contain; }
.viewer__cap { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #fff; margin: 0; padding: 0 64px; font-size: 14px; }
.viewer__btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.viewer__btn:hover { background: rgba(255,255,255,.3); }
.viewer__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.viewer__next { right: 12px; top: 50%; transform: translateY(-50%); }
.viewer__close { right: 12px; top: 12px; }

/* Contact */
.contact { display: grid; gap: 56px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
@media (min-width: 960px) { .contact { grid-template-columns: 1.1fr 1fr; gap: 72px; } }
.contact__h { margin-top: 40px; }
.details { list-style: none; margin: 0; padding: 0; }
.details li { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; font-size: 16px; }
.details svg { width: 18px; height: 18px; fill: var(--blue-ink); flex: none; }
.details a { padding: 6px 0; }
.contact__form { background: #f7fbfd; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); align-self: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink-2); font-size: 14px; margin-bottom: 6px; }
.field input:not([type=file]), .field textarea { width: 100%; font: inherit; color: var(--ink); padding: 11px 12px; border: 1px solid #8a8f8f; border-radius: 0; background: #fff; }
.field input[type=file] { font: inherit; font-size: 14px; max-width: 100%; }
.hint { font-size: 13px; margin: -8px 0 16px; }
.field .hint { margin: 6px 0 0; }
.trap { position: absolute; left: -9999px; }
.field-error { display: block; color: #a4262c; font-size: 13px; margin-top: 4px; }
[aria-invalid="true"] { border-color: #a4262c !important; }
.form-status { margin: 14px 0 0; font-weight: 600; color: var(--ink-2); }

/* Footer */
.foot { background: var(--blue-ink); color: var(--white); border-top: 1px solid rgba(255,255,255,.2); }
.foot__in { display: grid; gap: 28px; padding-top: 56px; padding-bottom: 56px; align-items: center; }
@media (min-width: 900px) { .foot__in { grid-template-columns: 300px 1fr auto; gap: 40px; } }
.foot__logo { width: 260px; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__contact { display: grid; gap: 4px; font-size: 17px; }
.foot__phone { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; }
.foot__phone svg { width: 20px; height: 20px; fill: var(--white); }
.foot__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot__nav a { font-weight: 700; text-transform: uppercase; font-size: 15px; padding: 4px 0 4px 18px; position: relative; display: inline-block; }
.foot__nav a::before { content: '\203A'; position: absolute; left: 0; top: 1px; font-size: 18px; }
.foot__copy { background: var(--dark); margin: 0; text-align: center; font-size: 12px; padding: 14px var(--gut); }

/* Phones: every link at least 44px tall to tap, no text under 14px (audit.py, 5 Nov) */
p, blockquote, figcaption, h1, h2, h3 { text-wrap: pretty; }
.skip { min-height: 44px; padding: 12px 16px; }
.top__logo { display: inline-flex; align-items: center; min-height: 44px; }
.more, .details a, .foot__contact a, .foot__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__contact { gap: 0; }
.foot__nav ul { gap: 0; }
.foot__nav a::before { top: auto; }
.hint { font-size: 14px; }
.foot__copy { font-size: 14px; }
