/* 
 * Kerala Tensile Roof - Main Stylesheet
 * Inspired by Status Roofing aesthetics
 */

:root {
    /* Color Palette */
    --primary-color: #0d1b2a;
    /* Deep Navy */
    --secondary-color: #1b263b;
    /* Lighter Navy */
    --accent-color: #e0b1cb;
    /* Soft Purple/Pink hint for gradients - replaced with Gold for premium feel */
    --gold-color: #cca43b;
    /* Premium Gold */
    --text-light: #f6f6f6;
    --text-dark: #333333;
    --text-gray: #777777;
    --white: #ffffff;
    --light-bg: #f8f9fa;

    /* Spacing */
    --section-padding: 80px 0;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    /* Increased from 1.6 */
    overflow-x: hidden;
    letter-spacing: 0.01em;
    /* Slight spacing for clean look */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    /* Replaced Playfair Display */
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
    /* Increased margin */
    letter-spacing: -0.02em;
    /* Tighten headings slightly for modern look */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--gold-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: 2px solid var(--gold-color);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--gold-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.95);
    /* Semi-transparent dark bg */
    padding: 20px 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 3.5px;
    color: var(--gold-color);
    text-transform: uppercase;
    padding-left: 42px;
    /* Align with text start (icon width + gap roughly) */
    font-weight: 500;
    margin-top: 5px;
}

.logo span,
.logo i {
    color: var(--gold-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 16px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown,
.menu-item-has-children {
    position: relative;
    display: inline-block;
}

.dropdown-content,
.sub-menu {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 4px;
    top: 100%;
    left: 0;
    padding: 10px 0;
}

.dropdown-content a,
.sub-menu a {
    color: var(--text-light);
    padding: 12px 16px !important;
    /* Override general nav link padding if any */
    text-decoration: none;
    display: block;
    font-size: 14px;
    text-align: left;
}

.sub-menu li {
    display: block;
    width: 100%;
}

.dropdown-content a::after {
    display: none;
    /* No underline effect for dropdown items */
}

.dropdown-content a:hover,
.sub-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gold-color);
}

.dropdown:hover .dropdown-content,
.menu-item-has-children:hover .sub-menu {
    display: block;
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .dropdown {
        display: block;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background: transparent;
        display: none;
        padding-left: 0;
        text-align: center;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 10px 0 !important;
    }
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero Section */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    /* Offset for fixed header */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-btns {
    animation: fadeInUp 1s ease 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-btns .btn {
    margin: 0 10px;
}

/* Featured Section (Services Preview) */
#features {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-header p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 0;
    /* Remove padding to let image fill top */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-content {
    padding: 30px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 30px;
    color: var(--gold-color);
    margin-bottom: 15px;
    display: none;
    /* Hide icon if using images, or keep small? hiding for now to focus on image */
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-gray);
    margin-bottom: 25px;
}

.feature-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feature-link:hover {
    color: var(--gold-color);
}

/* About Section */
#about {
    padding: var(--section-padding);
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    position: relative;
}

.about-img img {
    border-radius: 8px;
    box-shadow: 20px 20px 0 var(--gold-color);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--gold-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Call to Action */
#cta {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

#cta h2 {
    margin-bottom: 30px;
}

/* Footer */
footer {
    background: #08121c;
    /* Darker than primary */
    color: var(--text-light);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--gold-color);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #aaaaaa;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #aaaaaa;
}

.contact-icon {
    color: var(--gold-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        height: 100vh;
        /* Full viewport height */
        text-align: center;
        transition: 0.3s;
        padding-top: 100px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        /* Add shadow clearly visible over content */
    }

    .nav-links.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    #about {
        flex-direction: column;
    }

    .stats {
        flex-wrap: wrap;
        /* Allow wrapping on small screens */
        justify-content: center;
    }
}

/* FAQ Accordion Styles */
.faq-container {
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    /* Increased margin */
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 10px;
    /* Increased padding */
    font-size: 1.15rem;
    /* Larger font */
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--gold-color);
    background-color: rgba(0, 0, 0, 0.01);
    /* Subtle hover bg */
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--gold-color);
    transition: transform 0.3s;
    font-weight: 400;
    /* Lighter weight for the icon */
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    /* Slower, smoother */
}

.faq-answer p {
    padding: 10px 15px 30px 10px;
    /* More padding */
    font-size: 1rem;
    /* readable base size */
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Floating WhatsApp Button (Mobile Only) */
.floating-cta {
    display: none;
    /* Hidden by default on desktop */
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    /* WhatsApp Green */
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.floating-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background-color: #20bd5a;
    color: white;
}

.floating-cta i {
    font-size: 24px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .floating-cta {
        display: flex;
        /* Show only on mobile devices */
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
}