@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800&family=Playfair+Display:ital,wght@1,600&display=swap');

/* 
    Eastern Projects - Global Styles
    Brand Alignment: Parent Company (easterncargo.co.in)
*/

:root {
    /* Brand Colors */
    --primary: #0b4f6c;    /* Dark Teal Blue */
    --primary-light: #1b85b8; /* Light Blue/Cyan */
    --accent: #ff7a00;     /* Vibrant Orange */
    --accent-hover: #ffb36b; /* Light Peach */

    /* Neutral Palette */
    --bg-light: #f6f2ea;   /* Off-white/Cream */
    --bg-white: #FFFFFF;
    --bg-dark: #0b4f6c;    /* Dark Teal Blue for footer */
    --text-main: #334155;  /* Standard readable dark slate */
    --text-muted: #64748B;
    --text-heading: #0000FF; /* Pure Blue for headings */
    
    /* UI Specs */
    --container-width: 1200px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tagline-banner {
    background-color: var(--primary);
    text-align: center;
    padding: 0.6rem 1rem;
    border-bottom: 2px solid var(--accent);
}

.tagline-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.70rem; /* Reduced further */
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    color: var(--bg-light);
}

.tagline-text span {
    color: #FFD700; /* Bright Yellow */
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

main > section.section:nth-of-type(odd) {
    background-color: var(--bg-white);
}

main > section.section:nth-of-type(even) {
    background-color: var(--bg-light);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Components */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: #003366;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--bg-white);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.badge-parent {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: var(--primary); /* Deep Blue for light backgrounds */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

/* Navigation */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    transition: all 0.4s ease;
}

header.transparent-header {
    background: transparent;
    box-shadow: none;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

header.transparent-header .nav-links a {
    color: var(--bg-white);
}

header.transparent-header .logo-text {
    color: var(--bg-white);
}

header.transparent-header .logo-subtext {
    color: #FFFFFF;
}

header.transparent-header.scrolled {
    position: sticky;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(0, 71, 171, 0.1);
}

header.transparent-header.scrolled .nav-links a {
    color: #000000;
}

header.transparent-header.scrolled .logo-text {
    color: #000000;
}

header.transparent-header.scrolled .logo-subtext {
    color: #000000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0; /* Added spacing from the top bar */
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-family: 'Montserrat', sans-serif;
    color: #000000;
    text-decoration: none;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 0.58rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: none;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: row;
    gap: 0;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.4s ease;
    height: 36px;
}

.logo-text .top {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    background-color: #FF0000 !important;
    color: #FFFFFF !important;
    padding: 0 8px;
    border-radius: 4px 0 0 4px;
    display: flex;
    align-items: center;
}

.logo-text .bottom {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    background-color: #1e97d1 !important;
    color: #FFFFFF !important;
    padding: 0 8px;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 50px;
    width: auto;

    /* This makes the logo background disappear on dark colors if it has a white background */
    mix-blend-mode: screen;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: #000000; /* Solid Black */
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
}

/* Slide underline hover effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a.btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    display: inline-block;
}

.nav-links a.btn::after {
    display: none;
}

header.transparent-header:not(.scrolled) .nav-links a::after {
    background-color: var(--bg-white);
}

header.transparent-header:not(.scrolled) .btn-accent::after {
    display: none;
}

header.transparent-header .btn-accent {
    color: var(--bg-white) !important;
}

header.transparent-header.scrolled .btn-accent {
    color: var(--bg-white) !important;
}

/* Simple Menu Underline Styling */

/* Hero Section */
.hero {
    position: relative;
    color: var(--bg-white);
    padding: 12rem 0;
    text-align: center;
    overflow: hidden; /* Ensure video doesn't overflow */
    background: var(--primary); /* Fallback background */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Dark overlay to ensure text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 79, 108, 0.4), rgba(11, 79, 108, 0.65));
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3; /* Content above video and overlay */
}

.hero .badge-parent {
    color: var(--accent); /* Bright Orange for dark hero background */
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero h1 {
    color: var(--bg-white);
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
}

.menu-toggle span.open:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle span.open:nth-child(2) {
    opacity: 0;
}

.menu-toggle span.open:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Medium Screen Optimization to prevent menu wrapping */
@media (min-width: 1025px) and (max-width: 1200px) {
    .nav-links {
        gap: 1.2rem;
    }
    .nav-links a {
        font-size: 0.9rem;
    }
}

/* Responsive & Mobile Menu */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .transparent-header .menu-toggle span {
        background: var(--bg-white);
    }

    .transparent-header.scrolled .menu-toggle span {
        background: var(--primary);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        z-index: 1000;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin-bottom: 0.2rem;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 0.6rem;
    }

    .nav-links a.btn {
        display: inline-block;
        padding: 0.5rem 1.4rem;
        font-size: 1rem;
        margin-top: 0.5rem;
        width: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* WhatsApp Floating Widget */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    background-color: #20ba5a;
    color: white !important;
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .whatsapp-float span {
        display: none; /* Icon-only on mobile */
    }
    .whatsapp-float {
        padding: 14px;
        bottom: 20px;
        right: 20px;
        border-radius: 50%;
    }
}

/* Card zoom and premium transitions */
.card {
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 71, 171, 0.08);
}
