/* ========================================
   Sandy's Estates - Global Styles
   ======================================== */

/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* ========================================
   Header & Navigation
   ======================================== */
header {
    background-color: #ffffff;
    border-bottom: 2px solid #b8960c;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
}

nav {
    text-align: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

nav li a:hover,
nav li a.active {
    color: #ffffff;
    background-color: #b8960c;
    box-shadow: 0 4px 12px rgba(184, 150, 12, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

h1 {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #2d2d2d;
    letter-spacing: 1px;
}

.logo-tagline {
    font-size: 11px;
    color: #b8960c;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-top: 2px;
}

/* ========================================
   Page Banner (used on inner pages)
   ======================================== */
.page-banner {
    background-color: #1a1a1a;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(184, 150, 12, 0.06) 0%, transparent 60%);
}

.page-banner h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.page-banner .subtitle {
    color: #b8960c;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-style: italic;
    margin: 0;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.page-banner .banner-divider {
    width: 60px;
    height: 2px;
    background-color: #b8960c;
    margin: 20px auto;
    position: relative;
    z-index: 1;
}

/* Banner gold lines */
.page-banner .banner-line-left,
.page-banner .banner-line-right {
    position: absolute;
    top: 50%;
    height: 1px;
    width: 120px;
    z-index: 1;
}

.page-banner .banner-line-left {
    left: 0;
    background: linear-gradient(to right, #b8960c, transparent);
    opacity: 0.2;
}

.page-banner .banner-line-right {
    right: 0;
    background: linear-gradient(to left, #b8960c, transparent);
    opacity: 0.2;
}

/* ========================================
   Hero Section (Homepage)
   ======================================== */
.hero {
    background-color: #1a1a1a;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(184, 150, 12, 0.06) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 0 20px;
}

.hero-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background-color: #b8960c;
    margin: 20px auto;
}

.hero-content .subtitle {
    color: #b8960c;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-style: italic;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

.hero-content .description {
    color: #a0a0a0;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 30px 0;
    font-weight: 300;
}

.hero-cta {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid #b8960c;
    color: #b8960c;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-cta:hover {
    background-color: #b8960c;
    color: #1a1a1a;
}

/* Skyline */
.skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    z-index: 2;
    opacity: 0.6;
}

/* Geometric accents */
.geo-ring {
    position: absolute;
    border: 1px solid #b8960c;
    border-radius: 50%;
    z-index: 1;
}

.geo-ring-1 { top: 60px; right: 80px; width: 200px; height: 200px; opacity: 0.08; }
.geo-ring-2 { top: 100px; right: 120px; width: 120px; height: 120px; opacity: 0.06; }
.geo-ring-3 { top: 80px; left: 60px; width: 160px; height: 160px; opacity: 0.07; }

.geo-diamond {
    position: absolute;
    border: 1px solid #b8960c;
    transform: rotate(45deg);
    z-index: 1;
}

.geo-diamond-1 { bottom: 280px; left: 100px; width: 30px; height: 30px; opacity: 0.12; }
.geo-diamond-2 { bottom: 300px; right: 120px; width: 20px; height: 20px; opacity: 0.1; }

.gold-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(to right, transparent, #b8960c, transparent);
    z-index: 1;
    opacity: 0.15;
}

.gold-line-top { top: 40px; left: 10%; right: 10%; }
.gold-line-bottom { bottom: 260px; left: 15%; right: 15%; }

.gold-vline {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #b8960c, transparent);
    z-index: 1;
    opacity: 0.1;
}

.gold-vline-left { left: 40px; top: 20%; bottom: 40%; }
.gold-vline-right { right: 40px; top: 20%; bottom: 40%; }

/* ========================================
   Services Grid
   ======================================== */
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

.services-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.services-intro h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    color: #2d2d2d;
    margin: 0 0 15px 0;
}

.services-intro p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    font-weight: 300;
}

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

.service-card {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 35px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #b8960c;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card:hover {
    border-color: #b8960c;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: #1a1a1a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    fill: #b8960c;
}

.service-card h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    color: #2d2d2d;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.service-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    font-weight: 300;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: #1a1a1a;
    padding: 40px 20px;
    text-align: center;
    border-top: 2px solid #b8960c;
}

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

.footer .footer-contact {
    color: #ffffff;
}

.footer .footer-contact a {
    color: #ffffff;
    text-decoration: none;
}

.footer .footer-contact .gold {
    color: #b8960c;
}

.footer .footer-info {
    color: #888888;
}

.footer .footer-info a {
    color: #888888;
    text-decoration: none;
}

.footer-accreditation {
    background-color: #ffffff;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.footer-badge {
    height: 50px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer-badge:hover {
    opacity: 1;
}

.footer .footer-copyright {
    color: #555;
    font-size: 13px;
    margin-top: 15px;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials-section {
    background-color: #ffffff;
    padding: 80px 40px;
}

.testimonials-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.testimonials-inner h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    color: #2d2d2d;
    margin: 0 0 10px 0;
}

.testimonials-rating {
    margin-bottom: 40px;
}

.testimonials-rating .stars {
    color: #b8960c;
    font-size: 24px;
    letter-spacing: 2px;
}

.testimonials-rating .rating-text {
    display: block;
    color: #666;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 300;
}

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

.testimonial-card {
    background-color: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 30px 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #b8960c;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.testimonial-card:hover {
    border-color: #b8960c;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-stars {
    color: #b8960c;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.testimonial-text {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 15px 0;
    font-weight: 300;
    font-style: italic;
}

.testimonial-author {
    color: #2d2d2d;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   CTA Banner
   ======================================== */
.cta-banner {
    background-color: #2d2d2d;
    padding: 80px 20px;
    text-align: center;
}

.cta-banner h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #ffffff;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.cta-banner p {
    color: #a0a0a0;
    font-size: 15px;
    margin: 0 0 25px 0;
    font-weight: 300;
}

.cta-banner a {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid #b8960c;
    color: #b8960c;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-banner a:hover {
    background-color: #b8960c;
    color: #1a1a1a;
}

/* ========================================
   Focus styles (keyboard navigation)
   ======================================== */
:focus-visible {
    outline: 2px solid #b8960c;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    nav ul {
        gap: 4px;
        flex-wrap: wrap;
    }

    nav li a {
        font-size: 12px;
        padding: 6px 10px;
    }

    .hero {
        height: 500px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content .subtitle {
        font-size: 15px;
        letter-spacing: 1.5px;
    }

    .skyline {
        height: 180px;
    }

    .page-banner {
        padding: 50px 20px;
    }

    .page-banner h2 {
        font-size: 30px;
    }

    .services-section {
        padding: 50px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonials-section {
        padding: 50px 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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