/* ============================================================
   Rising Sun Exteriors - matches live risingsunpa.com look
   (WordPress Inspiro: black header, photo hero, white body,
   dark 3-col footer, teal accent, Montserrat/Inter)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --rse-black: #000000;
  --rse-footer: #101010;
  --rse-accent: #0bb4aa;
  --rse-accent-hover: #0fd3c7;
  --rse-text: #333333;
  --rse-muted: #8a8a8a;
  --rse-heading: 'Montserrat', 'Inter', Arial, sans-serif;
  --rse-body: 'Inter', Arial, Helvetica, sans-serif;
}

/* ---------- Global ---------- */
body {
  font-family: var(--rse-body);
  color: var(--rse-text);
  background: #fff;
}
h1, h2, h3, h4, h5 {
  font-family: var(--rse-heading);
  color: #101010;
  font-weight: 700;
  letter-spacing: 0.2px;
}
a { color: var(--rse-accent); }
a:hover { color: var(--rse-accent-hover); }

/* Force light scheme sitewide (live site is light-on-dark header/footer only) */
:root[data-theme='dark'] body,
:root[data-theme='dark'] #body-wrapper,
:root[data-theme='dark'] .section {
  background: #fff;
  color: var(--rse-text);
}
:root[data-theme='dark'] h1,
:root[data-theme='dark'] h2,
:root[data-theme='dark'] h3 {
  color: #101010;
}

/* ---------- Header: solid black bar ---------- */
#header,
#header.section {
  background: var(--rse-black);
  border-bottom: none;
  box-shadow: none;
}
#header .navbar,
#header .container {
  background: transparent;
}
#header nav a,
#header .desktop-menu a {
  color: #ffffff;
  font-family: var(--rse-body);
  font-weight: 500;
  font-size: 0.95rem;
}
#header nav a:hover,
#header .desktop-menu a:hover,
#header nav a.active {
  color: var(--rse-accent-hover);
}
#header .dropmenu ul ul li a {
  background: #1a1a1a;
  color: #eee;
}

/* Brand: white uppercase wordmark only. Live site header has no sun mark; amber is banned (Style Guide v1 legacy warning). */
.rse-brand-sun { display: none; }
.rse-brand-text {
  color: #ffffff;
  font-family: var(--rse-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Hide the quark2 theme toggle in header (live site has none) */
#header .theme-toggle { display: none; }

/* ---------- Hero: full-viewport photo like live site ---------- */
.rse-hero {
  position: relative;
  min-height: calc(100vh - 90px);
  padding: 4rem 1.5rem 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    url('../images/hero-home.jpg') center 35% / cover no-repeat,
    var(--rse-black);
  /* Flat 35% scrim over the photo, as a non-gradient overlay (style guide bans gradients). */
}
.rse-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
  pointer-events: none;
}
.rse-hero > * {
  position: relative;
  z-index: 1;
}
/* Hamburger lines: theme.css gives 2px radius; hard style rule = no radius outside buttons. */
.button_container span { border-radius: 0; }

.rse-hero h1 {
  color: #ffffff;
  font-family: var(--rse-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  text-transform: none;
  margin: 0 0 0.75rem;
  
}
.rse-hero .rse-tagline {
  color: #e8e8e8;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  margin: 0 0 2.2rem;
  
}
.rse-hero .rse-actions { margin-top: 1.2rem; }
.rse-hero a.button,
.rse-hero .rse-btn {
  display: inline-block;
  background: var(--rse-accent);
  color: #ffffff;
  font-family: var(--rse-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 0.85rem 1.9rem;
  border-radius: 3px;
  border: 1px solid var(--rse-accent);
  text-decoration: none;
  margin: 0 0.45rem 0.8rem;
  transition: background .2s ease, border-color .2s ease;
}
.rse-hero a.button:hover,
.rse-hero .rse-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #101010;
}
.rse-hero a.button.secondary,
.rse-hero .rse-btn.secondary {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}
.rse-hero a.button.secondary:hover,
.rse-hero .rse-btn.secondary:hover {
  background: rgba(255,255,255,0.14);
}
/* scroll cue like the live site chevron */
.rse-hero .rse-scroll {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.7;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rse-hero .rse-scroll:hover { opacity: 1; color: #fff; border-color: #fff; }

/* ---------- Body sections ---------- */
/* Live site is flat: no card, no rounded corners, white full width */
#body-wrapper,
:root[data-theme='dark'] #body-wrapper {
  background: #ffffff;
  padding: 0;
}
#body-wrapper > .container > .content-item,
#body-wrapper > .container {
  max-width: 1080px;
  margin-inline: auto;
  background: #ffffff;
  border-radius: 0;
  box-shadow: none;
  padding: 0 1.2rem;
}
/* Home hero must break out of the content column and go full-bleed */
#body-wrapper > .container > .content-item > .rse-hero:first-child,
.content-item .rse-hero {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
  padding: 4rem 1.5rem 5rem;
}
:root[data-theme='dark'] #body-wrapper > .container > .content-item {
  box-shadow: none;
}
.rse-page-pad { padding: 3rem 1.2rem 3.4rem; }
#body-wrapper h1.entry-title, h1.entry-title, .section h1 {
  font-family: var(--rse-heading);
  text-transform: none;
  font-size: 2rem;
}
.section h2 {
  font-size: 1.5rem;
  margin: 2.4rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rse-accent);
  display: inline-block;
}

/* ---------- Service cards: clean white/gray, teal rule ---------- */
.rse-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}
.rse-card {
  background: #f7f7f7;
  border-top: 3px solid var(--rse-accent);
  padding: 1.15rem 1.2rem;
  border-radius: 0;
  transition: none;
}
.rse-card:hover { background: #f2f2f2; }
.rse-card h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.rse-card h3 a { color: #101010; text-decoration: none; }
.rse-card h3 a:hover { color: var(--rse-accent); }
.rse-card p { margin: 0; font-size: 0.92rem; color: #555; }

/* ---------- Footer: dark, 3 columns, like live site ---------- */
#footer,
#footer.section, #footer.section-tight {
  background: var(--rse-footer);
  color: #aaaaaa;
  padding: 3.2rem 0 0;
  margin-top: 0;
}
:root[data-theme='dark'] #footer,
:root[data-theme='dark'] #footer.section {
  background: var(--rse-footer);
  color: #aaaaaa;
}
#footer .container { padding: 0 1rem; }
:root[data-theme='dark'] #footer,
#footer { color: #cccccc; }
#footer p, #footer .rse-footer-grid p,
#footer .rse-footer-grid li { color: #d5d5d5; }
/* must beat theme.css #footer a { var(--q2-text) } */
#footer .rse-footer-grid a, #footer .rse-footer-grid a:hover,
#footer a.rse-flink { color: #d5d5d5 !important; }
#footer .rse-footer-grid a:hover { color: #ffffff !important; }
.rse-footer-grid .rse-label { color: #ffffff; }
.rse-footer-bottom, .rse-footer-bottom span { color: #9a9a9a; }
.rse-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.4rem;
}
.rse-footer-grid h2, .rse-footer-grid h3 {
  color: #ffffff;
  font-family: var(--rse-heading);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 1px;
  margin: 0 0 1.1rem;
  border: none;
  padding: 0;
  display: block;
}
.rse-footer-grid p { margin: 0 0 0.4rem; font-size: 0.92rem; }
.rse-footer-grid .rse-label {
  color: #ffffff;
  font-weight: 600;
  margin-top: 0.9rem;
  display: block;
}
.rse-footer-grid a { color: var(--rse-accent-hover); text-decoration: none; }
.rse-footer-grid a:hover { color: #fff; }
.rse-footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #8a8a8a;
}
.rse-footer-bottom a { color: #fff; font-weight: 600; text-decoration: none; }
.rse-footer-bottom a:hover { color: var(--rse-accent-hover); }

/* ---------- Mobile sticky contact bar ---------- */
@media (max-width: 768px) {
  .rse-hero { padding-bottom: 6rem; } /* keep scroll chevron clear of call bar */
  .rse-hero .rse-scroll { bottom: 4.8rem; }
}
.rse-call-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--rse-black);
  display: flex;
  z-index: 90;
  padding: 0.5rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  gap: 0.5rem;
}
.rse-call-bar a {
  flex: 1;
  text-align: center;
  padding: 0.7rem 0.5rem;
  border-radius: 0;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rse-call-bar .call { color: #ffffff; background: transparent; }
.rse-call-bar .quote {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}
@media (min-width: 769px) {
  .rse-call-bar { display: none; }
}
body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); } /* room for mobile call bar */
@media (max-width: 768px) {
  #footer, #footer.section, #footer.section-tight { padding-bottom: 4.4rem; } /* last lines clear the call bar */
}

/* ---------- Contact form tweaks ---------- */
form input[type="text"], form input[type="email"],
form input[type="tel"], form textarea, form select {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.6rem 0.7rem;
  font-family: var(--rse-body);
}
form .button, form button[type="submit"] {
  background: var(--rse-accent);
  border: 1px solid var(--rse-accent);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: 3px;
  padding: 0.7rem 1.6rem;
}
form .button:hover, form button[type="submit"]:hover {
  background: #fff;
  color: #101010;
  border-color: #101010;
}

/* ---------- Mobile menu overlay dark like site chrome ---------- */
.mobile-container .overlay, .overlay {
  background: var(--rse-black);
}
.overlay .overlay-menu a, .overlay .overlay-menu a:hover { color: #eee; }

/* ---------- Tap-target compliance (44px minimum) ---------- */
/* Brand: link was text-height only (26.9px) — pad to 44+ on touch widths without
   lifting the desktop header above its 48px contract ceiling. */
@media (pointer: coarse) {
  .navbar-brand {
    min-block-size: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }
}
/* Service quick-links in mobile nav rse-cards: 35.2px — pad to 44px */
nav .rse-card a, #header nav .rse-card a {
  display: inline-block;
  padding: 8.5px 0;
}
/* Hero scroll chevron: 40x40 — bump to 44x44 */
.rse-hero .rse-scroll {
  width: 44px;
  height: 44px;
}
