/* 
   Ganapathy Dryers - Professional Industrial B2B CSS 
   Style: Clean, Modern, Industrial, Trustworthy
   Colors based on Logo: Deep Blue & Cyan
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary-color: #0d287a;
    /* Deep Blue */
    --primary-dark: #071a52;
    --secondary-color: #00aeef;
    /* Cyan/Light Blue */
    --secondary-light: #e0f7ff;

    --text-dark: #1a1a1a;
    --text-body: #4a4a4a;
    --text-light: #888888;
    --white: #ffffff;
    --bg-light: #f4f7f6;
    /* Very light industrial grey */
    --bg-white: #ffffff;

    --border-color: #e1e4e8;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);

    /* Transition */
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page Header section is maintained as is */

/* Global Watermark Background */
html {
    background-color: var(--bg-white);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-body);
    background-color: transparent;
    /* allow watermark to show on top of html white bg */
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/watermark-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.1;
    /* clean watermark effect */
    pointer-events: none;
    z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(13, 40, 122, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #009ad6;
    transform: translateY(-2px);
}

/* Sections */
.section-padding {
    padding: 40px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .subtitle {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* Header & Nav */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.logo img {
    height: 60px;
    /* Slightly adjusted to fit well within 80px header */
    width: auto;
    /* Maintain aspect ratio */
    object-fit: contain;
    /* No distortion */
    display: block;
}

.logo span {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1.2;
    background-color: #0d287a;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(#ffffff, #ffffff);
    background-size: 100% 1px, 100% 1px;
    background-position: 0 4px, 0 calc(100% - 4px);
    background-repeat: no-repeat;
    padding: 8px 12px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 15px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Background moves to .hero-slide */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* Zoom effect on active */
    transform: scale(1.1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1s ease-in-out, transform 6s linear;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient overlay to ensure text readability */
    background: linear-gradient(to right, rgba(13, 40, 122, 0.9), rgba(13, 40, 122, 0.7));
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Ensure content is above slider */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* Responsive adjustment for arrows */
@media (max-width: 768px) {
    .slider-arrow {
        display: none;
        /* Hide arrows on mobile for cleaner look, rely on auto-slide */
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Service Highlights (Overlap) */
.highlights-section {
    position: relative;
    /* margin-top: -80px;  Removed negative margin for cleaner layout initially, can add back if needed */
    padding: 60px 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.h-icon {
    font-size: 40px;
    /* If using fonts */
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    justify-content: center;
}

.h-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--primary-color);
}

.highlight-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.highlight-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.about-content h3 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
}

.text-group p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-body);
}

.unit-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.unit-badge {
    background: var(--secondary-light);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget h4 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 20px;
}

.footer-widget .logo {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-widget .logo img {
    height: 40px;
    /* Smaller than header */
}

.footer-widget .logo span {
    /* Using global style */
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #cbd5e1;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.contact-info-item i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding-top: 25px;
    font-size: 14px;
    color: #94a3b8;
}

.copyright a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 42px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* Mobile Header Optimization */
    body {
        padding-top: 60px;
    }

    header {
        height: 60px;
    }

    .logo {
        gap: 8px;
    }

    .logo img {
        height: 32px;
    }

    .logo span {
        font-size: 13px;
        padding: 4px 8px;
        /* Adjust accent lines for smaller height */
        background-position: 0 2px, 0 calc(100% - 2px);
    }

    @media (max-width: 768px) {
        .logo span {
            font-size: 16px !important;
            padding: 6px 45px !important;
            background-position: 0 2px, 0 calc(100% - 2px);
        }
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        transition: var(--transition);
        align-items: center;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: block;
        margin-right: 16px;
    }

    .nav-container {
        padding-right: 20px;
        /* Ensure container has padding */
    }

    .hero {
        height: auto;
        padding: 100px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* Page Header for Inner Pages */
.page-header {
    background: linear-gradient(rgba(13, 40, 122, 0.9), rgba(13, 40, 122, 0.8));
    /* Default dark blue overlay */
    padding: 140px 0 60px;
    text-align: center;
    color: var(--white);
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 42px;
    color: var(--white);
    margin-bottom: 15px;
}

.breadcrumb {
    font-size: 15px;
    opacity: 0.9;
    color: #cbd5e1;
}

.breadcrumb a {
    color: var(--secondary-color);
}

.breadcrumb span {
    margin: 0 8px;
    color: #64748b;
}

/* =========================================
   Policy Pages Styling (Terms, Privacy, Shipping)
   ========================================= */

/* Optional: create a light gray background context for the policy cards */
body:has(.legal-content) {
    background-color: var(--bg-light);
}

/* Main Container for Policy Content */
.legal-content {
    max-width: 900px;
    /* Comfortable reading width */
    margin: 0 auto;
    background-color: var(--white);
    padding: 60px;
    /* Generous padding */
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    /* Subtle depth */
    border: 1px solid var(--border-color);
    /* Clean edge */
}

/* Typography for Policy Pages */
.legal-content h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    /* Visual separation */
    font-weight: 600;
    letter-spacing: 0.5px;
}

.legal-content h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-content p {
    font-size: 16px;
    /* Increased readability */
    line-height: 1.8;
    /* Comfortable spacing */
    color: var(--text-body);
    margin-bottom: 20px;
    text-align: justify;
    /* Professional look */
}

.legal-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 25px;
}

.legal-content ul li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 12px;
    padding-left: 5px;
}

.legal-content strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Specific Section Spacing */
.legal-content>div {
    margin-bottom: 40px !important;
    /* Increase section separation */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .legal-content {
        padding: 30px 20px;
        /* Reduced padding for mobile */
        margin: 0;
        /* Align with container padding */
    }

    .legal-content h2 {
        font-size: 20px;
    }

    .legal-content p,
    .legal-content ul li {
        font-size: 15px;
        text-align: left;
        /* Easier reading on mobile */
    }
}