
/* Oswestry Roofing 2026 design, approved preview V5 */
:root { --preview-orange:#ff6600; --preview-ink:#181b1e; --preview-silver:#eef1f3; --preview-silver-border:#c6ccd1; }
html {scroll-behavior:smooth}
body {background:#fff;color:var(--preview-ink)}
/* Bold trade styling: typography changes visual casing only; original HTML copy is preserved. */
.hero h1,.section-head h2,.original-roofing-copy h2,.cta-band h2,.feature__title,
.osw-rooflines__intro h2 {font-style:normal!important; font-weight:900!important; letter-spacing:-.035em;}
.hero h1 {text-transform:uppercase;line-height:1.04;max-width:15ch;}
.section-head h2,.original-roofing-copy h2 {text-transform:uppercase;line-height:1.1;}
/* Preserve orange call buttons exactly; repaint only non-CTA content accents. */
.section .eyebrow:not(.btn),.cta-band .eyebrow,.hero .eyebrow {color:var(--preview-orange)!important; font-style:normal;letter-spacing:.095em;}
.section .eyebrow:before,.hero .eyebrow:before {background:var(--preview-orange)!important}
.section {padding-block:clamp(34px,4vw,58px)}
.section--mist {background:var(--preview-silver)}
.section-head {margin-bottom:24px}
.split-head {gap:12px;margin-bottom:24px}
.original-roofing-copy {background:white;color:var(--preview-ink)}
.original-roofing-copy h3 {font-weight:850!important;}
/* Keep roof photograph strong: reduce black opacity while retaining contrast over hero text. */
.hero {background:#1b1b1b}
.hero:before {background:linear-gradient(90deg,rgba(10,13,16,.86) 0%,rgba(10,13,16,.60) 47%,rgba(10,13,16,.28) 100%)!important}
.hero__inner {padding-bottom:34px}
/* Key intervention: compact eight homepage service cards without omitting a word. */
.services-feature,.services-feature.section--dark {background:var(--preview-silver)!important;color:var(--preview-ink)!important}
.services-feature .section-head,.services-feature h2,.services-feature p:not(.eyebrow) {color:var(--preview-ink)!important}
.services-feature .split-head .section-head p:not(.eyebrow){color:#3b444c!important}
.features {gap:12px!important}
.services-feature .feature {position:relative;display:flex;flex-direction:column;min-height:0;background:#fff!important;
  border:1px solid var(--preview-silver-border)!important;border-top:4px solid var(--preview-orange)!important;
  border-radius:2px!important;box-shadow:none!important;overflow:hidden}
.services-feature .feature:hover,.services-feature .feature:focus-within {background:#fff!important;border-color:#949ca3!important;border-top-color:var(--preview-orange)!important;}
.services-feature .feature__media {height:92px;aspect-ratio:auto;flex:0 0 92px;background:#202326}
.services-feature .feature__media:after {background:none!important}
.services-feature .feature__media img {width:100%;height:100%;object-fit:cover}
.services-feature .feature__body {padding:11px 13px 12px!important; flex:1;min-width:0;}
.services-feature .feature__icon {display:none!important}
.services-feature .feature__title {font-size:17px!important;line-height:1.15!important;margin:0 0 6px!important;text-transform:uppercase;}
.services-feature .feature__title a {color:var(--preview-ink)!important}
.services-feature .feature__text {font-size:13px!important;line-height:1.32!important;color:#4a5258!important;margin:0 0 8px!important;}
.services-feature .feature__more {font-style:normal;font-size:12px!important;line-height:1.2;font-weight:900;color:#bb4a00!important;margin-top:auto;}
.services-feature .feature__more .icon {width:12px;height:12px}
.services-feature .service-prose h3 {font-style:normal!important;font-weight:900!important;letter-spacing:-.02em;color:var(--preview-ink)!important}
.services-feature .service-prose a:not(.btn) {color:#a84000!important}
/* Silver roofline band and leaner informational sections. */
.osw-rooflines__links li {border-block-start-color:#c6ccd1}
.osw-rooflines__links a {padding-top:.82rem;padding-bottom:.82rem}
.osw-rooflines__links a:hover {color:var(--preview-orange)}
.osw-rooflines__intro img {border-radius:2px}
.steps {gap:12px}
.step {border-radius:2px}
.faq-wrap .faq {border-color:#c6ccd1}
.cta-band {padding-block:38px}
.cta-band__box {background:#e5e9eb!important;border-left:6px solid var(--preview-orange)!important;border-radius:2px!important;padding:26px!important}
/* Desktop: already four across; keep photographs prominent but remove unnecessary dark blocks. */
@media(min-width:1024px){.features{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(min-width:640px) and (max-width:1023px){.features{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* On phones, horizontal cards produce about half the scroll height of the old vertical stack. */
@media(max-width:639px){
 .section{padding-block:32px}
 .split-head{margin-bottom:18px}
 .services-feature .feature {display:grid!important;grid-template-columns:36% minmax(0,1fr)!important;align-items:stretch;min-height:148px;}
 .services-feature .feature__media{grid-column:1;grid-row:1;height:100%;min-height:148px;aspect-ratio:auto;flex:initial}
 .services-feature .feature__body{grid-column:2;grid-row:1;padding:11px!important}
 .services-feature .feature__title{font-size:16px!important}
 .services-feature .feature__text{font-size:12.5px!important;line-height:1.28!important;margin-bottom:5px!important}
 .services-feature .feature__more{font-size:11px!important}
 .hero h1 {font-size:clamp(29px,8.2vw,42px)!important;max-width:none}
 .cta-band__box{padding:20px!important}
}



/* V2: complete the card language throughout the service sections. */
/* Keep the final pair of roofing-service cards deliberately centred on wide screens. */
@media(min-width:1024px){.services-feature .features>.feature:nth-child(9):nth-last-child(2){grid-column:2}}
.services-feature .features>.feature .feature__more:is(a) {text-decoration:none;display:inline-flex;gap:5px;align-items:center}
.services-feature .feature__subline {display:block;color:#30373a;font-size:12.6px;line-height:1.26;margin-bottom:4px}
.services-feature .feature__contact-line {display:block;font-size:12.4px;line-height:1.26}
.services-feature .feature__text {min-height:0!important}
.roofline-cards {background:var(--preview-silver)!important;color:var(--preview-ink)}
.roofline-cards__head {display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:18px;border-top:2px solid #c6ccd1;padding-top:20px}
.roofline-cards__head .section-head {margin:0}
.roofline-cards__head h2 {font-weight:900;font-size:clamp(25px,3vw,38px);letter-spacing:-.035em;text-transform:uppercase}
.roofline-cards__photo {width:225px;max-height:105px;overflow:hidden;flex:none}
.roofline-cards__photo img {width:100%;height:105px;object-fit:cover;object-position:center;display:block;border-radius:2px}
.roofline-cards .features {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
.roofline-cards .feature {position:relative;display:flex;flex-direction:column;min-height:0;background:#fff!important;border:1px solid var(--preview-silver-border)!important;border-top:4px solid var(--preview-orange)!important;border-radius:2px!important;box-shadow:none!important;overflow:hidden}
.roofline-cards .feature:hover {border-color:#949ca3!important;border-top-color:var(--preview-orange)!important}
.roofline-cards .feature__media {height:92px;aspect-ratio:auto;flex:0 0 92px;background:#202326}
.roofline-cards .feature__media img {width:100%;height:100%;object-fit:cover}
.roofline-cards .feature__body {padding:11px 13px 12px!important;flex:1;min-width:0}
.roofline-cards .feature__title {font-size:17px!important;line-height:1.15;margin:0 0 6px!important;font-style:normal;font-weight:900!important;text-transform:uppercase}
.roofline-cards .feature__title a {color:var(--preview-ink)!important;text-decoration:none}
.roofline-cards .feature__text {font-size:13px!important;line-height:1.32!important;color:#4a5258!important;margin:0 0 8px!important}
.roofline-cards .feature__more {font-style:normal;font-size:12px!important;line-height:1.2;font-weight:900;color:#bb4a00!important;margin-top:auto;text-decoration:none}
@media(min-width:640px) and (max-width:1023px){.roofline-cards .features{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:639px){
 .roofline-cards__head{gap:12px}.roofline-cards__head h2{font-size:25px}
 .roofline-cards__photo{width:100px}.roofline-cards__photo img{height:76px}
 .roofline-cards .features{grid-template-columns:1fr!important}
 .roofline-cards .feature{display:grid!important;grid-template-columns:36% minmax(0,1fr)!important;align-items:stretch;min-height:148px}
 .roofline-cards .feature__media{grid-column:1;grid-row:1;height:100%;min-height:148px;aspect-ratio:auto;flex:initial}
 .roofline-cards .feature__body{grid-column:2;grid-row:1;padding:11px!important}
 .roofline-cards .feature__title{font-size:16px!important}
 .roofline-cards .feature__text{font-size:12.5px!important;line-height:1.28!important;margin-bottom:5px!important}
 .roofline-cards .feature__more{font-size:11px!important}
}


/* Keep every original heading, description, photograph and destination intact.
   Make all desktop roofing-service tiles identical heights, including the final two. */
@media (min-width: 640px) {
 .services-feature .features { grid-auto-rows: 220px!important; align-items: stretch!important; }
 .roofline-cards .features {grid-auto-rows:220px!important;}
 .roofline-cards .features > .feature {height:220px!important;min-height:0!important;}
 .services-feature .features > .feature { height:220px!important; min-height:0!important; }
 .services-feature .feature__media { height:76px!important; flex:0 0 76px!important; }
 .services-feature .feature__body { padding:9px 12px 10px!important; }
 .services-feature .feature__title { font-size:16px!important; line-height:1.13!important; margin-bottom:5px!important; }
 .services-feature .feature__text { font-size:12px!important; line-height:1.25!important; margin-bottom:6px!important; }
 .services-feature .feature__subline, .services-feature .feature__contact-line {font-size:11.8px!important;line-height:1.25!important}
 .services-feature .feature__more { font-size:11.5px!important; }
}
@media (max-width: 639px) {
 /* One consistent compact mobile card, with more space reserved for the copy. */
 .services-feature .feature { height:176px!important; min-height:176px!important; grid-template-columns:29% minmax(0,1fr)!important; }
 .roofline-cards .features>.feature {height:176px!important;min-height:176px!important;}
 .services-feature .feature__media { height:100%!important; min-height:0!important; }
 .services-feature .feature__body { padding:9px 11px 10px!important; }
 .services-feature .feature__title { font-size:15px!important; line-height:1.12!important; margin-bottom:5px!important; }
 .services-feature .feature__text { font-size:11.8px!important; line-height:1.23!important; margin-bottom:5px!important; }
 .services-feature .feature__subline, .services-feature .feature__contact-line {font-size:11.5px!important;line-height:1.24!important}
 .services-feature .feature__more {font-size:11px!important;}
}
@media(max-width:359px) {
 .services-feature .feature{height:196px!important;min-height:196px!important;grid-template-columns:25% minmax(0,1fr)!important}
 .roofline-cards .features>.feature{height:196px!important;min-height:196px!important;}
}


/* V4 approved animation: animate only the header logo; no change to images, copy, CTAs or layout. */
.site-header__logo { perspective: 1000px; }
.site-header__logo > img {
  transform-origin: 50% 50%;
  backface-visibility: visible;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .site-header__logo > img { animation: osw-logo-y-axis-spin 6000ms ease-in-out infinite; }
  .site-header__logo:hover > img,
  .site-header__logo:focus-visible > img { animation-play-state: paused; }
}
@keyframes osw-logo-y-axis-spin {
  0% { transform: rotateY(0deg); }
  63% { transform: rotateY(360deg); }
  100% { transform: rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header__logo > img { animation: none !important; transform: none !important; }
}


/* V5 colour refinements. Preserve existing pink/green/blue phone,
   WhatsApp, enquiry and quotation CTAs, plus V4's 6s logo rotation. */
:root {
  --blue-600: #ff6600;
  --blue-700: #ff6600;
  --blue-300: #ff862b;
  --red-600: #ff6600;
  --red-700: #ff6600;
  --red-500: #ff6600;
}
/* Stronger vivid-orange text accents, no previous rusty/burnt orange. */
.services-feature .feature__more,
.roofline-cards .feature__more,
.services-feature .service-prose a:not(.btn),
.original-roofing-copy a:not(.btn),
.site-footer__heading,
.section--dark .eyebrow,
.on-dark .eyebrow,
.hero__hl,
.text-link,
.area__meta,
.faq__chev,
.slate__arrow {
  color:#ff6600!important;
}
/* Older brown-orange gradient, on non-contact navigation buttons only:
   keep the full shiny 3D style but remove burnt-orange shades. */
.btn:not([href^="tel:"]):not([href*="wa.me/"]):not([href="#enquiry"]):not(.enquiry-form__submit) {
  --osw-background: #ff6600;
  --osw-gradient: linear-gradient(180deg, #ff9b3d 0%, #ff760f 42%, #ff6600 100%);
  --osw-shadow: rgba(255,102,0,.27);
}
/* Replace muted orange focus ring with vivid orange and charcoal edge. */
.enquiry-form :is(input,select,textarea):focus-visible {
  border-color:#ff6600!important;
  box-shadow:0 0 0 1px #171717,0 0 0 3px rgba(255,102,0,.2)!important;
}
/* Fine black trim on solid vivid-orange elements, especially enquiry steps. */
.enquiry-form__progress li.is-current span,
.enquiry-form__progress li.is-done span,
.step__num,
.intro__badge,
.guide-card__kicker,
.guide-badge:not([href="#enquiry"]) {
  border:1px solid #171717!important;
  box-sizing:border-box;
}
.enquiry-form__progress li.is-current span,
.enquiry-form__progress li.is-done span,
.step__num {color:#171717!important;}
.enquiry-form__progress li.is-current,
.enquiry-form__progress li.is-done {
  box-shadow:inset 0 -1px 0 #171717;
}
/* The orange-topped service cards acquire a hairline black edge. */
.services-feature .feature,
.roofline-cards .feature {border-top-color:#ff6600!important;}
/* Keep explicit original action button hues exactly, including glossy gradients. */
.osw-action-dock .osw-action-call,.btn[href^="tel:"] {--osw-background:#ef087e;--osw-gradient:linear-gradient(180deg,#ff64c3 0%,#ff2199 45%,#e90070 100%);}
.osw-action-dock .osw-action-whatsapp,.btn[href*="wa.me/"] {--osw-background:#039e45;--osw-gradient:linear-gradient(180deg,#54ee8b 0%,#15c961 44%,#078a3c 100%);}
.osw-action-dock .osw-action-quote,.btn[href="#enquiry"],.guide-badge[href="#enquiry"],.enquiry-form__submit {--osw-background:#0877f7;--osw-gradient:linear-gradient(180deg,#72dcff 0%,#10a8ff 42%,#0069ed 100%);}

/* Sitewide vivid-orange details and fine dark borders; contact buttons retain existing colours. */
:root{--blue-600:#ff6600;--blue-700:#ff6600;--blue-300:#ff862b;--red-600:#ff6600;--red-700:#ff6600;--red-500:#ff6600;--mist-100:#eef1f3;--mist-200:#dce1e4;--lead-300:#d3d8dc}
.eyebrow:not(.btn), .company-page h1 em, .company-page .text-link, .company-page .crumbs a:hover {color:#ff6600}
.eyebrow:before {background:#ff6600}
.site-header__logo img {max-height:none}
.enquiry-form__progress li.is-current span,.enquiry-form__progress li.is-done span,.step__num,.intro__badge,.guide-card__kicker {border:1px solid #171717;box-sizing:border-box}
/* Action-dock gradient colours are retained from the base theme stylesheet. */
