/* =====================================================
   SGP GLOBAL — global-styles.css
   Place at: /wp-content/themes/my-theme-child/sgp/global-styles.css
   Loaded on ALL pages via functions.php
   ===================================================== */

/* ── RESET & FONTS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue:        #2563eb;
    --blue-dark:   #1d4ed8;
    --blue-light:  #eff6ff;
    --red:         #c0392b;
    --red-dark:    #922b21;
    --sale-green:  #16a34a;
    --rent-orange: #ea580c;
    --dark:        #111827;
    --mid:         #374151;
    --grey:        #6b7280;
    --light:       #f9fafb;
    --border:      #e5e7eb;
    --white:       #ffffff;
    --shadow:      0 4px 20px rgba(0,0,0,.08);
    --shadow-lg:   0 8px 40px rgba(0,0,0,.14);
    --radius:      12px;
    --radius-sm:   8px;
    --serif:       'Playfair Display', Georgia, serif;
    --sans:        'DM Sans', 'Segoe UI', system-ui, sans-serif;
    --nav-h:       68px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--dark); background: var(--light); }

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
.sgp-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    transition: background .3s, box-shadow .3s;
}

.sgp-nav.scrolled {
    background: var(--dark);
    box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

/* On non-hero pages, always show solid nav */
body.no-hero .sgp-nav {
    background: var(--dark);
    box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.sgp-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.sgp-nav-logo {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.sgp-nav-logo img {
    height: 40px;
    width: auto;
}

.sgp-logo-text {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.3px;
}

.sgp-logo-text em {
    font-style: normal;
    color: var(--blue);
}

/* Nav links */
.sgp-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.sgp-nav-links a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color .2s, background .2s;
    white-space: nowrap;
}

.sgp-nav-links a:hover,
.sgp-nav-links a.active {
    color: var(--white);
    background: rgba(255,255,255,.1);
}

/* Nav right */
.sgp-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sgp-nav-cta {
    background: var(--blue);
    color: var(--white) !important;
    padding: 9px 20px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none;
    transition: background .2s !important;
    background-color: var(--blue) !important;
}

.sgp-nav-cta:hover {
    background: var(--blue-dark) !important;
    background-color: var(--blue-dark) !important;
}

/* Hamburger */
.sgp-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 36px;
    height: 36px;
}

.sgp-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all .25s;
    transform-origin: center;
}

.sgp-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sgp-hamburger.open span:nth-child(2) { opacity: 0; }
.sgp-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.sgp-mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--dark);
    padding: 8px 20px 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.sgp-mobile-menu.open {
    display: flex;
    max-height: 500px;
}

.sgp-mobile-menu a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: color .2s;
}

.sgp-mobile-menu a:hover { color: var(--white); }

.sgp-mobile-cta {
    margin-top: 14px;
    background: var(--blue);
    color: var(--white) !important;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 12px !important;
    border-bottom: none !important;
    font-weight: 600 !important;
}

/* Spacer to push content below fixed nav */
.sgp-nav-spacer { height: var(--nav-h); }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.sgp-footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    font-family: var(--sans);
}

.sgp-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 28px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

/* Footer logo */
.sgp-footer-logo {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 14px;
}

.sgp-footer-logo em {
    font-style: normal;
    color: var(--blue);
}

.sgp-footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 260px;
}

.sgp-footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sgp-footer-contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.6);
}

/* Footer columns */
.sgp-footer-col h4 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
}

.sgp-footer-col a {
    display: block;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 10px;
    transition: color .2s;
}

.sgp-footer-col a:hover { color: var(--white); }

.sgp-footer-cta {
    display: inline-block;
    background: var(--blue);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 12px;
    transition: background .2s;
}

.sgp-footer-cta:hover { background: var(--blue-dark) !important; }

.sgp-footer-wa {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #25D366 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0 !important;
    transition: opacity .2s;
}

.sgp-footer-wa:hover { opacity: .8; }

/* Footer bottom bar */
.sgp-footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 28px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,.35);
    flex-wrap: wrap;
    gap: 8px;
}

/* ════════════════════════════════
   SHARED UTILITIES
════════════════════════════════ */
.sgp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sgp-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
}

.sgp-section-head.centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sgp-section-title {
    font-family: var(--serif);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.sgp-section-sub {
    font-size: 15px;
    color: var(--grey);
    max-width: 520px;
}

.sgp-form-message {
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}

.sgp-form-message.success { background: #dcfce7; color: #166534; }
.sgp-form-message.error   { background: #fee2e2; color: #991b1b; }

/* ════════════════════════════════
   RESPONSIVE — NAVBAR & FOOTER
════════════════════════════════ */
@media (max-width: 1024px) {
    .sgp-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .sgp-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .sgp-nav-links { display: none; }
    .sgp-hamburger { display: flex; }
    .sgp-nav-cta { display: none; }

    .sgp-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding: 40px 20px 28px;
    }

    .sgp-footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .sgp-footer-inner {
        grid-template-columns: 1fr;
    }
    .sgp-footer-brand { grid-column: 1; }
    .sgp-nav-inner { padding: 0 16px; }
}
