/* Andavar Group of Companies — theme based on andavar.co.in (navy #032d5e, crimson #B0162C) */
:root {
    --primary: #032d5e;
    --primary-dark: #021e3f;
    --accent: #b0162c;
    --accent-dark: #8e1023;
    --gold: #ffc400;
    --text: #4c4b4b;
    --muted: #7a7a7a;
    --light: #f5f7fa;
    --radius: 1rem;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', system-ui, sans-serif;
    color: var(--text);
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--primary);
    font-weight: 600;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* Buttons */
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border-radius: 50rem;
    padding: .6rem 1.5rem;
}
.btn-accent:hover, .btn-accent:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline-light { border-radius: 50rem; padding: .6rem 1.5rem; font-family: 'Poppins', sans-serif; }

/* Header */
.site-header {
    background: var(--primary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}
.site-header .navbar { padding: .6rem 0; }
.brand-logo { height: 52px; width: auto; }
.site-header .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, .85) !important;
    padding: .5rem 1rem !important;
    position: relative;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: #fff !important; }
.site-header .nav-link.active::after,
.site-header .nav-link:hover::after {
    content: "";
    position: absolute;
    left: 1rem; right: 1rem; bottom: .2rem;
    height: 2px;
    background: var(--gold);
}
.dropdown-item.active, .dropdown-item:active { background: var(--primary); }

/* Hero carousel */
.hero .carousel-item { height: 78vh; min-height: 420px; max-height: 720px; }
.hero .carousel-item img { height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(3, 45, 94, .88) 0%, rgba(3, 45, 94, .55) 50%, rgba(3, 45, 94, .1) 100%);
}
.hero .carousel-caption {
    top: 50%; bottom: auto; transform: translateY(-50%);
    left: 8%; right: auto; max-width: 620px;
}
.hero .carousel-caption h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
.hero .carousel-caption p { font-size: 1.1rem; color: rgba(255, 255, 255, .9); }
.eyebrow {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: .8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .15em;
    color: var(--gold);
    margin-bottom: .5rem;
}

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--light); }
.section-title { margin-bottom: 2rem; }
.section-title h1, .section-title h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-title h1 span, .section-title h2 span { color: var(--accent); }
.section-title::after {
    content: ""; display: block;
    width: 60px; height: 3px; background: var(--accent);
    margin-top: .8rem;
}
.section-title.text-center::after { margin-left: auto; margin-right: auto; }
.section-title .lead { max-width: 720px; margin: 1rem auto 0; color: var(--muted); }

/* Company cards */
.company-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(3, 45, 94, .08);
    transition: transform .3s, box-shadow .3s;
    display: flex; flex-direction: column;
}
.company-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(3, 45, 94, .16); }
.company-card-img { overflow: hidden; aspect-ratio: 16 / 11; }
.company-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.company-card:hover .company-card-img img { transform: scale(1.06); }
.company-card-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; border-top: 4px solid var(--accent); }
.company-card-body h3 { font-size: 1.3rem; }
.company-card-body p { flex: 1; }
.read-more { font-family: 'Poppins', sans-serif; font-weight: 600; }
.read-more i { transition: margin .2s; }
.read-more:hover i { margin-left: .3rem; }

/* Stats */
.stat strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem; font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}
.stat span { color: var(--muted); font-size: .95rem; }
.highlights { background: var(--primary); }
.stat-light { padding: 1.8rem 1rem; text-align: center; border-right: 1px solid rgba(255, 255, 255, .12); }
.highlights .col-md-4:last-child .stat-light { border-right: 0; }
.stat-light strong { color: var(--gold); }
.stat-light span { color: rgba(255, 255, 255, .85); }

/* Company hero & page header */
.company-hero, .page-header {
    position: relative;
    background-size: cover; background-position: center;
    color: #fff;
}
.company-hero::before, .page-header::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(3, 45, 94, .92), rgba(3, 45, 94, .6));
}
.company-hero .container, .page-header .container { position: relative; }
.company-hero { padding: 7rem 0 6rem; }
.company-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
.company-hero .lead { max-width: 720px; color: rgba(255, 255, 255, .9); margin-bottom: 2rem; }
.page-header { padding: 4.5rem 0 3.5rem; }
.page-header h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .5rem; }
.page-header .breadcrumb { margin: 0; }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a { color: rgba(255, 255, 255, .8); }
.page-header .breadcrumb-item.active { color: var(--gold); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

.framed { border: 8px solid #fff; }

/* We Powered */
.machine-list { list-style: none; padding: 0; margin: 0; }
.machine-list li {
    padding: .75rem 1rem;
    margin-bottom: .5rem;
    background: var(--light);
    border-left: 4px solid var(--accent);
    border-radius: .5rem;
    font-weight: 600;
    color: var(--primary);
}
.machine-list li i { color: var(--accent); margin-right: .5rem; }
.powered-block + .powered-block { margin-top: 4rem; }

/* Contact strip */
.contact-strip { padding: 4rem 0; background: var(--light); }
.cta-box {
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem;
}
.cta-box h3 { color: #fff; }
.cta-box .btn-accent { background: #fff; color: var(--accent); border-color: #fff; }
.cta-box .btn-accent:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 6px 24px rgba(3, 45, 94, .06);
}
.info-card .label { font-weight: 600; color: var(--primary); }
.info-icon {
    width: 48px; height: 48px; flex: 0 0 48px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(176, 22, 44, .1); color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Contact page */
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item .info-icon { margin-bottom: 0; }
.contact-item h5 { margin-bottom: .25rem; font-size: 1rem; }
.form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(3, 45, 94, .1);
    border-top: 4px solid var(--accent);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(3, 45, 94, .15); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.2); }

/* Footer */
.site-footer { background: var(--primary-dark); color: rgba(255, 255, 255, .75); }
.footer-logo { height: 56px; }
.footer-title {
    color: #fff; text-transform: uppercase; letter-spacing: .1em;
    font-size: .9rem; margin-bottom: 1.2rem;
}
.footer-links li { margin-bottom: .6rem; }
.footer-links i { color: var(--gold); margin-right: .4rem; }
.footer-links a { color: rgba(255, 255, 255, .8); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 1.2rem 0;
    font-size: .9rem;
}
.footer-bottom a { color: var(--gold); }

.back-to-top {
    position: fixed; right: 1.5rem; bottom: 1.5rem;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all .3s; z-index: 1000;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { color: #fff; background: var(--primary); }

@media (max-width: 991.98px) {
    .site-header .nav-link.active::after, .site-header .nav-link:hover::after { display: none; }
    .stat-light { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .section { padding: 3.5rem 0; }
    .hero .carousel-caption { left: 6%; right: 6%; }
}
