/* ============================================================
   Estate DNC — Global Site Facelift
   Targets the existing estatednc.com theme/Elementor styles.
   Paste the entire contents of this file into:
   WordPress Dashboard > Appearance > Customize > Additional CSS
   (or load via the plugin as-is)
   ============================================================ */

/* ---- GLOBAL TYPOGRAPHY & BASE ---- */
body {
    font-family: 'Raleway', 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Optima', 'Raleway', Georgia, serif;
    letter-spacing: 0.02em;
}

/* ---- SMOOTH SCROLL ---- */
html { scroll-behavior: smooth; }

/* ---- LINKS ---- */
a { transition: color 0.25s ease; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

/* Sticky header: slightly frosted glass look */
.site-header,
header.elementor-location-header,
.elementor-location-header {
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    background-color: rgba(20, 20, 20, 0.92) !important;
    border-bottom: 1px solid rgba(184, 151, 90, 0.25);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Nav links */
.elementor-nav-menu a,
.elementor-nav-menu--main .elementor-item {
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: color 0.25s ease !important;
}
.elementor-nav-menu a:hover,
.elementor-nav-menu--main .elementor-item:hover {
    color: #b8975a !important;
}

/* Active nav item */
.elementor-nav-menu--main .elementor-item.elementor-item-active {
    color: #b8975a !important;
    border-bottom: 2px solid #b8975a;
}

/* ============================================================
   HERO / BANNER SECTIONS
   ============================================================ */

.elementor-widget-image img,
.elementor-background-overlay {
    transition: opacity 0.5s ease;
}

/* Make hero text more impactful */
.elementor-widget-heading .elementor-heading-title {
    letter-spacing: 0.03em;
    line-height: 1.2;
}

/* Gold accent text for highlight headings */
.text-gold,
.elementor-widget-heading.text-gold .elementor-heading-title {
    color: #b8975a !important;
}

/* ============================================================
   SECTION DIVIDERS & SPACING
   ============================================================ */

/* Section transition: subtle bottom rule using gold */
.elementor-section.has-divider::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #b8975a;
    margin: 32px auto 0;
    border-radius: 2px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.elementor-button,
.elementor-button-wrapper .elementor-button,
a.wp-block-button__link {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700 !important;
    border-radius: 4px !important;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease !important;
}
.elementor-button:hover,
a.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
}

/* Primary CTA button — gold */
.elementor-button.btn-gold,
.btn-gold .elementor-button {
    background-color: #b8975a !important;
    border-color: #b8975a !important;
    color: #fff !important;
}
.elementor-button.btn-gold:hover,
.btn-gold .elementor-button:hover {
    background-color: #9a7b43 !important;
}

/* ============================================================
   PROJECT / PORTFOLIO CARDS
   ============================================================ */

/* Upgrade existing project cards with a cleaner hover */
.elementor-portfolio-item,
.elementor-gallery-item,
.elementor-posts--skin-cards .elementor-post {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease !important;
}
.elementor-portfolio-item:hover,
.elementor-gallery-item:hover,
.elementor-posts--skin-cards .elementor-post:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.16) !important;
}

/* Image zoom on hover */
.elementor-portfolio-item img,
.elementor-gallery-item img,
.elementor-posts--skin-cards .elementor-post-thumbnail img {
    transition: transform 0.6s ease !important;
}
.elementor-portfolio-item:hover img,
.elementor-gallery-item:hover img,
.elementor-posts--skin-cards .elementor-post:hover .elementor-post-thumbnail img {
    transform: scale(1.06) !important;
}

/* Overlay text improvement */
.elementor-portfolio-item .elementor-portfolio-item__overlay,
.elementor-gallery-item__overlay {
    background: linear-gradient(to top, rgba(20,20,20,0.85) 0%, rgba(184,151,90,0.4) 100%) !important;
    transition: opacity 0.4s ease !important;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.elementor-testimonial-wrapper,
.elementor-testimonial__content {
    border-radius: 8px;
}
.elementor-testimonial__text {
    line-height: 1.8 !important;
    font-size: 1.05rem !important;
}
.elementor-testimonial__cite {
    color: #b8975a !important;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* ============================================================
   INSTAGRAM FEED
   ============================================================ */

.instagram-feed-wrapper,
#sbi_images,
.sbi_photo_wrap img {
    border-radius: 6px !important;
    overflow: hidden;
}
.sbi_photo_wrap:hover img {
    opacity: 0.85;
    transform: scale(1.04);
    transition: all 0.35s ease;
}

/* ============================================================
   CONTACT / FORM SECTIONS
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    border-radius: 6px !important;
    border-color: #ddd !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #b8975a !important;
    box-shadow: 0 0 0 3px rgba(184,151,90,0.15) !important;
    outline: none !important;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer,
.elementor-location-footer {
    border-top: 1px solid rgba(184,151,90,0.2);
}

/* ============================================================
   SCROLL-TO-TOP BUTTON (if theme has one)
   ============================================================ */
.back-to-top,
.pojo-a11y-toolbar-toggle,
[class*="scroll-top"] {
    background: #b8975a !important;
    border-color: #b8975a !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
}
.back-to-top:hover,
[class*="scroll-top"]:hover {
    background: #9a7b43 !important;
    transform: translateY(-2px);
}

/* ============================================================
   SECTION HEADINGS — Elegant underline accent
   ============================================================ */

.estate-section-title,
.section-title,
.elementor-heading-title.underline-gold {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.estate-section-title::after,
.section-title::after,
.elementor-heading-title.underline-gold::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #b8975a;
    border-radius: 2px;
}

/* ============================================================
   LOADING / PAGE TRANSITIONS
   ============================================================ */

.elementor-widget {
    animation: estateIn 0.5s ease both;
}
@keyframes estateIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Stagger children */
.elementor-widget:nth-child(1)  { animation-delay: 0.05s; }
.elementor-widget:nth-child(2)  { animation-delay: 0.10s; }
.elementor-widget:nth-child(3)  { animation-delay: 0.15s; }
.elementor-widget:nth-child(4)  { animation-delay: 0.20s; }
.elementor-widget:nth-child(5)  { animation-delay: 0.25s; }

/* ============================================================
   MOBILE REFINEMENTS
   ============================================================ */
@media (max-width: 767px) {
    .elementor-widget-heading .elementor-heading-title {
        line-height: 1.3 !important;
    }
    .elementor-button {
        width: 100% !important;
        text-align: center !important;
    }
    .elementor-nav-menu--mobile .elementor-item {
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        padding: 14px 0 !important;
    }
}
