/* Mahakkha Marine Solutions - main stylesheet */

:root {
    --navy-900: #0a1e3a;
    --navy-800: #0e2a52;
    --navy-700: #123663;
    --gold: #f2a71b;
    --gold-dark: #d6900f;
    --green: #25d366;
    --text-dark: #1c2b42;
    --text-muted: #5a6b85;
    --bg-alt: #f5f7fa;
    --border: #e3e8f0;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(10, 30, 58, 0.08);
    font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.25; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
    color: var(--gold-dark);
    font-weight: 700;
    letter-spacing: .08em;
    font-size: .8rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.section-title { font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 800; color: var(--navy-900); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 6px;
    font-weight: 700;
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-green { background: var(--green); color: #fff; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .04em; flex-shrink: 0; white-space: nowrap; }
.brand small { display: block; font-weight: 500; font-size: .6rem; letter-spacing: .12em; color: var(--gold); }
.brand-logo { height: 36px; width: 36px; object-fit: contain; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.nav a {
    color: #cfd8e6; font-weight: 600; font-size: .78rem; letter-spacing: .01em;
    text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: #fff; border-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .btn-gold { padding: 10px 16px; font-size: .8rem; white-space: nowrap; }
.lang-switch { display: flex; gap: 4px; background: rgba(255,255,255,.08); border-radius: 20px; padding: 3px; flex-shrink: 0; }
.lang-switch a { padding: 4px 12px; border-radius: 20px; font-size: .75rem; color: #cfd8e6; border: none; text-transform: uppercase; }
.lang-switch a.active { background: var(--gold); color: var(--navy-900); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
    position: relative;
    background: var(--navy-900);
    color: #fff;
    padding: 90px 0 60px;
    overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0; background-position: center; background-size: cover;
    opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
/* Darkening gradient sits above the slide images but below the text/stats content */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(6,16,32,.7), rgba(6,16,32,.55));
}
.hero-dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-dots button {
    width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.4);
    cursor: pointer; padding: 0;
}
.hero-dots button.active { background: var(--gold); }
.hero .container { display: grid; grid-template-columns: 1.4fr .9fr; gap: 40px; align-items: start; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { max-width: 560px; color: #dbe3ef; }
.hero-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 22px 0 30px; }
.hero-checks li { color: #e9eef7; font-size: .92rem; }
.hero-checks li::before { content: "\2713"; color: var(--gold); font-weight: 800; margin-right: 8px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.stats-panel {
    background: rgba(10, 30, 58, .85);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(4px);
}
.stats-panel .stat { display: flex; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.stats-panel .stat:last-child { border-bottom: none; }
.stat-icon {
    width: 44px; height: 44px; border-radius: 8px; background: rgba(242,167,27,.15);
    display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0;
}
.stat-num { font-size: 1.4rem; font-weight: 800; color: #fff; }
.stat-label { font-size: .78rem; color: #b9c6da; }

/* Brands strip */
.brands-strip { background: var(--bg-alt); padding: 32px 0; border-bottom: 1px solid var(--border); }
.brands-strip .eyebrow { text-align: center; display: block; margin-bottom: 18px; }
.brands-marquee {
    overflow: hidden; width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands-track {
    display: flex; align-items: center; gap: clamp(32px, 5vw, 64px);
    width: max-content; padding: 8px 0;
    animation: brands-scroll 32s linear infinite;
}
.brands-marquee:hover .brands-track { animation-play-state: paused; }
.brands-track img {
    height: clamp(22px, 4vw, 36px); width: auto; /* no max-width here - it would cap width
    without adjusting height, squishing wide logos out of proportion */
    background: transparent; flex-shrink: 0;
    filter: grayscale(1) opacity(.75);
    mix-blend-mode: multiply; /* blends a white logo background into the section's light background instead of showing a white box */
    transition: filter .2s ease;
}
.brands-track img:hover { filter: grayscale(0) opacity(1); }
@keyframes brands-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .brands-track { animation: none; }
}

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-copy .section-title { text-align: left; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.vm-card { display: flex; gap: 12px; }
.vm-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vm-card h3 { font-size: 1rem; color: var(--navy-900); }
.vm-card ul li { font-size: .9rem; color: var(--text-muted); margin-bottom: 4px; }
.vm-card ul li::before { content: "\2022"; color: var(--gold-dark); margin-right: 6px; }

/* Cards grid (services) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.service-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px 20px; text-align: center; transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-icon {
    width: 52px; height: 52px; border-radius: 10px; margin: 0 auto 16px;
    background: rgba(242,167,27,.12); color: var(--gold-dark); display: flex; align-items: center; justify-content: center;
}
.service-icon svg, .why-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1rem; color: var(--navy-900); }
.service-card p { font-size: .86rem; color: var(--text-muted); }
.read-more { font-size: .8rem; font-weight: 700; color: var(--navy-800); text-transform: uppercase; letter-spacing: .04em; }

/* Why us dark band */
.why-us { background: var(--navy-900); color: #fff; }
.why-us .section-title, .why-us .eyebrow { color: #fff; }
.why-us .eyebrow { color: var(--gold); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.why-item { text-align: center; }
.why-icon { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.why-item h3 { font-size: .95rem; }
.why-item p { font-size: .82rem; color: #b9c6da; }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px; text-align: center; }
.industry-item .why-icon { background: rgba(242,167,27,.12); color: var(--gold-dark); }
.industry-item span { font-size: .85rem; font-weight: 600; color: var(--navy-900); }

/* Carousel (products / brands) */
.carousel { position: relative; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.carousel-track > * { scroll-snap-align: start; flex: 0 0 260px; }
.carousel-nav { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
.carousel-nav button {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer;
}
.product-card, .project-card { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card img, .project-card img { height: 160px; width: 100%; object-fit: cover; }
.product-card .body, .project-card .body { padding: 16px; }
.product-card h3 { font-size: .95rem; color: var(--navy-900); }
.product-card p { font-size: .82rem; color: var(--text-muted); margin-bottom: 6px; }
.project-card { background: var(--navy-900); color: #fff; }
.project-card .body h3 { font-size: .92rem; color: #fff; }
.project-card .body .loc { font-size: .78rem; color: var(--gold); }

/* Products layout: category sidebar (left) + product grid (right) */
.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.category-sidebar {
    position: sticky; top: 96px; background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; max-height: calc(100vh - 120px); overflow-y: auto;
}
.category-sidebar h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 14px; }
.category-sidebar nav { display: flex; flex-direction: column; }
.category-sidebar .cat-group { margin-bottom: 4px; }
.category-sidebar a {
    display: block; padding: 9px 10px; border-radius: 6px; font-size: .88rem; font-weight: 600;
    color: var(--text-dark);
}
.category-sidebar a:hover { background: #fff; }
.category-sidebar a.cat-parent.active { background: var(--navy-900); color: #fff; }
.category-sidebar .cat-children { display: flex; flex-direction: column; margin: 2px 0 6px 14px; border-left: 2px solid var(--border); }
.category-sidebar .cat-children a { padding: 7px 10px 7px 14px; font-size: .82rem; font-weight: 500; color: var(--text-muted); }
.category-sidebar .cat-children a.active { color: var(--navy-900); background: #fff; font-weight: 700; border-left: 2px solid var(--gold); margin-left: -2px; }
/* auto-fill (not auto-fit) so a lone product keeps a normal card width and sits at the
   left - auto-fit would collapse the unused columns and stretch the single card full-width. */
.products-main .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

@media (max-width: 900px) {
    .products-layout { grid-template-columns: 1fr; }
    .category-sidebar { position: static; max-height: none; }
}

/* Product detail page */
.product-gallery { display: grid; grid-template-columns: 90px 1fr; gap: 16px; }
.product-gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; flex-direction: column; gap: 10px; }
.product-gallery-thumbs img { width: 90px; height: 68px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.product-gallery-thumbs img.active { border-color: var(--gold); }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.product-tabs button {
    padding: 10px 4px; margin-right: 20px; background: none; border: none; border-bottom: 2px solid transparent;
    font-weight: 700; font-size: .9rem; color: var(--text-muted); cursor: pointer;
}
.product-tabs button.active { color: var(--navy-900); border-color: var(--gold); }
.product-tab-panel { display: none; line-height: 1.8; }
.product-tab-panel.active { display: block; }
@media (max-width: 720px) {
    .product-gallery { grid-template-columns: 1fr; }
    .product-gallery-thumbs { flex-direction: row; flex-wrap: wrap; }
    .product-detail-grid { grid-template-columns: 1fr; }
}

/* CTA */
.cta { position: relative; background: var(--navy-900) center/cover no-repeat; color: #fff; overflow: hidden; }
.cta::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(6,16,32,.95) 0%, rgba(6,16,32,.75) 45%, rgba(6,16,32,.35) 100%);
}
.cta .container { position: relative; z-index: 2; padding: 70px 24px; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-checks { display: flex; gap: 28px; flex-wrap: wrap; margin: 18px 0 26px; }
.cta-checks li::before { content: "\2713"; color: var(--gold); margin-right: 8px; font-weight: 800; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy-900); color: #cfd8e6; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0 30px; }
.footer-grid h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 8px; font-size: .88rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .8rem; text-align: center; color: #8ea0bd; }
.social-icons { display: flex; gap: 10px; margin-top: 14px; }
.social-icons a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }

/* Contact / lead form */
.lead-form { display: grid; gap: 14px; max-width: 560px; }
.lead-form input, .lead-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; font: inherit;
}
.lead-form button { justify-self: start; }
.form-note { font-size: .85rem; color: var(--text-muted); }
.form-success { background: #e7f7ee; border: 1px solid #bfe8cf; color: #1a7a43; padding: 14px 16px; border-radius: 8px; }
.form-error { background: #fdeceb; border: 1px solid #f3bdb8; color: #b3261e; padding: 14px 16px; border-radius: 8px; }

/* Responsive */
/* Collapse the nav into a hamburger well before the row runs out of space - at 1200px
   (this site's own container max-width) 8 nav items + logo + lang switch + CTA button
   no longer fit on one line, so the breakpoint is deliberately wider than the content
   reflow breakpoint below rather than tied to "mobile" widths. */
@media (max-width: 1280px) {
    .nav { position: fixed; inset: 76px 0 0 0; background: var(--navy-900); flex-direction: column; align-items: flex-start; gap: 4px; padding: 24px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
    .nav a { font-size: 1rem; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
    .nav.open { transform: translateX(0); }
    .nav-toggle { display: block; }
}
@media (max-width: 960px) {
    .hero .container, .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .vm-grid, .hero-checks { grid-template-columns: 1fr; }
    .header-actions .btn-gold { display: none; }
}
