/* ========================================
   MARS COMFORT - Shared Stylesheet
   ======================================== */

:root {
    --yellow: #ffc400;
    --yellow-strong: #f0b600;
    --charcoal: #2c3e50;
    --text: #333;
    --muted: #666;
    --light-gray: #f8f8f8;
    --border: #e6e6e6;
    --hero-start: #007ab7;
    --hero-end: #00518e;
    --container: 1180px;
}

/* ========== RESET & GLOBALS ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========== CONTAINER ========== */
.container {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 0 18px;
}

/* ========== HEADER ========== */
header {
    border-bottom: 1px solid var(--border);
    padding: 20px 0 12px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--yellow);
}

.header-bar {
    display: flex;
    align-items: center;
    
    gap: 24px;
    flex-wrap: wrap;
}

.logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    /* border: 3px solid #d89f00; */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    background: #fff;
    object-fit: cover;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}

.branding {
    flex: 1;
    min-width: 260px;
}

.tagline {
    font-weight: 600;
    color: #444;
    padding: 0 0 12px;
    border-bottom: 2px solid var(--yellow);
    margin-bottom: 12px;
    font-size: 30px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
}

nav a {
    padding: 8px 14px;
    border-radius: 2px;
    transition: all 0.2s ease;
    display: inline-block;
}

nav a:hover {
    background: var(--light-gray);
    transform: translateY(-1px);
}

nav a.active {
    background: var(--yellow);
    color: #000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
    color: #fff;
    padding: 64px 0 72px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1), transparent 45%),
                radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.2), transparent 50%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 36px;
    z-index: 1;
}

.hero-copy h1 {
    font-size: clamp(26px, 3vw, 34px);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-copy p {
    max-width: 520px;
    margin-bottom: 28px;
    opacity: 0.95;
}

.btn {
    display: inline-block;

    background: var(--yellow);
    color: #000;
    border: 1px solid #b18a00;
    padding: 11px 26px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 2px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, background 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--yellow);
    box-shadow: var(--yellow) 0 20 5px 5px;
    border: none;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
    box-shadow: none;
}

.btn-outline:hover {
    background: #fff;
    color: var(--yellow);
    transform: none;
}

.hero-visual {
    justify-self: end;
    max-width: 540px;
    width: 100%;
    position: relative;
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    border: 3px solid rgba(255, 255, 255, 0.08);
    background: #0a3d64;
}

.slider-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.slider-nav button {
    pointer-events: auto;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 42px;
    padding: 8px 12px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.slider-nav button:hover {
    color: #fff;
}

.hero-play {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 26px;
    height: 26px;
    background: #0c354c;
    border-radius: 4px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* ========== CTA BAR ========== */
.cta-bar {
    background: var(--yellow);
    padding: 32px 0;
    color: #000;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
   
}

.cta-text h3 {
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 700;
     color: white;
 
}

.cta-text p {
     color: white;
    
    }

/* ========== SECTIONS ========== */
.section {
    padding: 60px 0 64px;
}

.section h2 {
    font-size: clamp(24px, 3vw, 28px);
    margin-bottom: 14px;
    font-weight: 700;
}

/* Rich text blocks for long-form copy */
.lined-title {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 800;
    color: var(--charcoal);
    padding-bottom: 8px;
    border-bottom: 3px solid var(--yellow);
    margin-bottom: 18px;
    line-height: 1.3;
}

.copy-block {
    color: #757575;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
    max-width: 1020px;
}

.copy-list {
    list-style: none;
    padding-left: 0;
    margin: 6px 0 26px;
    color: #757575;
    font-size: 15px;
    line-height: 1.8;
}

.copy-list li {
    margin-bottom: 4px;
    position: relative;
    padding-left: 12px;
}

.copy-list li::before {
    content: "*";
    position: absolute;
    left: 0;
    color: #757575;
    font-weight: 700;
}

.section p.lead {
    color: var(--muted);
    max-width: 980px;
    margin-bottom: 42px;
}

/* ========== GRID LAYOUTS ========== */
.solutions-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 34px;
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 4-column product layout */
.product-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.product-grid-4 img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f3f3f3;
    border: 1px solid #dedede;
}

/* ========== CARDS ========== */
.card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f3f3f3;
    border: 1px solid #dedede;
}

.card h3 {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 6px;
    display: inline-block;
    line-height: 1.3;
}

.card p {
    color: var(--muted);
    font-size: 14px;
}

/* ========== ABOUT SECTION ========== */
.about {
    position: relative;
    background: linear-gradient(rgba(0, 130, 180, 0.7), rgba(0, 100, 150, 0.7)), url('https://picsum.photos/1600/520?random=1') center/cover no-repeat;
    color: #fff;
    padding: 68px 0;
    overflow: hidden;
}

.about h2 {
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 700;
}

.about h4 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}

.about p {
    max-width: 720px;
}

/* ========== CONTACT SECTION ========== */
.contact {
    background: var(--yellow);
    color: #000;
    padding: 36px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px 28px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: start;
}

.icon {
    width: 58px;
    height: 58px;
    border: 2px solid #000;
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ========== FOOTER ========== */
.footer-top {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://picsum.photos/1600/400?random=2') center/cover no-repeat;
    color: #fff;
    padding: 48px 0;
    text-align: center;
}

.footer-top h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.footer-top p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.7;
}

.copyright {
    text-align: center;
    padding: 14px 8px 16px;
    font-size: 13px;
    color: #777;
    background: #fff;
}

/* ========== CONTACT PAGE LAYOUT ========== */
.contact-page-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    gap: 14px;
}

.contact-detail-item .icon {
    border: 2px solid var(--yellow);
    color: var(--yellow);
}

.contact-detail-item div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-detail-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-detail-item p {
    font-size: 13px;
    color: var(--muted);
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: #e6e6e6;
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: var(--muted);
    margin-top: 24px;
}

/* ========== PRODUCT AREAS ========== */
.project-areas {
    margin-top: 40px;
    padding: 0;
    background: transparent;
}

.project-areas h3 {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 16px;
    padding-bottom: 10px;
    position: relative;
    line-height: 1.3;
}

.project-areas h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 480px;
    height: 3px;
    background: var(--yellow);
}

.project-areas ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.project-areas li {
    position: relative;
    padding: 4px 0 4px 20px;
    font-size: 19px;
    font-weight: 600;
    color: #5a5a5a;
}

.project-areas li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-weight: 800;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 860px) {
    .hero-inner {
        text-align: center;
    }

    .hero-visual {
        justify-self: center;
    }

    .hero-copy {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .cta-inner {
        text-align: center;
        justify-content: center;
    }

    .header-bar {
        justify-content: center;
    }

    nav ul {
        justify-content: center;
    }

    .tagline {
        text-align: center;
    }

    .contact-page-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 540px) {
    header {
        padding: 16px 0 8px;
    }

    .logo {
        width: 86px;
        height: 86px;
        font-size: 12px;
    }

    .hero {
        padding: 46px 0 54px;
    }

    .hero-copy h1 {
        font-size: 22px;
    }

    .cta-bar {
        padding: 26px 0;
    }

    .section {
        padding: 46px 0 52px;
    }

    .solutions-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        font-size: 12px;
    }

    nav a {
        padding: 6px 10px;
    }

    .project-areas ul {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}
