:root {
  /* Brand colors, taken from the Skymen logo files */
  --black: #232323;
  --black-2: #2f2f2f;
  --accent: #ffc022;        /* Skymen yellow */
  --accent-dark: #e6a800;   /* button hover */
  --accent-text: #8a6100;   /* yellow-family color readable on white */
  --ink: #232323;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --bg: #ffffff;
  --bg-soft: #f4f4f2;
  --radius: 10px;
  --max: 1160px;
  /* Brand book: Moderat for text, Titling Gothic FB Cond for headlines, Road Radio for the slogan */
  --font: "Moderat", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: "Titling Gothic", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-slogan: "Road Radio", "Moderat", sans-serif;
}

@font-face { font-family: "Moderat"; src: url("/fonts/moderat-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Moderat"; src: url("/fonts/moderat-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Titling Gothic"; src: url("/fonts/titling-gothic-cond-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Road Radio"; src: url("/fonts/road-radio.woff2") format("woff2"); font-weight: 400; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
.section--dark a, .hero a:not(.btn), .footer a { color: var(--accent); }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: .005em; line-height: 1.02; }
h3 { font-weight: 700; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; color: var(--black); }
h1 { font-size: clamp(2.7rem, 6.4vw, 4.8rem); line-height: 1; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.02; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--black); color: #e6e6e6; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-intro { max-width: 680px; color: var(--muted); margin-bottom: 36px; }
.section--dark .section-intro { color: #bdbdbd; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s; font-size: 1rem; cursor: pointer; font-family: inherit; }
.btn--primary { background: var(--accent); color: #000; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: currentColor; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--black); color: var(--black); }
.btn--outline:hover { background: var(--black); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar + header */
.topbar { background: #000; color: #cfcfcf; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
@media (max-width: 700px) { .topbar .container > span:first-child { display: none; } .topbar .container { justify-content: center; } }
.header { position: sticky; top: 0; background: var(--black); border-bottom: 1px solid #262626; z-index: 50; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.25rem; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { color: #000; padding: 10px 18px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.8rem; color: #fff; cursor: pointer; min-width: 44px; min-height: 44px; line-height: 1; }
.header-call { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .header-call { display: inline-block; padding: 9px 14px; font-size: .9rem; white-space: nowrap; margin-left: auto; }
  .header .container { gap: 10px; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--black); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid #262626; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid #262626; }
  .nav .btn { margin: 12px 20px; text-align: center; border-radius: 999px; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--black) center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.3) 100%); }
.hero .container { position: relative; padding-top: 110px; padding-bottom: 110px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: 1.2rem; max-width: 620px; color: #eeeeee; margin-bottom: 28px; }
.hero--page .container { padding-top: 72px; padding-bottom: 72px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; padding: 0; list-style: none; font-weight: 600; font-size: .95rem; }
.trust li::before { content: "✓ "; color: var(--accent); }

/* Grids + cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--muted); }
.card-body .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.feature { padding: 4px 0; }
.feature .icon { width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; }
.section--dark .feature p { color: #bdbdbd; }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #000; display: grid; place-items: center; font-weight: 700; }
.step p { color: var(--muted); }

/* Images + placeholders */
.ph { background: var(--accent) url('/images/icon-dark.png') center / 64px auto no-repeat; aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.ph.is-missing { font-size: 0; }
.media { border-radius: var(--radius); overflow: hidden; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Projects */
.project figure { margin: 0; }
.project figcaption { padding: 14px 16px; font-weight: 600; color: var(--black); }
.project figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }

/* Service detail rows */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row:nth-child(even) .media { order: 2; }
.service-row ul { padding-left: 20px; color: var(--muted); }
@media (max-width: 800px) {
  .service-row { grid-template-columns: 1fr; gap: 24px; }
  .service-row:nth-child(even) .media { order: 0; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.chips li { background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: .9rem; }
.section--dark .chips li { background: var(--black-2); border-color: #333; color: #fff; }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid > *, .form-row > * { min-width: 0; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--black); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfcfcf; border-radius: 8px; font: inherit; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; color: var(--ink); }
.checks input { width: auto; }
.req { color: var(--accent-text); }
.hidden { display: none; }
.info-card { background: var(--black); color: #e6e6e6; border-radius: var(--radius); padding: 28px; }
.info-card h2 { color: #fff; font-size: 1.4rem; }
.info-card a { color: #fff; }
.info-card dl { margin: 0; }
.info-card dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #9a9a9a; margin-top: 16px; }
.info-card dd { margin: 2px 0 0; font-weight: 600; }
.map { border: 0; width: 100%; height: 280px; border-radius: var(--radius); margin-top: 20px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; color: var(--black); cursor: pointer; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--accent); color: #000; text-align: center; }
.cta-band h2 { color: #000; }
.cta-band p { color: #000; opacity: .85; max-width: 620px; margin: 0 auto 24px; }
.cta-band .btn--primary { background: var(--black); color: #fff; }
.cta-band .btn--primary:hover { background: var(--black-2); }
.cta-band .btn--ghost { color: #000; }
.cta-band .btn--ghost:hover { background: rgba(0,0,0,.08); }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.footer { background: #000; color: #b3b3b3; padding: 56px 0 24px; font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 6px; }
.footer .legal { border-top: 1px solid #262626; margin-top: 40px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Mobile sticky call bar */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; box-shadow: 0 -4px 14px rgba(0,0,0,.15); }
  .callbar a { text-align: center; padding: 15px 8px; font-weight: 700; text-decoration: none; color: #fff; }
  .callbar a:first-child { background: var(--black); }
  .callbar a:last-child { background: var(--accent); color: #000; }
  body { padding-bottom: 54px; }
}

/* Slogan (Road Radio) */
.slogan { font-family: var(--font-slogan); color: var(--accent); font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }

/* Split hero, following the brand book web layout: dark text panel + yellow illustration panel */
.hero-split { display: grid; grid-template-columns: 1.15fr .85fr; background: var(--black); color: #fff; }
.hero-split .hero-text { padding: 88px 56px 88px max(20px, calc((100vw - var(--max)) / 2 + 20px)); }
.hero-split h1 { color: #fff; }
.hero-split .lead { font-size: 1.15rem; color: #e8e8e8; max-width: 560px; margin-bottom: 28px; }
.hero-split .hero-art { background: var(--accent); display: grid; place-items: center; padding: 48px; position: relative; overflow: hidden; }
.hero-split .hero-art img { width: 100%; max-width: 520px; }
.hero-split .hero-art .art-label { position: absolute; left: 24px; bottom: 20px; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--black); }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-text { padding: 56px 20px; }
  .hero-split .hero-art { padding: 32px 20px 48px; }
  .hero-split .hero-art img { max-width: 360px; }
}

/* Roof type drawings */
.tile-band { background: var(--accent); }
.tile-band h2 { color: var(--black); }
.tile-band .section-intro { color: #3a3a3a; }
.tile-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile-grid .tile { grid-column: span 2; }
.tile-grid .tile:nth-child(n+4) { grid-column: span 3; }  /* 3 on top, 2 wider below */
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } .tile-grid .tile, .tile-grid .tile:nth-child(n+4) { grid-column: auto; } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }
.tile { background: rgba(255,255,255,.28); border: 2px solid var(--black); border-radius: var(--radius); padding: 18px 18px 14px; display: flex; flex-direction: column; }
.tile img { height: 150px; width: 100%; object-fit: contain; margin-bottom: 12px; }
.tile h3 { color: var(--black); margin: 0 0 4px; font-size: 1.05rem; }
.tile p { margin: 0; color: #3a3a3a; font-size: .92rem; }

.footer .badge { width: 88px; height: auto; margin-bottom: 14px; }

/* Small phones: keep the estimate form inside the screen */
@media (max-width: 420px) { .form { padding: 20px 16px; } .checks { grid-template-columns: 1fr; } }


/* Homepage services: two even rows of three */
@media (min-width: 901px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

/* Long words (e.g. "Impermeabilización") must never push the page sideways on small phones */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.service-row > *, .split > *, .grid > * { min-width: 0; }

/* Homepage hero: real roof photo on the right */
.hero-split .hero-photo { position: relative; min-height: 420px; }
.hero-split .hero-photo { overflow: hidden; }
.hero-split .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-split .hero-photo img.is-active { opacity: 1; }
@media (max-width: 900px) { .hero-split .hero-photo { min-height: 0; aspect-ratio: 4 / 3; } }

/* Google reviews */
.stars { color: var(--accent); letter-spacing: 2px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.review blockquote::before { content: "★★★★★"; display: block; color: var(--accent); letter-spacing: 2px; margin-bottom: 8px; }
.review figcaption { margin-top: auto; font-weight: 700; }
.review figcaption span { font-weight: 400; color: var(--muted); }
.trust a { color: var(--accent); text-decoration: none; }
