/*
Theme Name: BlueRoof WP Theme
Theme URI: https://rawpowered.github.io/BlueRoof-WP-Theme-Showcase/
Author: Joseph Edwards
Author URI: https://github.com/RawPowered
Description: A light, flexible roofing website theme with a centered split navigation and editorial service layouts.
Version: 0.1.1
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: blueroof-wp
Tags: custom-logo, custom-menu, featured-images, blog, one-column, two-columns, block-styles
*/

:root {
  --navy: #07355c;
  --blue: #066da9;
  --sky: #52b7e8;
  --ink: #102d42;
  --muted: #526a7a;
  --pale: #eef5f9;
  --line: #d5e3eb;
  --white: #ffffff;
  --header-height: 104px;
  --font: "Aptos", "Segoe UI", Arial, sans-serif;
  --heading: "Aptos Display", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 18px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.11; letter-spacing: -.048em; margin: 0; }
h1 { font-size: clamp(52px, 5.6vw, 82px); }
h2 { font-size: clamp(38px, 4vw, 60px); }
h3 { font-size: clamp(25px, 2.1vw, 31px); }
p { margin: 0 0 1.25em; }
.wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 18px; z-index: 1000; background: var(--navy); color: #fff; padding: 12px 16px; }
.skip-link:focus { top: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid var(--blue); background: var(--blue); color: #fff; border-radius: 4px; min-height: 54px; padding: 14px 22px; font-size: 15px; line-height: 1.25; font-weight: 700; transition: background .2s, transform .2s; cursor: pointer; }
.button:hover { background: var(--navy); transform: translateY(-2px); }
.button-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.button-ghost:hover { color: #fff; }
.text-link { color: var(--blue); font-size: 15px; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.eyebrow { display: block; color: var(--blue); font-size: 12px; line-height: 1.5; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.site-header { height: var(--header-height); position: sticky; top: 0; z-index: 100; background: #fffffff2; border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); transition: height .25s, box-shadow .25s; }
.site-header.is-compact { height: 72px; box-shadow: 0 12px 28px #07355c12; }
.header-inner { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0,1fr) max-content minmax(0,1fr); align-items: center; gap: 30px; }
.site-brand { grid-column: 2; grid-row: 1; justify-self: center; min-width: 0; text-align: center; line-height: 1; }
.site-brand a { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; }
.site-brand img { display: block; width: auto; height: auto; max-width: 245px; max-height: 78px; object-fit: contain; transition: max-height .25s, transform .25s; }
.is-compact .site-brand img { max-height: 48px; }
.text-logo { color: var(--navy); font-family: var(--heading); font-size: 31px; font-weight: 900; letter-spacing: -.065em; white-space: nowrap; transition: font-size .25s; }
.text-logo span, .footer-name span { color: var(--sky); }
.is-compact .text-logo { font-size: 27px; }
.nav-left, .nav-right { grid-row: 1; min-width: 0; width: 100%; }
.nav-left { grid-column: 1; padding-left: 170px; }
.nav-right { grid-column: 3; padding-right: 170px; }
.nav-list, .mobile-links, .footer-links { list-style: none; padding: 0; margin: 0; }
.nav-list { display: flex; align-items: center; gap: clamp(15px,2vw,34px); }
.nav-left .nav-list { justify-content: flex-end; }
.nav-right .nav-list { justify-content: flex-start; }
.nav-list a { display: block; color: var(--navy); font-size: 13px; font-weight: 700; white-space: nowrap; }
.nav-list a:hover, .nav-list .current-menu-item>a { color: var(--blue); }
.nav-list .sub-menu { display: none; position: absolute; top: 100%; min-width: 190px; list-style: none; padding: 12px; margin: 0; background: #fff; box-shadow: 0 14px 30px #07355c20; border: 1px solid var(--line); }
.nav-list li { position: relative; }
.nav-list li:hover>.sub-menu, .nav-list li:focus-within>.sub-menu { display: block; }
.nav-list .sub-menu a { padding: 8px; }
.header-cta { position: absolute; right: 0; top: 50%; transform: translateY(-50%); min-height: 47px; font-size: 12px; padding: 12px 16px; }
.header-cta:hover { transform: translateY(calc(-50% - 2px)); }
.menu-toggle, .mobile-panel { display: none; }

.rb-hero { position: relative; min-height: 730px; background: #edf5fa; overflow: hidden; }
.rb-hero-media { position: absolute; inset: 0 0 0 32%; }
.rb-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#edf5fa 0%,#edf5fae8 13%,#edf5fa00 55%); }
.rb-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rb-hero-inner { position: relative; min-height: 730px; display: flex; align-items: center; }
.rb-hero-copy { width: min(610px, 55%); padding-block: 80px; }
.rb-hero .eyebrow { margin-bottom: 26px; }
.rb-hero h1 { color: var(--navy); max-width: 670px; }
.rb-hero h1 span { color: var(--blue); }
.rb-hero-lead { color: #294c63; font-size: clamp(21px,1.9vw,28px); line-height: 1.45; max-width: 520px; margin: 26px 0 0; }
.rb-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.rb-hero-note { color: var(--muted); font-size: 13px; margin: 24px 0 0; }
.rb-proof { background: var(--navy); color: #fff; }
.rb-proof-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.rb-proof-inner span { display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 20px; border-left: 1px solid #ffffff26; font-size: 15px; font-weight: 700; text-align: center; }
.rb-proof-inner span:first-child { border-left: 0; }
.rb-section { padding-block: 110px; }
.rb-section-head { display: grid; grid-template-columns: 1.1fr .8fr; gap: 80px; align-items: end; margin-bottom: 45px; }
.rb-section-head .eyebrow { margin-bottom: 20px; }
.rb-section-head h2 { color: var(--navy); }
.rb-section-head h2 span { color: #607b91; }
.rb-section-head>p { color: var(--muted); font-size: 18px; max-width: 570px; margin: 0; }
.rb-intro-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.rb-intro-card { border: 1px solid var(--line); padding: 32px; background: #fff; }
.rb-card-number { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.rb-intro-card h3 { color: var(--navy); margin: 38px 0 15px; }
.rb-intro-card p { color: var(--muted); font-size: 16px; margin: 0; }
.rb-services { background: var(--pale); }
.rb-service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.rb-service-card { min-height: 330px; background: #fff; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; }
.rb-service-icon { width: 58px; height: 58px; border: 1px solid #b6d9e9; border-radius: 50%; display: grid; place-items: center; color: var(--blue); font-size: 28px; line-height: 1; }
.rb-service-card h3 { font-size: 24px; color: var(--navy); margin: auto 0 12px; }
.rb-service-card p { color: var(--muted); font-size: 15px; margin: 0; }
.rb-material-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 15px; }
.rb-material-card { margin: 0; overflow: hidden; border: 1px solid var(--line); background: #f4f8fb; border-radius: 6px; }
.rb-material-card img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform .35s; }
.rb-material-card:hover img { transform: scale(1.04); }
.rb-material-card figcaption { color: var(--navy); font-size: 21px; font-weight: 700; padding: 17px; }
.rb-material-note { color: var(--muted); font-size: 14px; margin: 20px 0 0; }
.rb-process { background: var(--navy); color: #fff; }
.rb-process .rb-section-head h2, .rb-process .rb-section-head>p { color: #fff; }
.rb-process .rb-section-head h2 span { color: #a4cee1; }
.rb-process .eyebrow { color: #8bd7ff; }
.rb-process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.rb-process-grid article { border-top: 1px solid #ffffff50; padding-top: 28px; }
.rb-process-grid strong { display: block; color: #8bd7ff; font-size: 44px; font-weight: 500; line-height: 1; margin-bottom: 55px; }
.rb-process-grid h3 { font-size: 29px; }
.rb-process-grid p { color: #d7e6ee; font-size: 16px; margin: 14px 0 0; }
.rb-faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 85px; }
.rb-faq .eyebrow { margin-bottom: 22px; }
.rb-faq h2 { color: var(--navy); }
.rb-faq details { border-bottom: 1px solid var(--line); }
.rb-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--navy); padding: 20px 0; font-size: 20px; font-weight: 700; cursor: pointer; list-style: none; }
.rb-faq summary::-webkit-details-marker { display: none; }
.rb-faq summary::after { content: "+"; color: var(--blue); font-size: 28px; font-weight: 400; }
.rb-faq details[open] summary::after { content: "−"; }
.rb-faq details p { color: var(--muted); font-size: 16px; padding: 0 25px 18px 0; }
.rb-contact { background: #e6f2f8; border-top: 1px solid var(--line); }
.rb-contact-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 45px; }
.rb-contact h2 { color: var(--navy); max-width: 780px; }
.rb-contact p { color: var(--muted); max-width: 650px; margin: 22px 0 0; }

.content-shell { min-height: 55vh; padding-block: 90px; }
.content-with-sidebar { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 75px; }
.entry-header, .archive-header { margin-bottom: 40px; }
.entry-title, .archive-header h1 { color: var(--navy); font-size: clamp(42px,4.5vw,68px); }
.archive-description, .post-meta { color: var(--muted); font-size: 14px; }
.archive-header .eyebrow { margin-bottom: 15px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content>* { max-width: 900px; }
.entry-content>.alignwide { max-width: 1200px; }
.entry-content>.alignfull { max-width: none; }
.entry-content h2, .entry-content h3 { color: var(--navy); margin: 1.4em 0 .5em; }
.entry-content a { color: var(--blue); text-decoration: underline; }
.entry-content img { height: auto; }
.entry-content blockquote { border-left: 4px solid var(--blue); margin: 30px 0; padding-left: 25px; color: var(--navy); }
.entry-content table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px; }
.post-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; }
.post-card { border: 1px solid var(--line); background: #fff; }
.post-card-image img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card-body { padding: 25px; }
.post-card h2 { font-size: 28px; margin: 14px 0; }
.post-card h2 a:hover { color: var(--blue); }
.post-excerpt { color: var(--muted); font-size: 16px; }
.featured-image img { display: block; width: 100%; margin: 25px 0 40px; }
.entry-footer { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; }
.blog-sidebar .widget { border-top: 2px solid var(--blue); padding: 20px 0; }
.widget-title { font-size: 21px; margin-bottom: 15px; }
.widget ul { padding-left: 20px; }
.search-form { display: flex; gap: 10px; }
.search-form label { flex: 1; }
.search-form input { width: 100%; min-height: 54px; border: 1px solid var(--line); padding: 12px; }
.empty-state { max-width: 600px; }
.empty-state h1, .empty-state h2 { color: var(--navy); }
.empty-state p { color: var(--muted); margin: 20px 0; }
.comments-area { margin-top: 65px; border-top: 1px solid var(--line); padding-top: 35px; }
.comment-list { padding-left: 20px; }
.comment-list li { margin: 25px 0; }
.comment-form input, .comment-form textarea { width: 100%; border: 1px solid var(--line); padding: 12px; }
.comment-form input[type=checkbox] { width: auto; }
.demo-form { max-width: 650px; }
.demo-form h2 { margin: 0 0 20px; }
.demo-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.demo-form label { display: block; font-weight: 700; }
.demo-form input, .demo-form textarea { display: block; width: 100%; margin-top: 8px; border: 1px solid var(--line); background: #f8fbfd; padding: 12px 14px; border-radius: 3px; color: var(--ink); }
.demo-form .button:disabled { opacity: .65; cursor: default; transform: none; }
.navigation.pagination { margin-top: 45px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 12px; }
.page-numbers { padding: 7px 12px; border: 1px solid var(--line); }
.page-numbers.current { background: var(--blue); color: #fff; }
.wp-caption, .gallery-caption { max-width: 100%; }
.wp-caption-text { color: var(--muted); font-size: 14px; }
.sticky { border-top: 3px solid var(--sky); }
.bypostauthor { font-weight: inherit; }
.alignleft { float: left; margin: 0 25px 20px 0; }
.alignright { float: right; margin: 0 0 20px 25px; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { clear: both; }

.site-footer { background: #f1f6f9; border-top: 1px solid var(--line); padding-top: 55px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 65px; align-items: start; }
.footer-name { color: var(--navy); font-size: 27px; font-weight: 900; letter-spacing: -.06em; }
.footer-grid p { color: var(--muted); font-size: 15px; margin: 12px 0 0; max-width: 400px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 14px; font-weight: 700; }
.footer-links a:hover, .back-top:hover { color: var(--blue); }
.back-top { color: var(--navy); font-size: 14px; font-weight: 700; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 55px; padding-block: 22px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }

@media(max-width: 1180px) {
  .header-inner { gap: 17px; }
  .nav-list { gap: 15px; }
  .nav-list a { font-size: 12px; }
  .rb-service-grid { grid-template-columns: repeat(2,1fr); }
  .rb-material-grid { grid-template-columns: repeat(3,1fr); }
}
@media(max-width: 1100px) {
  .site-header { height: 82px; }
  .site-header.is-compact { height: 66px; }
  .nav-left, .nav-right, .header-cta { display: none; }
  .site-brand img { max-width: 245px; max-height: 60px; }
  .menu-toggle { display: flex; grid-column: 3; grid-row: 1; justify-self: end; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); padding: 10px 13px; font-size: 13px; font-weight: 700; cursor: pointer; }
  .menu-lines { display: block; width: 20px; height: 14px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
  .menu-lines::after { content: ""; position: absolute; top: 5px; left: 0; width: 20px; border-top: 2px solid currentColor; }
  .menu-toggle[aria-expanded=true] .menu-lines { transform: rotate(45deg); border-bottom: 0; }
  .menu-toggle[aria-expanded=true] .menu-lines::after { transform: rotate(90deg); top: -2px; }
  .mobile-panel:not([hidden]) { display: block; position: absolute; top: 100%; left: 50%; width: 100vw; transform: translateX(-50%); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px #07355c1a; padding: 18px 24px 28px; max-height: calc(100vh - 66px); overflow: auto; }
  .mobile-links li { list-style: none; }
  .mobile-links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; }
  .mobile-links .children, .mobile-links .sub-menu { list-style: none; padding-left: 20px; }
  .mobile-panel .button { margin-top: 25px; width: 100%; }
}
@media(max-width: 960px) {
  .wrap { width: min(1320px, calc(100% - 48px)); }
  .rb-hero, .rb-hero-inner { min-height: 640px; }
  .rb-hero-copy { width: 60%; }
  .rb-section { padding-block: 75px; }
  .rb-section-head { gap: 30px; }
  .rb-intro-grid { gap: 12px; }
  .rb-intro-card { padding: 24px; }
  .rb-faq { gap: 40px; }
  .content-with-sidebar { gap: 40px; grid-template-columns: minmax(0,1fr) 230px; }
}
@media(max-width: 680px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 40px); }
  .text-logo { font-size: 26px; }
  .rb-hero { min-height: 0; }
  .rb-hero-inner { min-height: 0; display: block; padding-top: 45px; padding-bottom: 285px; }
  .rb-hero-copy { width: 100%; padding: 0; }
  .rb-hero h1 { font-size: clamp(46px,11vw,66px); max-width: 550px; }
  .rb-hero-lead { font-size: 21px; margin-top: 20px; }
  .rb-hero-media { inset: auto 0 0; height: 300px; }
  .rb-hero-media::after { background: linear-gradient(180deg,#edf5fa 0%,#edf5fa22 25%,#edf5fa00 55%); }
  .rb-hero-media img { object-position: 72% center; }
  .rb-actions { display: grid; grid-template-columns: 1fr; margin-top: 25px; }
  .rb-hero-note { margin-top: 16px; }
  .rb-proof-inner { grid-template-columns: repeat(2,1fr); }
  .rb-proof-inner span { min-height: 70px; padding: 14px; font-size: 13px; }
  .rb-proof-inner span:nth-child(3) { border-left: 0; }
  .rb-proof-inner span:nth-child(n+3) { border-top: 1px solid #ffffff26; }
  .rb-section { padding-block: 64px; }
  .rb-section-head, .rb-faq, .rb-contact-inner { display: block; }
  .rb-section-head h2, .rb-faq h2, .rb-contact h2 { font-size: clamp(37px,9vw,52px); }
  .rb-section-head>p { font-size: 16px; margin-top: 20px; }
  .rb-intro-grid, .rb-service-grid, .rb-process-grid { grid-template-columns: 1fr; }
  .rb-intro-card h3 { margin-top: 22px; }
  .rb-service-card { min-height: 230px; }
  .rb-service-card h3 { margin-top: 38px; }
  .rb-material-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .rb-material-card img { height: 165px; }
  .rb-material-card figcaption { font-size: 17px; padding: 12px; }
  .rb-process-grid strong { margin-bottom: 25px; }
  .rb-process-grid article { padding-top: 20px; }
  .rb-faq details:first-child { margin-top: 30px; }
  .rb-faq summary { font-size: 17px; }
  .rb-contact .button { margin-top: 26px; width: 100%; }
  .content-shell { padding-block: 55px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .post-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { display: block; margin-top: 35px; }
  .footer-bottom span { display: block; margin-bottom: 6px; }
  .alignleft, .alignright { float: none; margin: 20px auto; }
}
@media(max-width: 500px) {
  .menu-label { display: none; }
  .site-brand img { max-width: min(200px, calc(100vw - 180px)); }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
