/* ==============================
   GLOBAL COLORS & TEXT
   ============================== */
:root {
  --brand: #60748a;
  --text: #0f172a;
  --muted: #475569;
  --ring: #e2e8f0;
  --bg: #fff;
}

body {
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

/* ==============================
   HEADER (SHORTCODE)
   ============================== */
.br-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.br-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--ring);
  z-index: 50;
}

.br-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.br-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.br-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.br-name small {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.2;
  margin-top: 2px;
}

.br-links {
  display: none;
  gap: 24px;
  font-size: 14px;
  align-items: center;
}

.br-btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border-radius: 16px;
  padding: 10px 14px;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 768px) {
  .br-links {
    display: flex;
  }
}

/* ==============================
   CONTACT + SERVICE AREA FIX
   ============================== */

/* Force two columns inside the Service Area section */
#contact .about-grid {
  display: grid !important;
  grid-template-columns: 1fr 320px !important;
  gap: 40px !important;
  align-items: start !important;
}

/* Make sure the right-side cards (phone/email) stack vertically */
#contact .about-grid .card .grid-2 {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

/* Ensure the individual contact cards look clean */
#contact .about-grid .card .grid-2 .card {
  border: 1px solid var(--ring) !important;
  background: var(--bg) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  box-shadow: none !important;
}

/* Stack everything on mobile */
@media (max-width: 900px) {
  #contact .about-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==============================
   FOOTER
   ============================== */
.site-footer a {
  text-decoration: none;
  color: #111;
}

.site-footer a:hover {
  text-decoration: underline;
  color: var(--brand);
}

.site-footer .ast-powered-by,
.site-footer .ast-footer-copyright {
  display: none !important;
}

/* ==============================
   PAGE CONTENT (Warranty, Terms, Privacy)
   ============================== */
.br-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.br-page h2 {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 0;
}

.br-page p {
  color: var(--text);
}
/* ===== FIX: Service Area layout ===== */
.sa-card {
  border-radius: 24px;
  background: var(--bg, #fff);
  padding: 20px;
}

.sa-grid {
  display: grid !important;
  grid-template-columns: 280px 1fr !important; /* left column for contact, right for text */
  gap: 24px !important;
  align-items: start !important;
}

.sa-sidebar {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.sa-mini {
  border: 1px solid var(--ring, #e2e8f0);
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--bg, #fff);
}

.sa-title {
  font-weight: 700;
  margin: 0 0 6px;
}

.sa-blurb {
  color: var(--muted, #475569);
  margin: 0;
}

/* Stack vertically on mobile */
@media (max-width: 900px) {
  .sa-grid {
    grid-template-columns: 1fr !important;
  }

  .sa-sidebar {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 10px !important;
  }

  .sa-mini {
    flex: 1 1 48%;
  }
}
/* ==== CONTACT SECTION FIX ====
   Aligns form (left) and Service Area (right) side by side
   and keeps everything responsive
*/
#contact .about-grid {
  display: grid !important;
  grid-template-columns: 1fr 340px !important; /* form left, service area right */
  gap: 40px !important;
  align-items: start !important;
}

/* Service Area styling */
#contact .sa-card {
  border: 1px solid var(--ring, #e2e8f0);
  border-radius: 24px;
  padding: 24px;
  background: var(--bg, #fff);
}

#contact .sa-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

#contact .sa-sidebar {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

#contact .sa-mini {
  border: 1px solid var(--ring, #e2e8f0);
  border-radius: 12px;
  padding: 14px 18px;
  background: #fff;
}

/* Titles and text */
#contact .sa-title {
  font-weight: 700;
  margin: 0 0 6px;
}

#contact .sa-blurb {
  color: var(--muted, #475569);
  margin: 0;
}

/* Mobile: stack form and service area */
@media (max-width: 900px) {
  #contact .about-grid {
    grid-template-columns: 1fr !important;
  }
  #contact .sa-card {
    margin-top: 20px;
  }
}
/* Hide About placeholder panel until you have a photo */
#about .container > div:last-child { display: none; }
#about .container { display: block !important; } /* ensures single-column flow */
/* ===== Hero layout: text + image side-by-side ===== */
#home .hero-wrap{
  display:grid;
  grid-template-columns: 1.15fr .85fr; /* text | image */
  gap:32px;
  align-items:center;
}

#home .hero-text h1{ margin:0 0 12px; }
#home .hero-text p{ margin:0 0 18px; color:#475569; }

/* Image card */
#home .hero-media{
  border:1px solid #e2e8f0;
  border-radius:20px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 6px 20px rgba(15,23,42,.08);
}

/* Image sizing */
#home .hero-media img{
  display:block;
  width:100%;
  height:100%;
  max-height: 420px;       /* keep it balanced with heading */
  object-fit: cover;       /* crops nicely without distortion */
}

/* Small screens: stack */
@media (max-width: 900px){
  #home .hero-wrap{
    grid-template-columns:1fr;
  }
  #home .hero-media{
    order:2;               /* text first, image after */
    max-width: 680px;
    margin:0 auto;
  }
}

/* Optional: subtle hover polish (can remove if you want static) */
#home .hero-media:hover{
  transform: translateY(-2px);
  transition: transform .2s ease;
}
/* Hero: show logo instead of photo */
#home .hero-media{
  border:1px solid #e2e8f0;
  border-radius:24px;
  background:#0b1220;           /* dark panel (like your screenshot) */
  display:grid;
  place-items:center;
  padding:28px;
  box-shadow:0 6px 20px rgba(15,23,42,.08);
}

/* Make the logo fit nicely */
#home .hero-media img.hero-logo{
  width:min(280px, 60%);        /* tweak if you want larger/smaller */
  height:auto;
  object-fit:contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}

/* If a caption shows (Gutenberg cover/image) hide it */
#home .hero-media figcaption,
#home .hero-media .wp-element-caption{ display:none; }

@media (max-width:900px){
  #home .hero-media{ max-width:680px; margin:0 auto; }
  #home .hero-media img.hero-logo{ width:min(220px, 70%); }
}
.br-social { display:flex; gap:10px; margin-left:12px; }
.br-social-btn{
  display:inline-grid; place-items:center; width:32px; height:32px;
  border-radius:50%; background:var(--brand,#60748a); color:#fff; text-decoration:none;
}
.br-social-btn:hover{ opacity:.9; transform:translateY(-1px); transition:.15s ease; }

/* Make sure the right side has room on desktop */
@media(min-width:768px){ .br-links{ display:flex; gap:20px; align-items:center; } }
/* === Bedrock Header Social Fix === */
.br-header {
  position: relative;
  z-index: 9999;
}

.br-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.br-social {
  display: flex !important;
  gap: 10px;
  align-items: center;
  margin-left: 12px;
}

.br-social-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #60748a;
  color: #fff;
  text-decoration: none;
}

.br-social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.br-social-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Mobile: stack menu & icons nicely */
@media (max-width: 768px) {
  .br-links {
    flex-direction: column;
    align-items: flex-start;
  }
  .br-social {
    margin-top: 8px;
  }
}
/* Remove Astra's built-in header completely */
header#masthead,
.ast-primary-header,
.ast-builder-grid-row,
.site-header,
.ast-desktop-header-content,
.ast-mobile-header-wrap {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Hide every theme header except the custom Bedrock one */
header:not(.br-header) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* In case the theme uses a non-header wrapper for the masthead */
[id*="masthead"]:not(.br-header),
[class*="site-header"]:not(.br-header),
[role="banner"]:not(.br-header) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.hero-card {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
/* === MOBILE LOGO TOP-RIGHT === */
@media (max-width: 768px) {
  /* move Astra logo to top-right */
  .site-branding {
    position: absolute;
    top: 10px;
    right: 10px;
    text-align: right;
    width: auto;
    z-index: 9999;
  }

  .site-branding img,
  header .custom-logo-link img {
    max-width: 120px;  /* adjust size */
    height: auto;
  }

  /* give header height so content doesn't overlap */
  .site-header {
    position: relative;
    min-height: 80px;
  }

  /* hide duplicate in-content logo if you added one in your hero section */
  .wp-image-61 {
    display: none !important;
  }
}

/* === DESKTOP LOGO NORMAL === */
@media (min-width: 769px) {
  header .custom-logo-link img {
    max-width: 47px;
    width: 47px;
  }
}
/* ===== Make header logo top-right on MOBILE ===== */
@media (max-width: 768px) {
  /* Position the site logo in the header */
  .ast-header-break-point .site-header .site-branding,
  .site-header .site-branding {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    width: auto !important;
    text-align: right !important;
    z-index: 1001 !important;
  }

  /* Size the logo */
  .site-branding img,
  header .custom-logo-link img,
  .ast-header-break-point .site-branding .custom-logo-link img {
    max-width: 120px !important;
    height: auto !important;
  }

  /* Ensure the header has enough height to show the logo */
  .ast-header-break-point .main-header-bar,
  .ast-header-break-point .ast-primary-header-bar,
  .site-header {
    position: relative !important;
    min-height: 80px !important;
  }

  /* HIDE the in-page (hero) logo on phones so it doesn't sit under the blurb */
  .hero-card,
  .hero-card img {
    display: none !important;
  }

  /* If you inserted another image logo in content, hide those too */
  .wp-image-61,
  .entry-content img[alt*="Bedrock Waterproofing"] {
    display: none !important;
  }
}

/* Desktop: keep your current 47px logo sizing */
@media (min-width: 769px) {
  header .custom-logo-link img { max-width: 47px; width: 47px; }
}
