/* ============================================
   ROYALE GROUP - Real Estate Website
   Design System & Custom Styles
   ============================================ */

/* CSS Variables - Design System */
:root {
    /* Colors */
    --color-primary: #1F5C57; /* New Green - primary theme color */
    --color-primary-dark: #1A4A46; /* Darker Green */
    --color-primary-light: #2A6E68; /* Lighter Green */
    --color-secondary: #D4AF37; /* Gold - secondary theme color */
    --color-accent: #D4AF37;

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-light: #F8F9FA;
    --color-gray-100: #F5F5F5;
    --color-gray-200: #EEEEEE;
    --color-gray-300: #E0E0E0;
    --color-gray-400: #BDBDBD;
    --color-gray-500: #9E9E9E;
    --color-gray-600: #757575;
    --color-gray-700: #616161;
    --color-gray-800: #424242;
    --color-gray-900: #212121;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
    color: var(--color-gray-600);
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-accent { color: var(--color-accent) !important; }
.text-white { color: var(--color-white) !important; }
.text-dark { color: var(--color-gray-900) !important; }

.bg-primary { background-color: var(--color-primary) !important; }
.bg-primary-dark { background-color: var(--color-primary-dark) !important; }
.bg-light { background-color: var(--color-light) !important; }
.bg-white { background-color: var(--color-white) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }

.font-heading { font-family: var(--font-heading) !important; }
.font-body { font-family: var(--font-body) !important; }

.section-padding {
    padding: var(--space-20) 0;
}

.section-padding-sm {
    padding: var(--space-16) 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--color-white);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: var(--text-base);
}

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

.navbar {
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    padding: var(--space-2) 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-white);
}

.navbar.scrolled .navbar-brand {
    color: var(--color-gray-900);
}

.navbar-brand span {
    color: var(--color-primary);
}

.nav-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white) !important;
    padding: var(--space-2) var(--space-4) !important;
    transition: color var(--transition-fast);
}

.navbar.scrolled .nav-link {
    color: var(--color-gray-700) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary) !important;
}

.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: var(--space-4);
    right: var(--space-4);
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

.navbar-toggler {
    border: none;
    padding: var(--space-2);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-section .row {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-4);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-6);
    font-weight: 300;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-white);
    /* margin-bottom: var(--space-8); */
}

/* Hero Form Card */
.hero-form-card {
    background: #FFFFFF !important;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100;
}

.hero-form-card .form-control {
    background: #FFFFFF;
    border: 1px solid var(--color-gray-300);
}

.hero-form-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-6);
    color: var(--color-gray-900);
}

.form-control {
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.1);
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: var(--space-2);
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    background: var(--color-primary);
    padding: var(--space-12) 0;
}

.stat-item {
    text-align: center;
    color: var(--color-white);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 700;
    display: block;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    display: block;
}

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

.project-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.project-badge.completed {
    background: var(--color-secondary);
}

.project-content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
}


.project-category {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.project-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    color: var(--color-gray-900);
}

.project-location {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.project-description {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    margin-bottom: var(--space-4);
    line-height: 1.6;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    gap: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-gray-200);
}

.project-meta-item {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
}

.project-meta-item strong {
    color: var(--color-gray-900);
    display: block;
}

.btn-whatsapp-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    margin-top: auto;
    padding: var(--space-3) var(--space-4);
    flex-shrink: 0;
    background: #25D366;
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp-card:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* ============================================
   FEATURES / WHY CHOOSE US
   ============================================ */

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: var(--text-2xl);
    color: var(--color-white);
}

.feature-content h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.feature-content p {
    font-size: var(--text-sm);
    margin-bottom: 0;
}

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

.testimonial-card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--color-gray-700);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 0;
}

.testimonial-role {
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

/* ============================================
   VERTICALS
   ============================================ */

.vertical-card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    text-align: center;
}

.vertical-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.vertical-icon {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
}

.vertical-icon i {
    font-size: var(--text-3xl);
    color: var(--color-white);
}

.vertical-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.vertical-description {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    margin-bottom: 0;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
    padding: 160px 0 80px;
    background: var(--color-secondary);
    color: var(--color-white);
}

.about-hero h1 {
    color: var(--color-white);
}

.about-hero p {
    color: rgba(255, 255, 255, 0.8);
}

.timeline-item {
    position: relative;
    padding-left: var(--space-8);
    padding-bottom: var(--space-8);
    border-left: 2px solid var(--color-primary);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--color-primary);
    border-radius: 50%;
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.award-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.award-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.award-icon i {
    color: var(--color-white);
    font-size: var(--text-xl);
}

.award-content h5 {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.award-content p {
    font-size: var(--text-sm);
    margin-bottom: 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--color-white);
    font-size: var(--text-lg);
}

.contact-content h5 {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.contact-content p {
    font-size: var(--text-sm);
    margin-bottom: 0;
}

.contact-form-wrapper {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.map-container {
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.footer {
    background: var(--color-white);
    color: var(--color-gray-800);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 4px solid var(--color-white);
    box-shadow: 0 -10px 0 0 var(--color-white), 0 -8px 20px rgba(31, 92, 87, 0.15);
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
}

.footer-brand span {
    color: var(--color-primary);
}

.footer-description {
    color: var(--color-gray-600);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
    font-weight: 500;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-gray-900);
    margin-bottom: var(--space-6);
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--color-gray-700);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--color-primary, #1F5C57);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: var(--color-gray-700);
    font-size: var(--text-sm);
}

.footer-contact i {
    color: var(--color-accent, #D4AF37);
    margin-top: 0;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-contact span {
    color: var(--color-gray-800);
    font-weight: 500;
    line-height: 1.5;
}

.contact-footer-social, .footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.contact-footer-social a, .footer-social a {
    width: 40px;
    height: 40px;
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.contact-footer-social a:hover, .footer-social a:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
}

.contact-footer-social i {
    color: var(--color-primary);
    font-size: var(--text-base);
}

.footer-social i {
    /* color: var(--color-gray-700); */
    font-size: var(--text-base);
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-300);
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-gray-600);
    font-size: var(--text-sm);
    margin-bottom: 0;
    font-weight: 500;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.whatsapp-float i {
    color: var(--color-white);
    font-size: var(--text-2xl);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--color-secondary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
                background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary);
    box-shadow: 0 4px 14px rgba(124, 179, 66, 0.35);
}

.back-to-top i {
    font-size: 1.15rem;
    line-height: 1;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb-section {
    background: var(--color-secondary);
    padding: 120px 0 60px;
    color: var(--color-white);
}

.breadcrumb-section h1 {
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--color-white);
    font-weight: 600;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* ---------- Large Tablets / Small Desktops (≤ 1199.98px) ---------- */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: var(--text-5xl);
    }

    .hero-form-card {
        padding: var(--space-6);
    }

    .project-image {
        height: 220px;
    }
}

/* ---------- Tablets & Landscape Phones (≤ 991.98px) ---------- */
@media (max-width: 991.98px) {
    /* Navbar mobile menu */
    .navbar {
        padding: var(--space-3) 0;
    }

    .navbar-collapse {
        background: var(--color-white);
        padding: var(--space-4) var(--space-6);
        border-radius: var(--radius-md);
        margin-top: var(--space-3);
        box-shadow: var(--shadow-lg);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-link {
        color: var(--color-gray-700) !important;
        padding: var(--space-3) var(--space-2) !important;
        border-bottom: 1px solid var(--color-gray-100);
        font-size: var(--text-base);
    }

    .nav-link.active {
        color: var(--color-primary) !important;
        background: rgba(124, 179, 66, 0.08);
        border-radius: var(--radius-sm);
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Hero */
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-12);
    }

    .hero-section .row {
        min-height: auto !important;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-tagline {
        font-size: var(--text-xl);
        margin-bottom: var(--space-6);
    }

    .hero-form-card {
        margin-top: var(--space-8);
        padding: var(--space-6);
    }

    /* Stats */
    .stat-number {
        font-size: var(--text-4xl);
    }

    .stats-section {
        padding: var(--space-8) 0;
    }

    /* Section spacing */
    .section-padding {
        padding: var(--space-16) 0;
    }

    .section-header {
        margin-bottom: var(--space-10);
    }

    /* Feature items — stack icon and text on narrower space */
    .feature-item {
        gap: var(--space-3);
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-icon i {
        font-size: var(--text-xl);
    }

    .feature-content h4 {
        font-size: var(--text-base);
    }

    /* Vertical cards */
    .vertical-card {
        padding: var(--space-6);
    }

    .vertical-icon {
        width: 65px;
        height: 65px;
        margin-bottom: var(--space-4);
    }

    .vertical-icon i {
        font-size: var(--text-2xl);
    }

    /* Testimonials */
    .testimonial-card {
        padding: var(--space-6);
    }

    .testimonial-quote {
        font-size: var(--text-lg);
    }

    /* Contact form */
    .contact-form-wrapper {
        padding: var(--space-6);
        margin-top: var(--space-8);
    }

    /* Map */
    .map-container {
        height: 300px;
    }

    /* Footer */
    .footer {
        padding: var(--space-12) 0 var(--space-6);
    }

    .footer-title {
        margin-top: var(--space-4);
        margin-bottom: var(--space-4);
    }

    /* Breadcrumb */
    .breadcrumb-section {
        padding: 100px 0 40px;
    }

    .breadcrumb-section h1 {
        font-size: var(--text-4xl);
    }

    /* Project cards */
    .project-image {
        height: 200px;
    }

    .project-content {
        padding: var(--space-5);
    }

    /* Buttons — larger touch targets */
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: var(--text-sm);
    }

    .btn-lg {
        padding: 1rem 2rem;
    }

    /* Awards */
    .award-item {
        padding: var(--space-3);
    }

    .award-icon {
        width: 44px;
        height: 44px;
    }

    /* Parallax — disable JS-driven parallax on tablet/mobile for performance */
    .hero-section .hero-content {
        will-change: auto;
    }

    .hero-section .hero-form-card {
        will-change: auto;
    }

    .parallax-layer {
        display: none;
    }

    /* Reveal animations — reduce distance on smaller screens */
    .reveal-up {
        transform: translateY(30px);
    }

    .reveal-left {
        transform: translateX(-30px);
    }

    .reveal-right {
        transform: translateX(30px);
    }
}

/* ---------- Small Tablets / Large Phones (≤ 767.98px) ---------- */
@media (max-width: 767.98px) {
    /* Typography scaling */
    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-2xl);
    }

    h4 {
        font-size: var(--text-xl);
    }

    /* Hero */
    .hero-title {
        font-size: var(--text-3xl);
        line-height: 1.15;
    }

    .hero-tagline {
        font-size: var(--text-lg);
        margin-bottom: var(--space-4);
    }

    .hero-subtitle {
        font-size: var(--text-sm);
        margin-bottom: var(--space-4);
    }

    .hero-section {
        padding-top: 90px;
        padding-bottom: var(--space-8);
    }

    .hero-form-card {
        padding: var(--space-5);
    }

    .hero-form-card h3 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-4);
    }

    /* Buttons */
    .hero-section .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: var(--text-sm);
    }

    .d-flex.gap-3 {
        gap: 0.5rem !important;
    }

    /* Section spacing */
    .section-padding {
        padding: var(--space-12) 0;
    }

    .section-padding-sm {
        padding: var(--space-10) 0;
    }

    .section-header {
        margin-bottom: var(--space-8);
    }

    .section-header p {
        font-size: var(--text-base);
    }

    /* Stats */
    .stats-section {
        padding: var(--space-6) 0;
    }

    .stat-number {
        font-size: var(--text-3xl);
    }

    .stat-label {
        font-size: var(--text-xs);
        letter-spacing: 0.05em;
    }

    .stat-item {
        padding: var(--space-2) 0;
    }

    /* Feature items — go vertical on mobile */
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: var(--space-6);
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: var(--space-3);
    }

    .feature-content h4 {
        font-size: var(--text-base);
        margin-bottom: var(--space-1);
    }

    .feature-content p {
        font-size: var(--text-xs);
    }

    /* Project cards */
    .project-image {
        height: 180px;
    }

    .project-content {
        padding: var(--space-4);
    }

    .project-title {
        font-size: var(--text-lg);
    }

    .project-description {
        font-size: var(--text-xs);
        margin-bottom: var(--space-3);
    }

    .project-meta {
        gap: var(--space-3);
        padding-top: var(--space-3);
    }

    .project-meta-item {
        font-size: var(--text-xs);
    }

    .project-badge {
        top: var(--space-3);
        left: var(--space-3);
        font-size: 0.65rem;
    }

    /* Vertical cards */
    .vertical-card {
        padding: var(--space-5);
    }

    .vertical-icon {
        width: 60px;
        height: 60px;
    }

    .vertical-icon i {
        font-size: var(--text-xl);
    }

    .vertical-title {
        font-size: var(--text-lg);
    }

    .vertical-description {
        font-size: var(--text-xs);
    }

    /* Testimonials */
    .testimonial-card {
        padding: var(--space-5);
    }

    .testimonial-quote {
        font-size: var(--text-base);
        line-height: 1.5;
    }

    .testimonial-name {
        font-size: var(--text-base);
    }

    /* Awards */
    .award-item {
        gap: var(--space-3);
        padding: var(--space-3);
    }

    .award-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .award-icon i {
        font-size: var(--text-base);
    }

    .award-content h5 {
        font-size: var(--text-sm);
        margin-bottom: 0;
    }

    .award-content p {
        font-size: var(--text-xs);
    }

    /* Contact */
    .contact-info-item {
        margin-bottom: var(--space-4);
    }

    .contact-icon {
        width: 44px;
        height: 44px;
    }

    .contact-content h5 {
        font-size: var(--text-sm);
    }

    .contact-content p {
        font-size: var(--text-xs);
    }

    .contact-form-wrapper {
        padding: var(--space-5);
    }

    .map-container {
        height: 250px;
    }

    /* Breadcrumb */
    .breadcrumb-section {
        padding: 90px 0 30px;
    }

    .breadcrumb-section h1 {
        font-size: var(--text-3xl);
    }

    /* Header logo responsive */
    .header-logo {
        width: 140px !important;
    }

    /* Footer */
    .footer {
        padding: var(--space-10) 0 var(--space-4);
        text-align: center;
    }

    .footer-brand {
        font-size: var(--text-xl);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-title {
        margin-top: var(--space-6);
        font-size: var(--text-base);
    }

    .footer-links a,
    .footer-contact li {
        font-size: var(--text-xs);
    }

    .footer-contact li {
        justify-content: center;
        text-align: left;
    }

    .footer-bottom {
        margin-top: var(--space-8);
        padding-top: var(--space-4);
    }

    .footer-bottom p {
        font-size: var(--text-xs);
    }

    /* WhatsApp + back-to-top buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: var(--text-xl);
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 80px;
        right: 20px;
    }

    /* CTA section */
    .section-padding[style*="linear-gradient"] h2,
    .parallax-banner h2 {
        font-size: var(--text-2xl) !important;
    }

    /* About page stat boxes */
    .text-center.p-4.bg-light.rounded {
        padding: var(--space-3) !important;
    }

    .text-center.p-4.bg-light.rounded h3 {
        font-size: var(--text-2xl) !important;
    }

    .text-center.p-4.bg-light.rounded i {
        font-size: 2rem !important;
    }

    /* Vision / Mission boxes */
    .p-5.bg-white.rounded {
        padding: var(--space-5) !important;
    }

    /* Filter buttons */
    .btn-group.flex-wrap .btn {
        font-size: var(--text-xs);
        padding: 0.5rem 0.75rem;
    }
}

/* ---------- Extra Small Phones (≤ 575.98px) ---------- */
@media (max-width: 575.98px) {
    /* Container inset padding */
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    /* Header logo extra small */
    .header-logo {
        width: 120px !important;
    }

    /* Hero */
    .hero-title {
        font-size: var(--text-2xl);
        line-height: 1.2;
    }

    .hero-tagline {
        font-size: var(--text-base);
    }

    .hero-subtitle {
        display: none;
    }

    .hero-section .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .hero-section .d-flex.gap-3 {
        flex-direction: column;
    }

    .hero-form-card {
        padding: var(--space-4);
    }

    .hero-form-card .form-control {
        padding: 0.75rem 0.875rem;
        font-size: var(--text-xs);
    }

    /* Stats — 2 column tighter */
    .stats-section {
        padding: var(--space-5) 0;
    }

    .stat-number {
        font-size: var(--text-2xl);
    }

    .stat-label {
        font-size: 0.65rem;
    }

    /* General section padding */
    .section-padding {
        padding: var(--space-10) 0;
    }

    /* Project cards fill width */
    .project-image {
        height: 160px;
    }

    .project-meta {
        flex-direction: column;
        gap: var(--space-2);
    }

    /* Vertical cards */
    .vertical-card {
        padding: var(--space-4);
    }

    /* Testimonials */
    .testimonial-card {
        padding: var(--space-4);
    }

    .testimonial-quote {
        font-size: var(--text-sm);
    }

    /* Breadcrumb */
    .breadcrumb-section {
        padding: 80px 0 24px;
    }

    .breadcrumb-section h1 {
        font-size: var(--text-2xl);
    }

    .breadcrumb-item {
        font-size: var(--text-xs);
    }

    /* Footer compact */
    .footer {
        padding: var(--space-8) 0 var(--space-4);
    }

    .footer-bottom p {
        font-size: 0.65rem;
    }

    /* Filter buttons wrap nicely */
    .btn-group.flex-wrap {
        gap: 4px;
    }

    .btn-group.flex-wrap .btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        border-radius: var(--radius-sm) !important;
    }

    /* Contact form full width inputs */
    .contact-form-wrapper {
        padding: var(--space-4);
    }

    /* Map */
    .map-container {
        height: 200px;
        border-radius: var(--radius-md);
    }

    /* Touch-friendly form inputs */
    .form-control {
        padding: 0.75rem 0.875rem;
        font-size: var(--text-base);
    }

    select.form-control {
        font-size: var(--text-sm);
    }

    /* Buttons full width on XS */
    .text-center .btn-lg,
    .text-center .btn-primary.btn-lg {
        width: 100%;
        max-width: 300px;
    }

    /* About page — vision/mission boxes, verticals steps */
    .p-5.bg-white.rounded,
    .p-5.bg-light.rounded {
        padding: var(--space-4) !important;
    }

    .feature-icon.me-4 {
        margin-right: var(--space-3) !important;
    }

    /* Chairman image */
    .img-fluid.rounded[alt*="Chairman"],
    .img-fluid.rounded[alt*="Hardeep"] {
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }

    /* Team cards */
    .p-4.bg-white.rounded {
        padding: var(--space-3) !important;
    }

    .p-4.bg-white.rounded h4 {
        font-size: var(--text-base);
    }

    .p-4.bg-white.rounded i {
        font-size: 2rem !important;
    }

    /* Verticals page — detailed cards */
    .vertical-icon.mx-auto[style*="width: 100px"] {
        width: 70px !important;
        height: 70px !important;
    }

    .vertical-icon.mx-auto[style*="width: 100px"] i {
        font-size: 1.75rem !important;
    }
}

/* ---------- Landscape orientation fix ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 var(--space-8);
    }

    .hero-section .row {
        min-height: auto !important;
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .hero-form-card {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* ---------- Print styles ---------- */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .parallax-layer,
    .parallax-shape {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 20px 0;
    }

    .section-padding {
        padding: 20px 0;
    }

    .reveal {
        /* opacity: 1 !important; */
        /* transform: none !important; */
    }
}

/* ============================================
   ANIMATIONS & PARALLAX
   ============================================ */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* --- Parallax Background Sections --- */
.parallax-bg {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Disable fixed attachment on mobile (iOS doesn't support it) */
@media (max-width: 991.98px) {
    .parallax-bg,
    .hero-section {
        background-attachment: scroll !important;
    }
}

/* --- Parallax Floating Layers (decorative shapes) --- */
.parallax-layer {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    z-index: 0;
}

.parallax-shape {
    border-radius: 50%;
    opacity: 0.06;
    background: var(--color-primary);
}

.parallax-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -80px;
}

.parallax-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: -60px;
    background: var(--color-accent);
}

.parallax-shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 15%;
    background: var(--color-secondary);
}

/* --- Scroll-Reveal Animation Classes --- */
.reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
    transform: none !important;
}

.reveal-up {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-scale {
    transform: scale(0.9);
}

.reveal-rotate {
    transform: perspective(600px) rotateY(8deg);
}

/* Stagger children animation */
.stagger-children .reveal {
    transition-delay: calc(var(--stagger-index, 0) * 0.1s);
}

/* --- Parallax CTA / Stats Banner --- */
.parallax-banner {
    position: relative;
    overflow: hidden;
}

.parallax-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(124, 179, 66, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.parallax-banner > .container {
    position: relative;
    z-index: 1;
}

/* --- Floating Animation for Icons --- */
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.float-anim {
    animation: floatY 3s ease-in-out infinite;
}

.float-anim-delay-1 { animation-delay: 0.3s; }
.float-anim-delay-2 { animation-delay: 0.6s; }
.float-anim-delay-3 { animation-delay: 0.9s; }

/* --- Parallax Tilt on Hover (cards) --- */
.tilt-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
    will-change: transform;
}

/* --- Hero Enhanced Parallax --- */
.hero-section .hero-content {
    will-change: transform, opacity;
}

.hero-section .hero-form-card {
    will-change: transform;
}

/* --- Stats Counter Parallax Stripe --- */
.stats-section {
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        120deg,
        transparent,
        transparent 80px,
        rgba(255,255,255,0.03) 80px,
        rgba(255,255,255,0.03) 160px
    );
    pointer-events: none;
    will-change: transform;
}

/* --- Section Divider Parallax Decoration --- */
.section-divider {
    position: relative;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.3;
    margin: 0 auto;
    max-width: 200px;
}

/* --- Breadcrumb Parallax Enhancement --- */
.breadcrumb-section {
    position: relative;
    overflow: hidden;
}

.breadcrumb-section::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 179, 66, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

/* --- Smooth scroll offset for fixed header --- */
html {
    scroll-padding-top: 80px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .float-anim {
        animation: none !important;
    }
    .parallax-bg {
        background-attachment: scroll !important;
    }
    [data-parallax-speed] {
        transform: none !important;
    }
}
.header-logo {
    width: 160px;
    height: auto;
    border-radius: 6px;
}
