@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --accent-color: #3297a7;
    --accent-dark: #2a7d8a;
    --accent-tint: #eaf5f7;
    --text-dark: #1a1f24;
    --text-body: #525c65;
    --text-light: #f8f9fa;
    --text-muted: #c8cfd6;
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #e0e6eb;
    --footer-dark-bg: #1a1f24;
    --footer-dark-border: #343a40;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
h4 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
p { margin-top: 0; margin-bottom: 1.1rem; }
a { text-decoration: none; color: var(--accent-color); transition: all 0.25s ease-in-out; }
a:hover, a:focus { color: var(--accent-dark); outline: none; }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 20px; margin-bottom: 1.1rem; }
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}
.card-hover-effect { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(40, 50, 60, 0.12);
}
.link-hover-effect:hover { letter-spacing: 0.5px; }
.main-header {
    background-color: var(--bg-white);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { max-height: 50px; width: auto; }
.nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: transparent; /* Set to transparent to remove "dull feel" */
    z-index: 1031;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* Prevents overlay from capturing clicks */
}
.nav-overlay.active { opacity: 1; visibility: visible; }
.main-nav { display: flex; align-items: center; }
.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; }
.main-nav li { margin-left: 2rem; }
.main-nav a:not(.btn) {
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.9rem;
    color: var(--text-body); padding: 0.5rem 0.25rem; border-bottom: 3px solid transparent;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.main-nav a:not(.btn).active, .main-nav a:not(.btn):hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--text-dark); z-index: 1041; }
.btn {
    display: inline-block; font-family: 'Montserrat', sans-serif;
    font-weight: 600; text-align: center; vertical-align: middle;
    cursor: pointer; user-select: none; background-color: transparent;
    border: 2px solid transparent; padding: 0.7rem 1.8rem; font-size: 0.9rem;
    letter-spacing: 0.75px; line-height: 1.6; border-radius: 50px;
    transition: transform 0.2s ease-out;
}
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(0.98); }
.btn-primary {
    color: var(--text-light); background-color: var(--accent-color);
    border-color: var(--accent-color); box-shadow: 0 4px 15px rgba(50, 151, 167, 0.3);
}
.btn-primary:hover {
    background-color: var(--accent-dark); border-color: var(--accent-dark);
    color: var(--text-light);
}
.btn-secondary {
    color: var(--accent-color); background-color: var(--bg-white);
    border-color: var(--accent-color); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}
.btn-secondary:hover { background-color: var(--accent-tint); color: var(--accent-dark); border-color: var(--accent-dark); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.section { padding: clamp(4rem, 8vw, 6rem) 0; }
.section-lighter { background-color: var(--bg-light); }
.section-tint { background-color: var(--accent-tint); }
.section-title { text-align: center; margin-bottom: 0.75rem; font-weight: 700; }
.section-subtitle {
    text-align: center; font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-body); margin-bottom: clamp(2.5rem, 6vw, 4rem);
    max-width: 750px; margin-left: auto; margin-right: auto; line-height: 1.8;
}
.dot-pattern-bg {
    background-color: var(--bg-white);
    background-image: repeating-radial-gradient( circle at center, rgba(50, 151, 167, 0.35), rgba(50, 151, 167, 0.35) 1.5px, transparent 1.5px, transparent 20px );
    background-size: 20px 20px; color: var(--text-dark);
}
.hero {
    padding: 6rem 0; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; min-height: 100vh;
}
.hero h1 {
    font-weight: 800; margin-bottom: 1.2rem;
    animation: fadeIn-up 0.8s ease-out forwards;
    opacity: 0; line-height: 1.4;
}
.hero p.lead {
    font-size: clamp(1.1rem, 3vw, 1.35rem); max-width: 750px;
    margin-bottom: 2.5rem; font-weight: 400; color: var(--text-body);
    line-height: 1.8; animation: fadeIn-up 0.8s ease-out 0.3s forwards;
    opacity: 0; margin-left: auto; margin-right: auto;
}
.hero .btn { animation: fadeIn-up 0.8s ease-out 0.6s forwards; opacity: 0; }
.line-break { display: block; }
@keyframes fadeIn-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.about-snippet-revised { background-color: var(--accent-tint); }
.about-content-flex { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.about-text { flex: 1 1 55%; padding-left: 1.5rem; border-left: 4px solid var(--accent-color); }
.about-image { flex: 1 1 40%; }
.about-image img { border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.brand-card {
    background-color: var(--bg-white); padding: 2.5rem 2rem; border-radius: 12px;
    box-shadow: 0 8px 25px rgba(40, 50, 60, 0.07); text-align: center;
    display: flex; flex-direction: column; justify-content: space-between; min-height: 320px;
}
.brand-card .brand-content h3 { font-size: 1.7rem; margin-bottom: 0.75rem; color: var(--accent-color); }
.brand-card .brand-content p { font-size: 0.98rem; color: var(--text-body); margin-bottom: 1.5rem; line-height: 1.7; }
.brand-card .btn { margin-top: auto; }
.contact-redesign-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
    align-items: center; background-color: var(--bg-white);
    padding: 3rem; border-radius: 15px; box-shadow: 0 10px 40px rgba(40, 50, 60, 0.1);
}
.contact-info-col h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--text-dark); }
.contact-info-col p { margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.8; }
.contact-info-col .contact-item { display: flex; align-items: center; margin-bottom: 1.2rem; font-weight: 500; }
.contact-info-col .contact-item svg { width: 24px; height: 24px; margin-right: 1rem; color: var(--accent-color); flex-shrink: 0; }
.contact-cta-col { background-color: var(--accent-tint); padding: 2.5rem; border-radius: 10px; text-align: center; }
.contact-cta-col h3 { font-size: 1.6rem; color: var(--text-dark); }
.contact-cta-col p { color: var(--text-body); margin-bottom: 2rem; }
.page-header { padding: clamp(4rem, 10vh, 6.5rem) 0; text-align: center; }
.page-header h1 { color: var(--text-dark); font-weight: 700; }
.page-header .section-subtitle { color: var(--text-body); margin-bottom: 0; font-size: clamp(1rem, 2.5vw, 1.2rem); }
.product-intro-text { font-size: 1.15rem; color: var(--text-body); max-width: 850px; margin: 0 auto clamp(2.5rem, 6vw, 3.5rem); text-align: center; line-height: 1.8; }
.cta-button-wrapper { text-align: center; margin-top: 3.5rem; padding: 2.5rem; background-color: var(--accent-tint); border-radius: 12px;}
.main-footer-revised {
    background-color: var(--footer-dark-bg); color: var(--text-muted);
    padding: clamp(3rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2rem); font-size: 0.92rem;
}
.main-footer-revised .footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.main-footer-revised .footer-column { flex: 1; min-width: 220px; padding: 0 10px; }
.main-footer-revised .footer-column h4 { color: var(--text-light); font-size: 1.1rem; margin-bottom: 1rem; }
.main-footer-revised .footer-column ul { list-style: none; padding: 0; }
.main-footer-revised .footer-column a { color: var(--text-muted); font-weight: 500; }
.main-footer-revised .footer-column a:hover { color: var(--accent-color); text-decoration: none; }
.main-footer-revised .footer-bottom {
    text-align: center; padding-top: 1.8rem;
    border-top: 1px solid var(--footer-dark-border);
    font-size: 0.875rem; color: #88929b;
}
.main-footer-revised .footer-bottom .company-name { color: var(--text-light); font-weight: 600; }
.modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; display: flex; justify-content: center; align-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-backdrop.active { opacity: 1; visibility: visible; }
.contact-modal { background: var(--bg-white); border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); max-width: 550px; width: 100%; padding: 2rem; position: relative; max-height: 90vh; overflow-y: auto; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-backdrop.active .contact-modal { transform: scale(1); }
.modal-close-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2rem; color: #aaa; cursor: pointer; line-height: 1; transition: color 0.2s ease; }
.modal-close-btn:hover { color: var(--text-dark); }
.contact-modal h2 { margin-bottom: 0.5rem; text-align: center; }
.contact-modal p { text-align: center; margin-bottom: 2rem; color: var(--text-body); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--text-dark); }
.form-group input, .form-group textarea { width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--border-color); border-radius: 8px; font-family: 'Lato', sans-serif; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(50, 151, 167, 0.2); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .btn-primary { width: 100%; padding: 1rem; font-size: 1rem; }
@media (max-width: 992px) {
    .nav-toggle { display: block; }
    .main-nav ul {
        position: fixed; top: 0; right: 0; width: 300px; height: 100%;
        background-color: var(--bg-white); flex-direction: column; align-items: flex-start;
        padding: 6rem 2rem 2rem; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%); transition: transform 0.35s ease-in-out; z-index: 1040;
    }
    .main-nav ul.active { transform: translateX(0); }
    .main-nav li { margin: 0 0 1.5rem 0; width: 100%; }
    .main-nav a:not(.btn) { display: block; width: 100%; padding-bottom: 0.5rem; font-size: 1.1rem; }
    .main-nav .btn { width: 100%; text-align: center; }
    .hero { min-height: auto; padding: 6rem 0; }
    .contact-redesign-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .section { padding: clamp(3rem, 7vw, 4rem) 0; }
    .about-text { flex-basis: 100%; padding-right: 0; padding-left: 1rem; border-left-width: 3px; }
    .about-image { flex-basis: 100%; margin-top: 2.5rem; }
    .hero h1 { text-align: center; line-height: 1.5; }
    .footer-content { flex-direction: column; text-align: left; }
    .footer-column { min-width: 100%; margin-bottom: 1.5rem; padding: 0; }
}
@media (max-width: 576px) {
    .container { width: 95%; }
    .logo img { max-height: 40px; }
    .main-nav ul { width: 100%; }
    .btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    .contact-redesign-wrapper { padding: 1.5rem; }
    .contact-cta-col { padding: 1.5rem; }
}

/* PANAM PAGE SPECIFIC STYLES - included here for completeness */
.page-header-panam {
    background-color: var(--accent-tint);
    padding: clamp(3rem, 7vh, 5rem) 0;
    text-align: center;
}
.page-header-panam h1 {
    color: var(--text-dark);
    font-weight: 700;
}
.panam-intro-text {
    font-size: 1.15rem;
    color: var(--text-body);
    max-width: 850px;
    margin: 0 auto clamp(2.5rem, 6vw, 3.5rem);
    text-align: center;
    line-height: 1.8;
}
.product-categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.category-card {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(40,50,60,0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--accent-color);
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(40,50,60,0.12);
}
.category-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.category-card ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.category-card ul li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-color);
}
.category-card ul li:last-child {
    border-bottom: none;
}
.download-cta-revised {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    background-color: var(--bg-white);
    padding: 2.5rem 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(40, 50, 60, 0.1);
    margin-top: 4rem;
}
.download-cta-revised .cta-text h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}
.download-cta-revised .cta-text p {
    margin-bottom: 0;
    color: var(--text-body);
    max-width: 500px;
}
.download-cta-revised .cta-button .btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .download-cta-revised {
        justify-content: center;
        text-align: center;
    }
}


/* JK FENNER PAGE SPECIFIC STYLES - included here for completeness */
.page-header-jkfenner {
    background-color: var(--accent-tint);
    padding: clamp(3rem, 7vh, 5rem) 0;
    text-align: center;
}
.page-header-jkfenner h1 {
    color: var(--text-dark);
    font-weight: 700;
}
.jkfenner-intro-text {
    font-size: 1.15rem;
    color: var(--text-body);
    max-width: 850px;
    margin: 0 auto clamp(2.5rem, 6vw, 3.5rem);
    text-align: center;
    line-height: 1.8;
}
.lubricant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
@media (min-width: 992px) {
    .lubricant-grid.four-items {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
}
.lubricant-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(40,50,60,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lubricant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(40,50,60,0.12);
}
.lubricant-image-wrapper {
    background-color: #f8f9fa;
    padding: 1.5rem;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.lubricant-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.lubricant-content {
    padding: 1.8rem 1.6rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.lubricant-content h3 {
    color: var(--accent-color);
    font-size: 1.45rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.lubricant-content p.description {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
    color: var(--text-body);
    line-height: 1.7;
}
.lubricant-content .pack-sizes {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
}

/* TUBACEX PAGE SPECIFIC STYLES - included here for completeness */
.page-header-tubacex {
    background-color: var(--accent-tint);
    padding: clamp(3rem, 7vh, 5rem) 0;
    text-align: center;
}
.page-header-tubacex h1 {
    color: var(--text-dark);
    font-weight: 700;
}
.image-text-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}
.image-column { flex: 1 1 40%; min-width: 300px; }
.image-column img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.text-column { flex: 1 1 55%; }
.text-column h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 1rem;
    color: var(--text-dark);
}
.text-column p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.text-column .subtle-text { font-size:0.9em; color:#6a737c; margin-top:0.5rem;}
.section-sub-heading {
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    margin-top: 3rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: left;
    border-bottom: 3px solid var(--accent-tint);
    padding-bottom: 0.75rem;
}
.product-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.feature-item {
    background-color: #ffffff;
    padding: 1.8rem 1.6rem;
    border-radius: 10px;
    box-shadow: 0 7px 20px rgba(40,50,60,0.06);
    border-left: 4px solid var(--accent-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(40,50,60,0.09);
}
.feature-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.feature-item p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 0;
    line-height: 1.7;
}
.certs-list {
    list-style: none;
    padding:0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}
.certs-list li {
    background-color: var(--accent-tint);
    color: var(--accent-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.disclaimer-text { font-size:0.88rem; color:#6a737c; margin-top:1.5rem; font-style: italic; line-height: 1.6; }