/* 
* Surgery Premises Group - Main Stylesheet
* A clean, professional design for healthcare property management
*/

/* Base Styles & Variables */
:root {
    --primary-color: #a6ce39; /* Light green from logo */
    --secondary-color: #1a3a52; /* Dark blue from logo */
    --light-color: #ffffff;
    --dark-color: #333333;
    --grey-color: #f5f5f5;
    --text-color: #444444;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    /* new */
    --info-bar-height: 44px; /* increased height for better centering */
}

.social-links { display: inline-flex; gap: 1.2rem; }
.social-links a { color: inherit; display: inline-flex; align-items: center; }
.social-links a:hover { color: var(--light-color); }
.social-links a { transition: color 0.2s ease; }
.social-icon { width: 18px; height: 18px; display: inline-block; transition: filter 0.2s ease; }
.social-links a:hover .social-icon { filter: brightness(0) invert(1); }

.footer-social { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.footer-social a { display: inline-flex; }
.footer-social a img { filter: brightness(0) invert(1); transition: filter 0.2s ease; }
.footer-social a:hover img { filter: invert(63%) sepia(70%) saturate(377%) hue-rotate(49deg) brightness(96%) contrast(93%); }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    cursor: default;
}

/* Remove any custom cursor elements */
.custom-cursor,
.cursor-circle,
.cursor-dot,
[class*="cursor"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Left-aligned green lines for specific sections */
.about h2:after {
    left: 0;
    transform: none;
}

/* Centred green line for properties section */
.properties h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Centred green line for contact section */
.contact h2:after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

section {
    padding: 5rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: white;
    color: var(--secondary-color);
    border: 2px solid white;
}

.btn-primary:hover {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary {
    background-color: white;
    color: var(--secondary-color);
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-contact {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
}

.btn-contact:hover {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transform: none !important;
}

/* Remove underline animation from contact button */
.btn-contact::after {
    display: none !important;
}

/* Green Services Button */
.btn-services-green {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.btn-services-green:hover {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

/* Green Assessment Button */
.btn-assessment-green {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

.btn-assessment-green:hover {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
}

/* Header & Navigation */
header {
    position: fixed;
    top: var(--info-bar-height); /* ensure sits under info bar */
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1.32rem 0; /* increased by ~15% from 1.15rem */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* vertical centering for logo + menu */
    gap: 1rem;
}

.logo {
    width: 140px; /* slightly larger to match increased header height */
    display: flex;
    align-items: center; /* vertically center svg */
}

nav ul {
    display: flex;
    align-items: center; /* vertically center menu items */
    gap: 1.25rem;
}

header.header-scrolled {
    padding: 0.92rem 0; /* increased by ~15% from 0.8rem */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header.header-scrolled .logo {
    transform: scale(0.92);
}

@media screen and (max-width: 768px) {
    header {
        top: var(--info-bar-height); /* keep below info bar on mobile too */
        padding: 1.32rem 0; /* increased by ~15% */
    }
    header.header-scrolled { padding: 0.92rem 0; }
    .logo { width: 130px; }
}

/* Header states for scroll animations */
header.header-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

header.header-scrolled {
    padding: 0.92rem 0; /* increased by ~15% from 0.8rem */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header.header-scrolled .logo {
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    width: 130px;
    display: flex;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#spg-logo {
    width: 100%;
    height: auto;
}

.logo-text-top {
    fill: var(--primary-color);
    font-family: var(--heading-font);
    font-size: 36px;
    font-weight: 700;
}

.logo-text-bottom {
    fill: var(--secondary-color);
    font-family: var(--heading-font);
    font-size: 36px;
    font-weight: 700;
}

.logo-text-group {
    fill: var(--primary-color);
    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-family: var(--heading-font);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--light-color);
    margin-top: 0;
    padding-top: 92px;
    position: relative;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 58, 82, 0.8), rgba(26, 58, 82, 0.8));
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.hero h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    margin-left: 0;
    padding-left: 0;
    line-height: 1.2;
    min-height: 2.4em; /* Reserve space for 2 lines */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#typewriter-text {
    display: inline;
}

#typewriter-cursor {
    display: inline-block;
    color: var(--primary-color);
    animation: blink 1s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    margin-left: 0;
    padding-left: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-left: 0;
    padding-left: 0;
}

/* Stats Bar Section */
.stats-bar {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #4a5568 100%);
    color: var(--light-color);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(166, 206, 57, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:nth-child(1).animate {
    transition-delay: 0.1s;
}

.stat-item:nth-child(2).animate {
    transition-delay: 0.2s;
}

.stat-item:nth-child(3).animate {
    transition-delay: 0.3s;
}

.stat-item:nth-child(4).animate {
    transition-delay: 0.4s;
}

.stat-item:hover {
    transform: translateY(-5px);
    cursor: default;
}

.stat-item:hover .stat-number {
    color: #b8d96a;
    text-shadow: 0 0 15px rgba(166, 206, 57, 0.4);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
    position: relative;
    display: inline-block;
}

.stat-number.counting {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(166, 206, 57, 0.5);
    }
    100% {
        transform: scale(1);
    }
}

.stat-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(166, 206, 57, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.stat-item.animate .stat-number::before {
    transform: translate(-50%, -50%) scale(1);
}

.stat-label {
    font-size: 1rem;
    color: var(--light-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
        min-height: 3.6em; /* Reserve space for potential line wrapping */
        line-height: 1.2;
        display: block;
        overflow: hidden;
    }
    
    #typewriter-text {
        display: inline;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.75rem;
        min-height: 4.2em; /* Reserve space for 3 lines to prevent layout shifts */
        line-height: 1.2;
        padding: 0; /* Remove padding for proper left alignment */
        text-align: left; /* Keep left aligned on mobile */
        margin-bottom: 1.5rem; /* Reduced bottom margin under title */
        display: block; /* Ensure proper block behavior */
        overflow: hidden; /* Prevent content overflow */
    }
    
    #typewriter-text {
        display: inline;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    #typewriter-cursor {
        display: inline;
    }
    
    .hero p {
        padding: 0; /* Remove padding for proper left alignment */
        margin-bottom: 2.5rem; /* Add more space before buttons */
    }
    
    h2 {
        font-size: 1.3rem; /* Even smaller on smallest screens */
    }
}

/* Services Section */
.services {
    background-color: var(--grey-color);
}

.services h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(166, 206, 57, 0.1);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #8bc34a, #7cb342);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(166, 206, 57, 0.2);
}

.service-title-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8bc34a 50%, #7cb342 100%);
    padding: 2rem 2rem 1.8rem;
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-title-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover .service-title-box::after {
    left: 100%;
}

.service-title-box h3 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
}

.service-card:hover .service-title-box {
    background: linear-gradient(135deg, #7cb342 0%, var(--primary-color) 50%, #8bc34a 100%);
    transform: scale(1.01);
}

.service-card:hover .service-title-box h3 {
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.service-card p {
    padding: 2.5rem 2rem 2rem;
    margin: 0;
    transition: all 0.3s ease;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

.service-card:hover p {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Carousel (Accreditations & Partners) */
.logo-carousel {
    background-color: #ffffff;
    padding: 2.86rem 0;
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.logo-carousel h2 { text-align: center; margin-bottom: 1.5rem; }

.logo-carousel .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.logo-strip {
    overflow: hidden;
    width: 100%;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 9rem;
    width: max-content;
    animation: logoScroll 40s linear infinite;
    will-change: transform;
}


.logo-item img {
    height: 140px;
    width: auto;
    opacity: 0.85;
    filter: grayscale(100%) brightness(0.88);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform, opacity, filter;
    transform: translateZ(0);
    backface-visibility: hidden;
    transform-origin: center;
}

.logo-item img:hover {
    transform: scale(1.1) translateZ(0);
    opacity: 1;
    filter: grayscale(0%) brightness(1.08);
}

@keyframes logoScroll {
    0% { transform: translateX(50%); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .logo-item img { height: 110px; }
    .logo-track { gap: 6rem; animation-duration: 30s; }
}

/* Comprehensive Services Section */
.comprehensive-services {
    background-color: var(--light-color);
    padding: 5rem 0;
}

.comprehensive-services .section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-category {
    background-color: var(--grey-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-header {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 1.5rem;
    text-align: center;
}

.category-header h3 {
    color: var(--light-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.category-header p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.service-list {
    padding: 1.5rem;
}

.service-item {
    background-color: var(--light-color);
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.service-item:hover {
    background-color: rgba(166, 206, 57, 0.1);
    transform: translateX(5px);
}

.service-item:last-child {
    margin-bottom: 0;
}

/* About Section */
.about {
    padding: 3.5rem 0 3rem 0;
    overflow: visible;
    position: relative;
    background: white;
}

.about h2 {
    margin-bottom: 0.8rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    min-height: auto;
}

.about-text {
    padding-right: 1rem;
}

.about-text p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    color: #666;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 450px;
    height: 350px;
    object-fit: contain;
    background: transparent;
    border: none;
    outline: none;
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
    z-index: 2;
}

.about-image img:hover {
    transform: scale(1.05) translateY(-10px);
    filter: brightness(1.1);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--grey-color);
    border-radius: var(--border-radius);
    background: url('https://source.unsplash.com/random/600x400/?medical,clinic') no-repeat center center/cover;
}

/* Properties Section */
.properties {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
}

.properties-header {
    text-align: center;
    margin-bottom: 4rem;
}

.properties h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.properties-subtitle {
    color: #6c757d;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.property-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.property-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
}

.property-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.property-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.property-content h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.property-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.property-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.property-features li {
    color: var(--secondary-color);
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-weight: 500;
}

.property-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--grey-color);
    text-align: center;
}

.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-container {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
    pointer-events: none;
    will-change: transform, opacity;
}

.testimonial.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.testimonial.slide-left {
    transform: translateX(-100%);
    opacity: 0;
}

.testimonial.slide-right {
    transform: translateX(100%);
    opacity: 0;
}

.testimonial.slide-center {
    transform: translateX(0);
    opacity: 1;
}

.testimonial p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.testimonial-author .name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.testimonial-author .role {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

/* Contact Section */
.contact h2 {
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    align-items: stretch;
}

.contact-form {
    max-width: 600px;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.checkbox-group {
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
    justify-content: start;
    margin-top: -2px;
}

.form-group.checkbox-group input[type="checkbox"] {
    accent-color: var(--primary-color);
    margin: 0;
    justify-self: start;
    margin-top: 3px;
}

.form-group.checkbox-group label {
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    margin: 0;
    justify-self: start;
}



.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Checkbox specific styling */



.required-asterisk {
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-button-container {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-send-message {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: 2px solid var(--primary-color) !important;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-send-message:hover {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-send-message:disabled,
.btn-send-message.disabled {
    background-color: #d3d3d3 !important;
    border-color: #d3d3d3 !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}

.btn-send-message:disabled:hover,
.btn-send-message.disabled:hover {
    background-color: #d3d3d3 !important;
    border-color: #d3d3d3 !important;
    color: #888888 !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}

.contact-info {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-info-green {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.contact-info h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-info .contact-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info .contact-line img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.contact-info .contact-line a {
    color: inherit;
    font-weight: 600;
}

.contact-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.contact-social-title {
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--heading-font);
    color: var(--secondary-color);
    opacity: 0.95;
    margin-bottom: 0.75rem;
}

.contact-social-icons {
    display: flex;
    gap: 0.75rem;
}

.contact-social-separator {
    height: 2px;
    background: var(--light-color);
    opacity: 0.9;
    margin: 0.25rem 0 0.5rem;
}

.contact-info-separator {
    height: 2px;
    background: var(--light-color);
    opacity: 0.9;
    margin: 0.25rem 0 0.75rem;
}

/* Subtle animated gradient for the green contact panel */
.contact-info-green {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8bc34a 50%, var(--primary-color) 100%);
    background-size: 200% 200%;
    animation: greenGradient 4s ease infinite;
}

@keyframes greenGradient {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.contact-social-icons img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
}

.contact-social-icons a:hover img {
    filter: invert(18%) sepia(14%) saturate(1365%) hue-rotate(172deg) brightness(92%) contrast(92%);
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a4a62 100%);
    color: var(--light-color);
    padding: 5rem 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--light-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content h2:after {
    background-color: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
}

.cta-content > p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cta-feature {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.cta-feature.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.cta-feature:nth-child(1) {
    transition-delay: 0.1s;
}

.cta-feature:nth-child(2) {
    transition-delay: 0.2s;
}

.cta-feature:nth-child(3) {
    transition-delay: 0.3s;
}

.cta-feature:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta-feature h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cta-feature p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    width: 180px;
}

#spg-logo-footer {
    width: 100%;
    height: auto;
}

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

.footer-nav h4,
.footer-services h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-nav ul,
.footer-services ul {
    list-style: none;
}

.footer-nav ul li,
.footer-services ul li {
    margin-bottom: 0.5rem;
}

.footer-nav ul li a {
    color: var(--light-color);
}

.footer-nav ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        padding-right: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 1.32rem 0; /* increased by ~15% from 1.15rem */
    }
    
    header.header-scrolled {
        padding: 0.8rem 0; /* increased from 0.7rem */
    }
    
    header.header-scrolled .logo {
        transform: scale(0.85);
    }
    
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        box-shadow: var(--shadow);
        padding: 1rem 0;
        transform: translateY(-150%);
        transition: var(--transition);
        opacity: 0;
    }
    
    nav ul.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 0.8rem 0;
    }
    
    .mobile-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .hero {
        height: 100vh;
        min-height: 100vh;
        padding-top: 138px;
        padding-bottom: 3rem;
        display: flex;
        align-items: flex-end;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.25rem; /* Further reduced gap between buttons */
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0; /* Remove margin from last button */
    }
    
    .hero .container {
        height: 100%;
        padding: 3px 1rem 0; /* more top padding for optical vertical centering */
        display: flex;
        justify-content: center;
        align-items: center; /* vertical centering of items */
    }
    
    .services-grid,
    .property-types {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .logo {
        width: 120px; /* Intermediate size for tablets */
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .logo {
        width: 105px; /* 30% smaller than 150px */
        align-items: center;
        justify-content: flex-start;
    }
}

/* Info Bar refinements */
.info-bar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1100;
  height: var(--info-bar-height);
  background: linear-gradient(45deg, #7ab83a 0%, var(--primary-color) 25%, #b6dd4f 50%, var(--primary-color) 75%, #7ab83a 100%);
  background-size: 500% 500%;
  animation: infoGradient 4s linear infinite;
  color: var(--secondary-color); /* default navy text */
  font-family: var(--heading-font);
  font-weight: 400; /* normal weight by default */
  font-size: 0.68rem;
  line-height: var(--info-bar-height);
}

.info-bar .container {
  height: 100%;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.info-items { display: flex; gap: 1rem; align-items: center; white-space: nowrap; line-height: inherit; height: 100%; }
.info-item { display: inline-flex; align-items: center; gap: 0.5rem; line-height: inherit; color: var(--secondary-color); margin-bottom: 0; }
.info-separator { display: inline-flex; align-items: center; opacity: 0.6; margin: 0 0.75rem; line-height: inherit; vertical-align: middle; }

.info-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; vertical-align: middle; }
.info-icon svg { display: block; width: 100%; height: 100%; fill: currentColor; stroke: currentColor; }

.info-link { color: inherit; font-weight: 400; line-height: inherit; text-decoration: none; vertical-align: middle; }
.info-item:hover { color: var(--light-color); }
.info-item:hover .info-link { color: var(--light-color); text-decoration: underline; }

@keyframes infoGradient {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

@media (max-width: 768px) {
  :root { --info-bar-height: 44px; } /* keep height consistent */
  .info-bar { font-size: 0.60rem; }
  .info-bar .container { padding: 0 0.75rem; }
  .info-items { white-space: nowrap; flex-wrap: nowrap; gap: 0.5rem; }
  .info-icon { width: 14px; height: 14px; }
  .info-separator { display: none; }
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.modal-close-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}



.modal-close-btn:hover {
    background: var(--secondary-color);
}

/* Scroll Animation Classes - Mobile Only */
@media (max-width: 768px) {
    /* Base animation classes */
    .fade-in-up,
    .fade-in-down,
    .fade-in-left,
    .fade-in-right,
    .fade-in {
        opacity: 0;
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform, opacity;
    }
    
    /* Fade in from bottom */
    .fade-in-up {
        transform: translateY(30px);
    }
    
    .fade-in-up.animate {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Fade in from top */
    .fade-in-down {
        transform: translateY(-30px);
    }
    
    .fade-in-down.animate {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Fade in from left */
    .fade-in-left {
        transform: translateX(-30px);
    }
    
    .fade-in-left.animate {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Fade in from right */
    .fade-in-right {
        transform: translateX(30px);
    }
    
    .fade-in-right.animate {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Simple fade in */
    .fade-in {
        transform: scale(0.95);
    }
    
    .fade-in.animate {
        opacity: 1;
        transform: scale(1);
    }
    
    /* Staggered animation delays */
    .fade-delay-1 { transition-delay: 0.1s; }
    .fade-delay-2 { transition-delay: 0.2s; }
    .fade-delay-3 { transition-delay: 0.3s; }
    .fade-delay-4 { transition-delay: 0.4s; }
    .fade-delay-5 { transition-delay: 0.5s; }
    
    /* Faster animations for smaller elements */
    .fade-fast {
        transition-duration: 0.5s;
    }
    
    /* Slower animations for larger sections */
    .fade-slow {
        transition-duration: 1.2s;
    }
}

/* Desktop Scroll Animation Classes */
@media (min-width: 769px) {
    /* Base animation classes for desktop */
    .desktop-fade-in-up,
    .desktop-fade-in-down,
    .desktop-fade-in-left,
    .desktop-fade-in-right,
    .desktop-fade-in,
    .desktop-slide-in-left,
    .desktop-slide-in-right,
    .desktop-zoom-in {
        opacity: 0;
        transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform, opacity;
    }
    
    /* Fade in from bottom - more subtle for desktop */
    .desktop-fade-in-up {
        transform: translateY(40px);
    }
    
    .desktop-fade-in-up.animate {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Fade in from top */
    .desktop-fade-in-down {
        transform: translateY(-40px);
    }
    
    .desktop-fade-in-down.animate {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Slide in from left - larger movement for desktop */
    .desktop-fade-in-left,
    .desktop-slide-in-left {
        transform: translateX(-60px);
    }
    
    .desktop-fade-in-left.animate,
    .desktop-slide-in-left.animate {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Slide in from right - larger movement for desktop */
    .desktop-fade-in-right,
    .desktop-slide-in-right {
        transform: translateX(60px);
    }
    
    .desktop-fade-in-right.animate,
    .desktop-slide-in-right.animate {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Zoom in effect for desktop */
    .desktop-zoom-in {
        transform: scale(0.9);
    }
    
    .desktop-zoom-in.animate {
        opacity: 1;
        transform: scale(1);
    }
    
    /* Simple fade in */
    .desktop-fade-in {
        transform: scale(0.98);
    }
    
    .desktop-fade-in.animate {
        opacity: 1;
        transform: scale(1);
    }
    
    /* Desktop-specific staggered animation delays */
    .desktop-delay-1 { transition-delay: 0.15s; }
    .desktop-delay-2 { transition-delay: 0.3s; }
    .desktop-delay-3 { transition-delay: 0.45s; }
    .desktop-delay-4 { transition-delay: 0.6s; }
    .desktop-delay-5 { transition-delay: 0.75s; }
    .desktop-delay-6 { transition-delay: 0.9s; }
    
    /* Desktop timing variations */
    .desktop-fast {
        transition-duration: 0.7s;
    }
    
    .desktop-slow {
        transition-duration: 1.4s;
    }
    
    .desktop-extra-slow {
        transition-duration: 1.8s;
    }
    
    /* Special desktop effects */
    .desktop-bounce-in {
        opacity: 0;
        transform: scale(0.3);
        transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .desktop-bounce-in.animate {
        opacity: 1;
        transform: scale(1);
    }
    
    /* Parallax-style effect for larger sections */
    .desktop-parallax {
        opacity: 0;
        transform: translateY(80px) scale(0.95);
        transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .desktop-parallax.animate {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
