/* Pages Styles - Common styles for all service pages */
:root {
    --primary: #f05725;
    --primary-dark: #d84a1c;
    --primary-light: #ee683b;
    --text-dark: #1A2028;
    --text-light: #ffffff;
    --text: #666;
    --white: #ffffff;
    --black: #000000;
    --dark: #1a1a1a;
    --bg-light: #f8f9fa;
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.5rem;
    --spacing-6: 2rem;
    --spacing-8: 3rem;
    --spacing-10: 4rem;
    --spacing-12: 5rem;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-60: 60;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --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.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* Common Typography */
html {
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

/* Header Initial State */
.header {
    transition: all 0.3s ease;
    background: transparent;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header .nav-menu > li > a {
    color: #000000;
}

.header .nav-menu > li > a:hover,
.header .nav-menu > li > a.active {
    color: var(--primary-light);
}

.header .header-social a {
    color: #ffffff;
}

.header .hamburger span {
    background-color: #111111;
}

/* Header Scrolled State */
.header.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-radius: 0 0 30px 30px;
}

.header.scrolled .nav-menu > li > a {
    color: var(--text-dark);
}

.header.scrolled .nav-menu > li > a:hover,
.header.scrolled .nav-menu > li > a.active {
    color: var(--primary);
}

.header.scrolled .header-social a {
    color: var(--primary);
}

.header.scrolled .hamburger span {
    background-color: var(--text-dark);
}

/* Mobile Menu Styles */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #ffffff;
        padding: 80px 20px 30px;
        transition: 0.4s;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .header .nav-menu > li > a {
        color: var(--text-dark);
        padding: 15px 0;
        font-size: 1.1rem;
        display: block;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 10px 0 10px 20px;
        transform: none;
        background: transparent;
        display: none;
    }

    .nav-dropdown-content a {
        padding: 10px 0;
        color: var(--text-dark);
        opacity: 0.8;
    }

    .nav-dropdown.active .nav-dropdown-content {
        display: block;
    }
}

/* Capsule Header Style */
.page-header {
    background-image: url('../images/optimized/large/banner3.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 0 50px 50px;
    padding: 150px 0 100px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    z-index: 1;
}

.page-header__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.page-header__title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.page-header__title .tamil-text {
    font-size: 1.2rem;
    color: var(--primary);
    display: block;
    margin-top: 10px;
    text-transform: none;
    letter-spacing: 0;
}

.page-header__subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 15px auto 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: #ffffff;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-header__description {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 15px auto 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: #ffffff;
    line-height: 1.6;
}

/* Container and Section Common Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    text-align: center;
}

.section-title .tamil-text {
    font-size: 1.1rem;
    color: var(--primary);
    display: block;
    margin-top: 5px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(240, 87, 37, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(240, 87, 37, 0.2);
}

/* Tamil Specific Styling */
.tamil-text {
    font-family: 'Tamil Sangam MN', 'Latha', 'Vani', sans-serif;
    font-size: 1.2rem;
    display: block;
    margin-top: 5px;
    line-height: 1.5;
}

/* Footer styling */
.footer {
    background: #121820;
    color: #ffffff;
    padding: 80px 0 30px;
}

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

.footer a {
    color: #ffffff;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 1;
}

.footer__bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Service Page Specific Styles */
.service-details {
    padding: 80px 0;
    background: var(--white);
}

.service-details__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.service-details__text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.service-details__text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text);
}

.service-details__highlight {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.highlight-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.service-details__image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Services Offered Section */
.services-offered {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.service-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-item__icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-item p {
    color: var(--text);
    line-height: 1.6;
}

/* Construction Process Section */
.construction-process {
    padding: 80px 0;
}

.process-timeline {
    position: relative;
    margin-top: 50px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--primary);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 50px;
}

.process-step__number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    z-index: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.process-step__content {
    width: 45%;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.process-step__content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.process-step__content p {
    color: var(--text);
    line-height: 1.6;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
    z-index: var(--z-30);
}

.floating-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
}

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

.floating-btn.whatsapp {
    background-color: #25D366;
}

.floating-btn.call {
    background-color: var(--primary);
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-dark);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 87, 37, 0.1);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-logo {
    max-width: 150px;
    margin-top: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .service-details__content,
    .services-offered__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 150px 0 80px;
    }
    
    .page-header__title {
        font-size: 2.5rem;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step {
        justify-content: flex-start;
    }
    
    .process-step__number {
        left: 30px;
    }
    
    .process-step__content {
        width: 80%;
        margin-left: 60px;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header__title {
        font-size: 2rem;
    }
    
    .service-details {
        padding: 60px 0;
    }
    
    .service-details__text h2 {
        font-size: 2rem;
    }
    
    .service-details__highlight {
        flex-direction: column;
        text-align: center;
    }
    
    .highlight-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .process-step__content {
        width: 75%;
        padding: 20px;
        margin-left: 50px;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
} 