/* Swanshelter Roofing: Free Starter. One page, no JavaScript, nothing moves.
   Cut down from the Professional design: same logo, colours, fonts, house panel and photos. */
:root {
  --navy-950: #040c22; --navy-900: #06142f; --navy-800: #0a1f4d; --navy-700: #0d2a6b;
  --royal: #1565c0; --paper: #eef1f6; --ink: #0a1f4d; --muted: #4f5d73;
  --gold: #f2c14e; --gold-hi: #ffe08a; --grad-gold: linear-gradient(135deg, #ffe08a 0%, #f2c14e 45%, #c9971c 100%);
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head: 'Archivo', 'DM Sans', system-ui, sans-serif;
  --gutter: 16px; --max: 1180px;
  --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  --slates: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='88'%3E%3Cg fill='%230d2a6b' fill-opacity='.045'%3E%3Crect x='1' y='1' width='46' height='42' rx='1.5'/%3E%3Crect x='49' y='1' width='46' height='42' rx='1.5'/%3E%3Crect x='-23' y='45' width='46' height='42' rx='1.5'/%3E%3Crect x='25' y='45' width='46' height='42' rx='1.5'/%3E%3Crect x='73' y='45' width='46' height='42' rx='1.5'/%3E%3C/g%3E%3C/svg%3E");
}
@media (min-width: 760px) { :root { --gutter: 28px; } }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--head); line-height: 1.04; letter-spacing: -0.02em; }
h1, h2 { font-weight: 900; }
h1 em, h2 em { font-style: normal; color: var(--royal); }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--head); font-weight: 800; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.eyebrow-dark { color: var(--royal); }
h2 { font-size: clamp(30px, 6.5vw, 48px); max-width: 15em; }
.intro { color: var(--muted); font-size: 18px; max-width: 38em; margin-top: 18px; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 16px; flex: 1 1 100%; }
/* the cut corner lives on a layer behind the label, so the hover glow can follow its shape */
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--btn-bg); clip-path: var(--btn-cut, var(--cut)); }
.btn-gold { --btn-bg: var(--grad-gold); color: var(--navy-900); }
.btn-wa { --btn-bg: #25d366; color: #04341a; }
.btn-sub { font-family: var(--font); font-weight: 500; font-size: 15px; opacity: .8; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; flex: none; --btn-cut: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
@media (min-width: 600px) { .btn { flex: 0 0 auto; } }

/* Header: sits at the top of the page */
.header { background: #fff; box-shadow: 0 16px 34px -26px rgba(6,20,47,.55); position: relative; z-index: 2; }
.header-in { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--head); font-weight: 900; font-size: 19px; text-transform: uppercase; color: var(--navy-700); }
.brand-sub { font-family: var(--head); font-weight: 700; font-size: 10px; letter-spacing: .46em; text-transform: uppercase; color: var(--royal); margin-top: 5px; }
.nav { display: none; }
.header-btns { display: flex; gap: 6px; }
@media (min-width: 1020px) {
  .header-in { min-height: 80px; }
  .brand img { height: 48px; }
  .brand-name { font-size: 22px; }
  .nav { display: flex; gap: 28px; margin-right: 24px; }
  .nav a { text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 15.5px; color: var(--navy-700); }
  .header-btns .btn-sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
}

/* Hero: the photo as it is, with the house panel */
.hero { background: var(--slates), var(--paper); padding-bottom: 72px; }
.hero-photo { height: 50vh; min-height: 300px; max-height: 620px; overflow: hidden; background: var(--navy-800); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.house { position: relative; max-width: 620px; margin-top: -70px; filter: drop-shadow(0 26px 36px rgba(6,20,47,.25)); }
.roof { display: block; width: 100%; height: 70px; margin-bottom: -1px; }
.house-body { background: #fff; padding: 2px 22px 28px; }
.house h1 { font-size: clamp(38px, 10vw, 62px); line-height: .98; color: var(--navy-700); }
.lede { color: var(--muted); font-size: clamp(17px, 2.2vw, 19px); margin-top: 16px; }
.facts { color: var(--muted); font-size: 14.5px; margin: 18px 0 0; }
@media (min-width: 1020px) {
  .hero-photo { height: 66vh; min-height: 480px; }
  .house { margin-top: -240px; }
  .roof { height: 96px; }
  .house-body { padding: 4px 44px 40px; }
}

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 1020px) { .section { padding: 112px 0; } }

.services { background: #fff; }
.service-list { display: grid; gap: 10px; margin-top: 40px; }
.service-list li { background: var(--paper); padding: 20px 22px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.service-list strong { display: block; font-family: var(--head); font-weight: 800; font-size: 19px; color: var(--navy-700); margin-bottom: 4px; }
.service-list span { color: var(--muted); font-size: 15.5px; }
@media (min-width: 760px) { .service-list { grid-template-columns: 1fr 1fr; gap: 12px; } }

.work { background: var(--navy-900); color: #fff; }
.work h2 { color: #fff; }
.work h2 em { color: var(--gold); }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 40px; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photos figcaption { font-size: 14px; color: rgba(255,255,255,.75); padding-top: 10px; }
@media (min-width: 900px) { .photos { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

.about { background: var(--slates), var(--paper); }
.about-grid { display: grid; gap: 40px; }
.about p { color: var(--muted); }
.about .big { font-size: 20px; color: var(--navy-700); margin-top: 20px; }
.reasons { display: grid; gap: 22px; }
.reasons h3 { font-weight: 800; font-size: 19px; color: var(--navy-700); margin-bottom: 6px; }
.reasons p { margin: 0; font-size: 16px; }
@media (min-width: 760px) { .reasons { grid-template-columns: 1fr 1fr; gap: 26px 32px; } }
@media (min-width: 1020px) { .about-grid { grid-template-columns: 6fr 6fr; gap: 80px; align-items: center; } }

.contact { background: radial-gradient(90% 120% at 100% 0%, rgba(21,101,192,.8) 0%, rgba(21,101,192,0) 60%), var(--navy-800); color: #fff; }
.contact h2 { color: #fff; }
.contact h2 em { color: var(--gold); }
.contact .intro { color: rgba(255,255,255,.82); }
.contact-grid { display: grid; gap: 36px; align-items: center; }
.contact-card { background: rgba(255,255,255,.06); padding: 30px 26px; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
.contact-phone { display: inline-block; font-family: var(--head); font-weight: 900; font-size: clamp(36px, 8vw, 52px); line-height: 1; color: #fff; text-decoration: none; }
.contact-line { margin: 16px 0 0; color: rgba(255,255,255,.82); }
.contact-line a { color: var(--gold-hi); text-decoration: none; font-weight: 700; }
@media (min-width: 1020px) { .contact-grid { grid-template-columns: 6fr 5fr; gap: 80px; } .contact-card { padding: 40px 38px; } }

.footer { background: var(--navy-950); color: rgba(255,255,255,.75); padding: 56px 0; font-size: 15px; }
.footer-in { display: grid; gap: 24px; align-items: center; }
.footer-logo img { width: 180px; }
.footer .small { font-size: 13px; color: rgba(255,255,255,.55); margin: 0; }
@media (min-width: 760px) { .footer-in { grid-template-columns: 220px 1fr; gap: 48px; } }

/* The one response on this tier: anything you can click glows. Nothing moves. */
@media (hover: hover) {
  .btn-gold:hover { filter: brightness(1.08) drop-shadow(0 0 14px rgba(242, 193, 78, .85)); }
  .btn-wa:hover { filter: brightness(1.06) drop-shadow(0 0 14px rgba(37, 211, 102, .8)); }
  .nav a:hover { color: var(--royal); text-shadow: 0 0 16px rgba(21, 101, 192, .55); }
  .contact-phone:hover, .contact-line a:hover { color: var(--gold-hi); text-shadow: 0 0 18px rgba(255, 224, 138, .8); }
  .brand:hover img, .footer-logo:hover img { filter: drop-shadow(0 0 10px rgba(21, 101, 192, .55)); }
}

/* Small phones: keep the logo and both header buttons on one line */
@media (max-width: 400px) {
  .brand img { height: 32px; }
  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 9px; letter-spacing: .36em; }
  .header-btns .btn-sm { padding: 0 10px; font-size: 13px; min-height: 36px; }
}

/* Free tier: a plainer hero than Professional */
.house .eyebrow { color: var(--royal); letter-spacing: .14em; }
.roof { height: 52px; }
.hero-photo { height: 42vh; max-height: 520px; }
@media (min-width: 1020px) { .roof { height: 70px; } .hero-photo { height: 54vh; min-height: 420px; } .house { margin-top: -200px; } }

/* Credit */
.footer .credit { margin-top: 6px; }
.footer .credit a { color: var(--gold-hi); text-decoration: none; font-weight: 700; }
@media (hover: hover) { .footer .credit a:hover { color: #fff; text-shadow: 0 0 14px rgba(255, 224, 138, .85); } }
