/* 
   Mallareddy Tours & Travel - Premium Design System 
   Theme: Professional, Trustworthy, Global
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    /* Colors */
    --primary: #0047AB;
    /* Deep Royal Blue - Trust & Professionalism */
    --primary-dark: #003380;
    --secondary: #FFD700;
    /* Gold - Premium feel */
    --accent: #FF6B6B;
    /* Soft Red for localized Calls to Action */

    --text-dark: #1A1A1A;
    --text-light: #555555;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --card-bg: #FFFFFF;

    /* Spacing */
    --container-padding: 2rem;
    --section-spacing: 5rem;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 71, 171, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Updated: Circular logo in header as well for consistency */
.logo img {
    height: 50px;
    width: auto;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links th {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%), url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* New Hero circular logo */
.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    object-fit: contain;
    /* Ensures logo isn't distorted */
    background: white;
    /* Ensures transparent logos look good */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Services Section */
.services {
    padding: var(--section-spacing) 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #E6F0FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* About MD Section */
.about {
    padding: var(--section-spacing) 0;
    background: #E6F0FA;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.md-highlight {
    background: var(--white);
    padding: 1.5rem;
    border-left: 4px solid var(--secondary);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.md-highlight h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Contact Details & Map */
.contact {
    padding: var(--section-spacing) 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: 3rem;
    background: var(--primary);
    color: var(--white);
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 5px;
}

.map-container {
    height: 100%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* Floating Actions */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: var(--transition);
}

.email-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #FF6B6B;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
    z-index: 100;
    transition: var(--transition);
}

.email-float:hover {
    transform: scale(1.1);
}

.email-float:hover .tooltip {
    opacity: 1;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.tooltip {
    position: absolute;
    right: 70px;
    background: white;
    color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add mobile menu JS logic if needed, keeping simple primarily */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .map-container {
        min-height: 300px;
    }
}