/*
Theme Name: RRR Blog Theme
Theme URI: https://restorationroofingremodeling.com/
Author: Copilot
Description: Blog theme aligned with the existing Restoration Roofing & Remodeling site design.
Version: 1.0.0
Text Domain: rrr-blog
*/

:root {
  --rrr-blue: #312f8d;
  --rrr-cyan: #04adeb;
  --rrr-bg: #ffffff;
  --rrr-card: #ffffff;
  --rrr-text: #111111;
  --rrr-muted: #555555;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--rrr-bg);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--rrr-text);
}

a {
  text-decoration: none;
}

.site-header {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 9;
}

.site-header .inner {
  max-width: 1500px;
  width: 80%;
  min-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.header-logo,
.header-logo a,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.header-logo img,
.custom-logo-link img {
  height: 78px;
  width: auto;
  display: block;
}

.header-links,
.header-links ul,
.header-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.header-links li {
  display: flex;
  align-items: center;
}

.header-links a {
  color: var(--rrr-blue);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

.header-links a:hover {
  color: #000;
}

.site-footer {
  background: var(--rrr-blue);
  color: #fff;
  padding: 48px 0 30px;
}

.site-footer .inner {
  max-width: 1500px;
  width: 80%;
  min-width: 1000px;
  margin: 0 auto;
}

.footer-intro {
  color: #fff;
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 300;
}

.footer-grid {
  display: grid;
  grid-template-columns: 40% 30% 30%;
  gap: 24px;
}

.footer-column {
  width: 100%;
}

.footer-title,
.footer-link,
.footer-copy {
  color: #fff;
}

.footer-title {
  margin: 0 0 22px;
  font-size: 30px;
  font-weight: 400;
}

.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}

.footer-link {
  display: block;
  margin: 6px 0;
  font-size: 18px;
  font-weight: 300;
}

.footer-copy {
  margin: 0 0 8px;
  font-size: 14px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-socials img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-rating span {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.footer-rating img {
  width: 104px;
  height: auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}

.blog-shell {
  max-width: 1500px;
  width: 80%;
  min-width: 1000px;
  margin: 20px auto 30px;
}

.blog-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.blog-topbar h1 {
  margin: 0;
  color: #000;
  font-size: 35px;
  font-weight: 700;
}

.blog-search .search-field {
  width: 300px;
  height: 40px;
  border: none;
  outline: none;
  padding-left: 12px;
  border-radius: 5px;
  box-shadow: 0 0 0.25rem #888;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--rrr-blue);
  box-shadow: 0 0 0.2rem rgba(0, 0, 0, 0.2);
}

.blog-pagination .current {
  background: var(--rrr-cyan);
  color: #fff;
}

.blog-card {
  background: var(--rrr-card);
  box-shadow: 0 0 0.25rem #999;
}

.blog-card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-title {
  margin: 0 0 10px;
  color: #000;
  font-size: 25px;
  font-weight: 500;
}

.blog-card-excerpt {
  margin: 0 0 14px;
  color: #000;
  font-size: 15px;
  font-weight: 300;
}

.blog-card-link {
  color: var(--rrr-cyan);
  font-size: 15px;
  font-weight: 600;
}

.blog-single {
  background: #fff;
  box-shadow: 0 0 0.25rem #999;
  padding: 30px;
}

.blog-single-meta,
.blog-single-footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--rrr-muted);
  font-size: 14px;
}

.blog-single-category a {
  color: var(--rrr-cyan);
  font-weight: 600;
}

.blog-single-image {
  margin: 16px 0 24px;
}

.blog-single-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.blog-single h1 {
  margin-top: 0;
  font-size: 36px;
  line-height: 1.25;
}

.blog-single .entry-content {
  line-height: 1.8;
  color: #1e1e1e;
}

.blog-single .entry-content p,
.blog-single .entry-content ul,
.blog-single .entry-content ol {
  margin: 0 0 16px;
}

.blog-single .entry-content img {
  max-width: 100%;
  height: auto;
}

.blog-single .entry-content a {
  color: var(--rrr-cyan);
}
.rightEndHeader {
    align-items: center;
    display: flex;
    gap: 15px;
}

.callNowBtn {
    background-color: #04adeb;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 17px 30px;
    outline: none;
}
.rightEndHeader img {
    height: 50px;
    width: 150px;
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #000;
    margin: 5px 0;
    transition: .3s;
}

.breadcrumb-section {
    background: #f5f5f5;
    display: grid;
    grid-template-columns: 70% 30%;
    height: auto;
    margin: 0px auto 15px;
    max-width: 1500px;
    min-width: 1000px;
    padding: 15px 0;
    width: 100%;
}
.breadcrumb-section .container {
    margin: auto;
    width: 90%;
}
.breadcrumb-section a {
    color: #04adeb;
    text-decoration: none;
}
.breadcrumb-section span {
    color: #555;
    font-size: 15px;
}
/* Mobile */
@media (max-width: 991px) {

    .menu-toggle {
        display: block;
        order: 3;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,.1);
        z-index: 999;
    }

    .main-navigation.active {
        display: block;
    }

    .header-links {
        display: flex;
        flex-direction: column;
        padding: 20px;
        margin: 0;
        list-style: none;
    }

    .header-links li {
        margin: 10px 0;
    }

    .rightEndHeader {
        display: none; /* Optional: hide call button on mobile */
    }
}


@media only screen and (max-width: 1000px) {
  .site-header .inner,
  .site-footer .inner,
  .blog-shell {
    width: 90%;
    min-width: 0;
  }

  .header-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-single {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media only screen and (max-width: 700px) {
  .site-header .inner {
    /*flex-direction: column;*/
    gap: 10px;
  }

  .header-links {
    justify-content: center;
  }

  .blog-grid {
    grid-template-columns: 100%;
  }

  .blog-single h1 {
    font-size: 28px;
  }

  .footer-grid,
  .quick-links {
    grid-template-columns: 100%;
  }
}

@media only screen and (max-width: 600px) {
  .blog-topbar {
    display: grid;
    grid-template-columns: 100%;
    gap: 14px;
  }

  .footer-title {
    font-size: 26px;
  }

  .footer-link {
    font-size: 16px;
  }

  .blog-search .search-field {
    width: 100%;
  }
}
