/*
Theme Name: Astra Child
Theme URI: http://example.com/astra-child
Description: Child theme for Astra, real estate starter
Author: Your Name
Template: astra
Version: 1.0.0
*/

/* ==============================
   Custom CSS Starts Here
============================== */
:root {
    --wp--preset--color--primary: #cd1935; /* Change main accent color */
    --wp--preset--color--secondary: #333;   /* Secondary text color */
    --wp--preset--color--background: #fff;  /* Background */
    --wp--preset--color--text: #222;        /* Body text */
    --ast-global-color-5: var(--wp--preset--color--background)
}
/* Container layout */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* NAV MENU RESET */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.menu-toggle {
    background-color: black;
}

.menu-toggle:hover {
    background-color: black;
    outline: white;
}

/* Hide nav by default and push it to the right */
.main-nav {
    display: none;
    margin-left: auto;
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 75px;
    right: 15px;

    width: 240px;
    max-width: calc(100vw - 30px);

    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

    .main-nav.active {
        display: block;
    }

    /* Mobile menu contents */
.main-nav .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav .nav-menu li {
    margin: 0;
    width: 100%;
}

.main-nav .nav-menu a {
    display: block;
    box-sizing: border-box;
    padding: 14px 16px;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    text-align: left;
    border-radius: 6px;
}
.main-nav {
    overflow: hidden;
}
.main-nav .nav-menu a:visited {
    color: #222;
}

.main-nav .nav-menu a:hover,
.main-nav .nav-menu a:focus {
    background: rgba(0, 0, 0, 0.05);
    color: #d7193f;
}
}
/* Hamburger Container */
.menu-toggle {
    display: flex;                 /* keep flex layout */
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 60px;                   /* taller/wider container */
    height: 60px;

     background: rgba(0,0,0,0.05); /* subtle light gray background */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;

    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* subtle depth */
    padding: 8px; /* gives bars some breathing room */
}

/* Hamburger Bars */
.menu-toggle span {
    display: block;
    width: 28px !important;
    height: 3px !important;                   /* thicker bars */
    background: #333 !important;               /* dark bars by default */
    margin: 3px 0 !important;                 /* spacing between bars */
    border-radius: 2px;            /* rounded edges for sleek look */
    transition: all 0.3s ease; 
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);    /* smooth hover animation */
}


.menu-toggle:hover {
    background: #000;               /* black container */
}

.menu-toggle:hover span {
    background: #fff !important;               /* white bars */
    transform: scaleX(1.1);         /* subtle stretch effect */
}
/*.menu-toggle span {
    height: 3px !important;   
    width: 28px !important;   
    background-color: #333 !important;
    border-radius: 2px;
    margin: 3px 0 !important; 
}

*/
.menu-toggle {
    height: 60px !important;  
    width: 60px !important;
}
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        width: 44px;
        height: 48px;

        margin-left: 10px;

        background: transparent;
        border-radius: 8px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 22px;
        height: 3px;

        margin: 3px 0;
        border-radius: 2px;
    }
}
/* Remove bullets */
.nav-menu li {
    list-style: none;
}

/* Links */
.nav-menu a {
    text-decoration: none;
    font-weight: 600;
    color: inherit;
}

/* Hamburger */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* Logo */
.logo img {
    height: 60px;
    transition: all 0.3s ease;
    width: auto;
}

/* Optional: shrink logo on scroll */
/*.site-header.scrolled .logo img {
    height: 50px;
}*/

/* Nav */
.main-nav a {
    text-decoration: none;
    font-weight: 600;
    margin-left: 25px;
}

/* CTA button (if you added one) */
.header-cta {
    background: #0073e6;
    color: white !important;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Prevent content hiding behind fixed header */
body {
    padding-top: 80px;
    background-color: #FEFEFA;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    background-color: #FEFEFA
}

.site-header.scrolled {
    background: rgba(255,255,255,0.9);
}

/* --- Global Styles --- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* --- Header --- */
.site-header {
    position: fixed; /* ← change this */
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 40px;
    z-index: 999;

    /* 👇 move blur here */
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
}
.site-header nav a {
    margin-right: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}
.site-header nav a:hover {
    color: #cd1935;
}

/* --- Hero / Top Fold --- */
.hero {
    height: 104vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1560184897-e63b7dd7781e') center/cover no-repeat;
    color: #343333;
    padding: 0 20px;
    background-color: #FEFEFA;
        background-color: rgb(249, 249, 249);
}
.hero h1 {
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 4.06rem; /* approx 65px */
    line-height: 1.2;   /* keeps spacing tight like Wix */
    letter-spacing: -0.5px; /* optional, matches Wix */
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
}
.hero p {
    font-size: 1.4rem;
    margin-top: 12px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.btn-contact {
    display: inline-block;
    margin-top: 20px;
    padding: 16px 36px;
    background: #cd1935;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.btn-contact:hover {
    background: #343333;
    transform: translateY(-3px);
    color: #fff;
}

.btn-contact,
.btn-contact:link,
.btn-contact:visited,
.btn-contact:focus,
.btn-contact:active {
    color: #fff;
    text-decoration: none;
}
.redhighlight {
    color: rgb(205, 25, 53);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}
/* --- Featured Projects / Services --- */


.services {
    padding: 80px 20px 0px 20px;
     background: #f9f9f9;
}
.services h2, .projects h2 {
    font-size: 2.2rem;
    text-align: center;
    width: 90%;
    margin: 0 auto 0px;
}
.projects-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}
.service-card,
.project-card {
    /*background: #fff;*/
    background: rgb(249, 249, 249);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.service-card:hover,
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.08);
}

.service-card p {
     line-height: 1.5; 
    height: 3em; 
}
.project-card {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}
.project-card .title {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    font-size: 1.2rem;
}




/*expertise block*/

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px 20px 20px;
     
}


.expertise-block {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
     display: flex;
  align-items: flex-start;
  gap: 25px;
  flex-direction: column;
}

.expertise-block:hover {
    transform: translateY(-8px);

}

.service-card p {
     line-height: 1.5; 
    height: 3em; 
}
.expertise-block {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}
.expertise-block .title {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    font-size: 1.2rem;
}

/* --- Testimonials --- */
/* --- Testimonials Section --- */
.testimonials {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background: #f9f9f9;
}

.testimonials h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

/* Testimonial grid */
.testi-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Individual testimonial card */
.testi-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    max-width: 600px;
    flex: 1 1 300px; /* responsive width */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: unset;
}

/* Hover effect */
.testi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.15);
}

/* Testimonial image */
.testi-card img {
    width: 100%;
    height: auto;        /* keep original aspect ratio */
    display: block;
    border-radius: 12px;
    object-fit: cover;   /* ensures image covers card width */
}

/* Overlay for text - enhanced readability */
.testi-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px; /* slightly more space */
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2)); /* darker bottom */
    text-align: left;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7); /* subtle shadow for better readability */
}

/* Text inside overlay */
.testi-card p {
    margin: 0 0 10px 0;
    font-style: italic;
    font-size: 1rem;
     line-height: 1.5; 
    height: 3em; 
}

.testi-card cite {
    font-weight: 700;
    font-style: normal;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .testimonials {
        padding: 60px 20px;
    }
    .testi-card {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .testi-card {
        flex: 1 1 100%;
    }

    .testi-card .overlay {
        padding: 15px;
    }

    .testimonials h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .testi-card p {
        font-size: 0.9rem;
    }
    .testi-card cite {
        font-size: 0.85rem;
    }
}
/* --- About Section --- */
.about {
    padding: 80px 20px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    background-size: cover;
}
.about h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

/* --- CTA Section --- */
.cta {
    padding: 80px 20px;
    text-align: center;
    background: #f9f9f9;
    color: #222;
}

/* --- Fade-in Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
    .hero p {
        font-size: 1.4rem;
        margin-top: 3rem;
    }
    .projects-grid,
    .services-grid,
    .expertise-grid {
        gap: 20px;
    }

    .expertise-block {
        height: 240px;
        padding: 20px;
    }
}

/* --- Refined Luxury Footer --- */
.site-footer {
    background: #111;
    color: #ccc;
    padding: 50px 20px 25px;
}

/* Layout */
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
}

/* Brand */
.footer-brand .name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.footer-brand .tagline {
    font-size: 0.8rem;
    color: #777;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* Shared link style (this is the luxury underline effect) */
.footer-links a,
.footer-contact a,
.footer-social a {
    position: relative;
    text-decoration: none;
    color: #aaa;
    font-size: 0.9rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

/* Underline animation */
.footer-links a::after,
.footer-contact a::after,
.footer-social a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-social a:hover {
    color: #fff;
}

.footer-links a:hover::after,
.footer-contact a:hover::after,
.footer-social a:hover::after {
    width: 100%;
}

/* Contact divider */
.footer-contact {
    font-size: 0.85rem;
    color: #777;
}

.footer-contact .divider {
    margin: 0 8px;
    color: #444;
}

/* Social spacing */
.footer-social a {
    margin-left: 12px;
}

/* Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 25px auto 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.75rem;
    color: #666;
}

/* --- Mobile Footer Fixes --- */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;  /* Center all sections */
        text-align: center;   /* Center text */
        gap: 10px;            /* Space between sections */
        padding: 20px 0;
    }

    /* Brand section */
    .footer-brand {
        margin-bottom: 10px;
    }

    /* Footer links & contact */
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0;
    }

    .footer-contact p {
        margin: 5px 0;
    }

    /* Social links stack nicely */
    .footer-social {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .footer-social a {
        margin-left: 0; /* remove horizontal spacing */
    }

    /* Footer bottom */
    .footer-bottom {
        text-align: center;
        padding-top: 20px;
    }
}

/* Apply DM Sans globally */
body {
    font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700; /* headings bold */
}

p, li, a {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400; /* normal text */
}
.hero h1 {
    line-height: 1.2;
    letter-spacing: -0.5px;
}
p {
    line-height: 1.6;
    letter-spacing: 0;
}

.blog-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/*.blog-page h1 {
    text-align: center;
    margin-bottom: 40px;
}*/

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch; /* ensures equal height */
}
/* Tablet */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}


.blog-card h2 {
    margin: 12px 0;
}

.blog-preview {
    padding: 80px 20px;
    text-align: center;
}

.blog-preview h2 {
    margin-bottom: 40px;
}

.view-more {
    margin-top: 40px;
}

.blog-image {
    width: 100%;
    height: 220px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f5f5f5; 
    border-radius: 5px;
}

.blog-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
}

.post-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.post-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

/*.hero-split {
  padding: 20px 20px 40px 20px;
  background-color: #FEFEFA;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}*/

.hero-text h2 {
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 20px;
  color:#222;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  /*color: #555;*/
  color: #333;
}

/*.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 450px;
}*/


.hero-text {
  flex: 1;
  position: relative;
  z-index: 2;
}

.hero-image {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  max-width: 450px;
  display: block;
}

/* Full-width swoosh */

.hero-split {
  position: relative;
  overflow: hidden;
  padding: 60px 20px 2px;
  background-color: #FEFEFA;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-split {
  position: relative;
  overflow: hidden;
}

.hero-curve {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 180px;
  line-height: 0;
}

.hero-curve svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-curve-red {
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-curve-black {
  z-index: 3;
}

/* 📱 Mobile responsive */
@media (max-width: 768px) {
    .hero {
        height: 92vh;
    }
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 0;
  }

  .hero-text h2 {
    font-size: 1.6rem;
  }
}
@media (max-width: 768px) {
  .hero-split {
    padding: 40px 20px 0px;
  }

  .hero-curve {
    width: 100%;
    left: 0;
    height: 115px;
    overflow: hidden;
    bottom: 0px;
  }

  .hero-curve svg {
    width: 180%;
    max-width: none;
    height: 100%;
    transform: translateX(-22%);
  }

  .hero-image {
    width: 100%;
    text-align: center;
  }

  .hero-image img {
    width: 290px;
    max-width: 100%;
    margin: 40px auto 0;
    transform: translateX(-8px);
  }
}


.about {
  position: relative;
  padding: 214px 20px 3px 20px;
  text-align: center;
  color: #fff;
  background-repeat: no-repeat;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* adjust darkness here */
  z-index: 1;
}

/* Make sure content sits above overlay */
.about * {
  position: relative;
  z-index: 2;

}
.about p {
    max-width:900px;
  height: 73vh;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.1rem;
}

.about h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    color: white;
}

.about {
  position: relative;
  color: #fff;
}

/* Overlay */
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* tweak 0.4–0.7 */
  z-index: 1;
}

/* Keep text above overlay */
.about * {
  position: relative;
  z-index: 2;
}
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.4)
  );
  z-index: 1;
}
.about h2,
.about p {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.about p {
  max-width: 700px;
  margin: 0 auto;
}

.service-areas {
  margin-top: 70px;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding-bottom: 90px;
  font-weight: 300;
}

.red-dot {
  width: 25px;
  height: 25px;
  background-color: #c40000;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(196, 0, 0, 0.08);
}

.red-dot-rail {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  gap: 22px;

  padding-top: 6px;
}


.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.blog-card-content h3 {
  min-height: 3.2em;
  margin: 0 0 12px;
}

.blog-excerpt {
  margin-top: auto;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card h3 {
    min-height: auto;
  }
}

/*single post page*/
.post-taxonomy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 18px;
}

.taxonomy-label {
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
}

.post-category-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.post-category-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #15223a;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.post-category-links a:hover {
  background: #d7193f;
  color: #fff;
}

/* =========================
   CATEGORY ARCHIVE PAGE
========================= */

.category-archive, .blog-page, .tag-archive, .search-archive, .archive-page, .index-page {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
  padding: 90px 0 100px;
}

.category-hero,.blog-hero, .tag-hero, .search-hero, .archive-hero, .index-hero {
  max-width: 800px;
  margin-bottom: 50px;
}

.category-eyebrow, .blog-eyebrow, .tag-eyebrow, .search-eyebrow, .archive-eyebrow, .index-eyebrow {
  margin: 0 0 10px;
  color: #d7193f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.category-hero h1, .blog-hero h1, .tag-hero h1,.search-hero h1,.archive-hero h1, .index-hero h1 {
  margin: 0;
  color: #15223a;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
}

.category-description, .tag-description, .blog-description, .search-description, .archive-description, .index-description {
  margin-top: 20px;
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.75;
}

.category-description p:last-child, .tag-description p:last-child, .blog-description p:last-child, .search-description p:last-child, .archive-description p:last-child, .index-description p:last-child {
  margin-bottom: 0;
}

/* Grid */

.category-grid, .blog-grid, .tag-grid, .search-grid, .archive-grid, .index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

/* Cards */

.category-card, .blog-card, .tag-card, .search-card, .archive-card, .index-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(21, 34, 58, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.category-card:hover, .blog-card:hover, .tag-card:hover, .search-card:hover, .archive-card:hover, .index-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(21, 34, 58, 0.12);
}

.category-card-image, .blog-card-image, .tag-card-image, .search-card-image, .archive-card-image, .index-card-image {
  display: block;
  overflow: hidden;
}

.category-card-image img, .blog-card-image img, .tag-card-image img, .search-card-image img, .archive-card-image img, .index-card-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.category-card:hover .category-card-image img, .blog-card:hover .blog-card-image img, .tag-card:hover .tag-card-image img, .search-card:hover .search-card-image img, .archive-card:hover .archive-card-image img, .index-card:hover .index-card-image img {
  transform: scale(1.025);
}

.category-card-content, .blog-card-content, .tag-card-content, .search-card-content, .archive-card-content, .index-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.category-card-date, .blog-card-date, .tag-card-date, .search-card-date, .archive-card-date, .index-card-date {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-card h2,.blog-card h2, .tag-card h2, .search-card h2, .archive-card h2, .index-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.category-card h2 a,.blog-card h2 a, .tag-card h2 a, .search-card h2 a, .archive-card h2 a, .index-card h2 a {
  color: #15223a;
  text-decoration: none;
}

.category-card h2 a:hover,.blog-card h2 a:hover, .tag-card h2 a:hover, .search-card h2 a:hover, .archive-card h2 a:hover, .index-card h2 a:hover {
  color: #d7193f;
}

.category-card-excerpt,.blog-card-excerpt, .tag-card-excerpt, .search-card-excerpt, .archive-card-excerpt, .index-card-excerpt {
  margin-bottom: 22px;
  color: #4b5563;
  line-height: 1.65;
}

.category-read-more, .blog-read-more, .tag-read-more, .search-read-more, .archive-read-more, .index-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: auto;
  color: #d7193f;
  font-weight: 700;
  text-decoration: none;
}

.category-read-more:hover,.blog-read-more:hover, .tag-read-more:hover, .search-read-more:hover, .archive-read-more:hover, .index-read-more:hover {
  color: #15223a;
}

/* Pagination */

.category-pagination,.blog-pagination, .tag-pagination, .search-pagination, .archive-pagination, .index-pagination {
  margin-top: 55px;
}

.category-pagination .nav-links,.blog-pagination .nav-links, .tag-pagination .nav-links, .search-pagination .nav-links,.archive-pagination .nav-links, .index-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.category-pagination .page-numbers,.blog-pagination .page-numbers, .tag-pagination .page-numbers, .search-pagination .page-numbers,.archive-pagination .page-numbers, .index-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  color: #15223a;
  font-weight: 600;
  text-decoration: none;
}

.category-pagination .page-numbers.current,
.category-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover,
.tag-pagination .page-numbers.current,
.tag-pagination .page-numbers:hover,
.search-pagination .page-numbers.current,
.search-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover,
.index-pagination .page-numbers.current,
.index-pagination .page-numbers:hover {
  border-color: #d7193f;
  background: #d7193f;
  color: #fff;
}

/* Empty state */

.category-empty, .blog-empty, .tag-empty, .search-empty, .archive-empty, .index-empty {
  padding: 50px;
  border-radius: 14px;
  background: #f7f7f7;
  text-align: center;
}

/* Tablet */

@media (max-width: 1000px) {
  .category-grid, .blog-grid, .tag-grid, .search-grid, .archive-grid, .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */

@media (max-width: 650px) {
  .category-archive,.blog-page, .tag-page, .search-page, .archive-page, .index-page {
    width: min(100% - 28px, 1280px);
    padding: 60px 0 75px;
  }

  .category-hero,.blog-hero, .tag-hero, .search-hero, .archive-hero, .index-hero {
    margin-bottom: 34px;
  }

  .category-grid, .blog-grid, .tag-grid, .search-grid, .archive-grid, .index-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .category-card-content,.blog-card-content, .tag-card-content, .search-card-content, .archive-card-content, .index-card-content {
    padding: 20px;
  }

  .category-card h2,.blog-card h2, .tag-card h2, .search-card h2, .archive-card h2, .index-card h2 {
    font-size: 1.25rem;
  }
}

.category-hero, .blog-hero, .tag-hero, .search-hero, .archive-hero, .index-hero {
  max-width: 900px;
  margin-bottom: 52px;
}

.category-description,.blog-description, .tag-description, .search-description, .archive-description, .index-description {
  max-width: 760px;
  margin-top: 22px;
  padding-left: 18px;
  border-left: 4px solid #d7193f;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.75;
}

.category-description p,  .blog-description p, .tag-description p, .search-description p, .archive-description p, .index-description p {
  margin: 0;
}
.category-hero h1, .blog-hero h1, .tag-hero h1, .search-hero h1, .archive-hero h1, .index-hero h1 {
  margin: 0;
  color: #15223a;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.05;
}

.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single{
    border-bottom: none;
}

/*quit chopping off heads custom code*/
.custom-image-crop .blog-card-image img, .custom-image-crop .category-card-image img, .custom-image-crop .tag-card-image img, .custom-image-crop .search-card-image img, .custom-image-crop .archive-card-image img, .custom-image-crop .index-card-image img {
    object-position:center 15%;
}

/* --- Services Section without gradient --- */
/*.services {
    padding: 42px 20px 0;
    background: #fefefa;
}

.services h2,
.projects h2 {
    font-size: 2.2rem;
    text-align: center;
    width: 90%;
    margin: 0 auto 28px;
}

.services-grid {
    padding: 28px 20px 60px;
}

@media (max-width: 768px) {
    .services {
        padding-top: 34px;
    }
}*/

/*testing gradient background for services section*/
.services {
    padding: 48px 20px 0;
    margin-top: -2px;
    background: linear-gradient(
        to bottom,
        #1f1f1f 0%,
        #303030 16%,
        #626262 34%,
        #b9b9b9 58%,
        #ececec 78%,
        #f9f9f9 100%
    );
}

.services h2 {
    color: #fff;
    margin: 0 auto 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.services-grid {
    padding: 34px 20px 70px;
}

/* =========================
   NAPERVILLE COMMUNITY HERO
========================= */

.community-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 100px 24px;
  overflow: hidden;
  color: #fff;
}

.community-hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.community-eyebrow {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.community-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
}

.community-hero-tagline {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 1.2rem;
  line-height: 1.7;
}

.community-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.community-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 16px 36px;
  border: 2px solid #fff;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.community-secondary-button:hover {
  background: #fff;
  color: #15223a;
}

@media (max-width: 768px) {
  .community-hero {
    min-height: 560px;
    padding: 80px 20px;
    text-align: center;
  }

  .community-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .community-hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
  }

  .community-hero-actions a {
    width: 100%;
  }
}

/* =========================
   COMMUNITY QUICK FACTS
========================= */

.community-section {
  padding: 90px 24px;
}

.community-section-heading {
  width: min(100%, 850px);
  margin: 0 auto 45px;
  text-align: center;
}

.community-section-heading h2 {
  margin: 0;
  color: #15223a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.community-eyebrow-dark {
  color: #d7193f;
}

.community-facts-section {
  background: #f7f7f7;
}

.community-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(100%, 1150px);
  margin: 0 auto;
}

.community-fact {
  padding: 28px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 34, 58, 0.06);
  text-align: center;
}

.community-fact-label {
  margin: 0 0 8px;
  color: #d7193f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-fact-value {
  margin: 0;
  color: #15223a;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .community-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .community-section {
    padding: 65px 20px;
  }

  .community-facts-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   WHO SHOULD LIVE HERE?
========================= */

.community-best-for {
    background: #fff;
}

.community-section-intro {
    max-width: 750px;
    margin: 24px auto 0;
    line-height: 1.8;
    text-align: center;
}

.community-best-for-grid {
    width: min(100%, 1150px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.community-best-for-item {
    display: flex;
    gap: 18px;
    padding: 28px;
    border-radius: 14px;
    background: #f7f7f7;
    box-shadow: 0 8px 24px rgba(21, 34, 58, 0.06);
}

.community-best-for-item span {
    color: #d7193f;
    font-size: 1.5rem;
    font-weight: 700;
}

.community-best-for-item p {
    margin: 0;
    line-height: 1.7;
}

@media (max-width: 768px) {

    .community-best-for-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================
   LIFESTYLE FEATURES
========================= */

.community-lifestyle {
    background: #f7f7f7;
}

.community-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: min(100%, 1200px);
    margin: 0 auto;
}

.community-feature-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(21, 34, 58, .12);
}

.community-feature-content h3 {
    margin-top: 0;
    color: #15223a;
    font-size: 2rem;
    line-height: 1.2;
}

.community-feature-content p {
    line-height: 1.9;
}

@media (max-width: 900px) {

    .community-feature {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}
.community-feature + .community-feature {
    margin-top: 90px;
}

.community-feature-reverse .community-feature-image {
    order: 2;
}

.community-feature-reverse .community-feature-content {
    order: 1;
}

@media (max-width: 900px) {
    .community-feature + .community-feature {
        margin-top: 65px;
    }

    .community-feature-reverse .community-feature-image,
    .community-feature-reverse .community-feature-content {
        order: initial;
    }
}

/* =========================
   JAKE'S INSIDER TIP
========================= */

.community-insider-tip {
    padding: 110px 24px;
    background: #15223a;
    color: #fff;
}

.community-tip-container {
    width: min(100%, 900px);
    margin: 0 auto;
    text-align: center;
}

.community-tip-container h2 {
    color: #fff;
    margin-top: 0;
    font-size: clamp(2rem, 4vw, 3rem);
}

.community-tip-container blockquote {
    margin: 40px 0 0;
    font-size: 1.35rem;
    line-height: 1.9;
    font-style: italic;
    color: #f4f4f4;
}

@media (max-width: 768px) {

    .community-insider-tip {
        padding: 80px 20px;
    }

    .community-tip-container blockquote {
        font-size: 1.15rem;
    }

}

/* =========================
   FEATURED NEIGHBORHOODS
========================= */

.community-neighborhoods {
    background: #fff;
}

.community-neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    width: min(100%, 1200px);
    margin: 0 auto;
}

.community-neighborhood-card {
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f7f7f7;
    box-shadow: 0 10px 28px rgba(21, 34, 58, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.community-neighborhood-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(21, 34, 58, 0.12);
}

.community-neighborhood-card h3 {
    margin: 0 0 22px;
    color: #15223a;
    font-size: 1.5rem;
    line-height: 1.25;
}

.community-neighborhood-card p {
    margin: 0 0 18px;
    line-height: 1.75;
}

.community-neighborhood-card p:last-child {
    margin-bottom: 0;
}

.community-neighborhood-card strong {
    color: #d7193f;
}

@media (max-width: 950px) {
    .community-neighborhood-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   HOMES FOR SALE CTA
========================= */

.community-homes {
    padding: 110px 24px;
    background: #15223a;
    color: #fff;
}

.community-homes-content {
    width: min(100%, 850px);
    margin: 0 auto;
    text-align: center;
}

.community-homes h2 {
    margin-top: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
}

.community-homes p {
    line-height: 1.9;
}

.community-homes-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.community-secondary-dark {
    border-color: #fff;
    color: #fff;
}

.community-secondary-dark:hover {
    background: #fff;
    color: #15223a;
}

@media (max-width: 768px) {

    .community-homes {
        padding: 80px 20px;
    }

}
/* =========================
   FAQ SECTION
========================= */

.community-faq {
    background: #f7f7f7;
}

.community-faq-list {
    width: min(100%, 900px);
    margin: 0 auto;
}

.community-faq-item {
    margin-bottom: 18px;
    padding: 28px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(21,34,58,.06);
}

.community-faq-item summary {
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    color: #15223a;
}

.community-faq-item p {
    margin-top: 24px;
    line-height: 1.8;
}

.community-faq-item:last-child {
    margin-bottom: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#primary {
    flex: 1;
}

/*contact*/
/* CONTACT PAGE */

.page-id-262 .entry-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.page-id-262 .wpforms-container {
    max-width: 820px;
    margin-top: 32px;
}

.page-id-262 .wpforms-field {
    padding: 10px 0;
}

.page-id-262 .wpforms-field-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.page-id-262 .wpforms-field input,
.page-id-262 .wpforms-field textarea {
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 16px;
    background: #fff;
}

.page-id-262 .wpforms-field input:focus,
.page-id-262 .wpforms-field textarea:focus {
    border-color: #d7193f;
    box-shadow: 0 0 0 1px #d7193f;
    outline: none;
}

.page-id-262 .wpforms-submit-container {
    margin-top: 20px;
}

.page-id-262 .wpforms-submit {
    background: #d7193f !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    min-width: 180px;
    cursor: pointer;
}

.page-id-262 .wpforms-submit:hover {
    background: #b91535 !important;
}

.page-id-262 .wpforms-container input[type="text"],
.page-id-262 .wpforms-container input[type="email"],
.page-id-262 .wpforms-container input[type="tel"] {
    max-width: 100% !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .page-id-262 .entry-content {
        padding: 28px 20px 40px;
    }

    .page-id-262 .wpforms-container {
        max-width: 100%;
    }

    .page-id-262 .wpforms-submit {
        width: 100%;
    }
}

.service-areas a {
    color: inherit;
    text-decoration: none;
}

.service-areas a:hover {
    text-decoration: underline;
}