/* SM Traders - Main Stylesheet */
:root {
    --accent: #ddb0b7;
    --accent-dark: #c9959e;
    --heading: #212121;
    --text: #737373;
    --bg: #fff;
    --border: #d7d7d7;
    --dark-bg: #1a1a1a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
}

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

a { color: var(--heading); text-decoration: none; transition: color .3s; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

/* ──── HEADER ──── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: all .3s;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo img {
    height: 55px;
    width: auto;
}

.site-logo .logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading);
    letter-spacing: 1px;
}

.site-logo .logo-text span {
    color: var(--accent-dark);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.main-nav ul li a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--heading);
    transition: color .3s;
}

.main-nav ul li a:hover {
    color: var(--accent-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--heading);
    transition: all .3s;
}

/* ──── HERO SLIDER ──── */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 550px;
    overflow: hidden;
    margin-top: 80px;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active { opacity: 1; }

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
}

.slide-content h1 {
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 300;
    color: #fff;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-family: 'Dosis', 'Lato', sans-serif;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 13px 38px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all .3s;
    cursor: pointer;
}

.btn-primary:hover {
    background: #fff;
    color: var(--heading);
}

.btn-accent {
    display: inline-block;
    padding: 13px 38px;
    background: var(--accent);
    border: 2px solid var(--accent);
    color: #fff;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all .3s;
    cursor: pointer;
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.7);
    transition: background .3s;
}

.slider-dot.active { background: #fff; }

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .3s;
}

.slider-arrow:hover { background: rgba(255,255,255,0.4); }

/* ──── SECTION COMMONS ──── */
.section {
    padding: 90px 0;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 55px;
}

.section-label {
    font-family: 'Dosis', 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 15px;
}

.section-divider {
    width: 54px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 20px;
}

.section-sub {
    font-size: 16px;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ──── ABOUT SECTION ──── */
#about {
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text);
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
}

.about-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* ──── SERVICES ──── */
#services {
    background: #fafafa;
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 55px;
}

.services-intro h5 {
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.service-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.service-icon {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    background: var(--accent);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.service-text h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--heading);
    margin-bottom: 8px;
    margin-top: 4px;
}

.service-text p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
}

/* ──── PRODUCTS / MATERIALS ──── */
#products {
    background: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow .3s, transform .3s;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.product-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card-body {
    padding: 18px;
}

.product-card-body h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--heading);
    margin-bottom: 6px;
}

.product-card-body p {
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
}

/* ──── TESTIMONIALS ──── */
#testimonials {
    background: var(--dark-bg);
    color: #fff;
}

#testimonials .section-header h2 { color: #fff; }
#testimonials .section-label { color: rgba(255,255,255,0.6); }
#testimonials .section-divider { background: var(--accent); }

.testimonials-slider {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.testimonial {
    display: none;
    padding: 20px;
}

.testimonial.active { display: block; }

.testimonial-text {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    line-height: 1.9;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-text::before { content: '\201C'; font-size: 60px; color: var(--accent); line-height: 0; vertical-align: -25px; margin-right: 5px; }
.testimonial-text::after { content: '\201D'; font-size: 60px; color: var(--accent); line-height: 0; vertical-align: -25px; margin-left: 5px; }

.testimonial-author {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 4px;
}

.testimonial-company {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background .3s;
}

.t-dot.active { background: var(--accent); }

/* ──── PARTNERS ──── */
#partners {
    background: #fff;
    padding: 80px 0;
}

#partners .section-header h2 { font-size: 24px; }

.partners-track {
    overflow: hidden;
    position: relative;
}

.partners-inner {
    display: flex;
    gap: 50px;
    align-items: center;
    animation: scroll-partners 20s linear infinite;
    width: max-content;
}

.partners-inner:hover { animation-play-state: paused; }

@keyframes scroll-partners {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-logo {
    height: 65px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(60%);
    opacity: 0.8;
    transition: all .3s;
    flex-shrink: 0;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ──── CONTACT ──── */
#contact {
    background: #f8f8f8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-map iframe {
    width: 100%;
    height: 380px;
    border: none;
}

.contact-info {
    margin-top: 20px;
    padding: 18px;
    background: #fff;
    border-left: 3px solid var(--accent);
}

.contact-info p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
}

.contact-info strong {
    color: var(--heading);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 14px;
    color: var(--heading);
    font-family: inherit;
    margin-bottom: 18px;
    outline: none;
    transition: border-color .3s;
    appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.contact-form textarea { height: 130px; resize: vertical; }

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-success {
    background: #eaf7ea;
    border: 1px solid #b6ddb6;
    color: #2d6a2d;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 14px;
    display: none;
}

.form-error {
    background: #fdeaea;
    border: 1px solid #e8b4b4;
    color: #8b2020;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-size: 14px;
    display: none;
}

/* ──── FOOTER ──── */
.site-footer {
    background: #111;
    color: rgba(255,255,255,0.65);
    padding: 60px 0 30px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 18px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.55);
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    transition: color .3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-contact p {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-contact p svg {
    width: 16px;
    height: 16px;
    fill: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ──── PAGE HERO ──── */
.page-hero {
    background: linear-gradient(135deg, var(--heading) 0%, #444 100%);
    padding: 120px 30px 60px;
    text-align: center;
    margin-top: 80px;
}

.page-hero h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.page-hero p {
    color: rgba(255,255,255,0.7);
    margin-top: 10px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ──── RESPONSIVE ──── */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.1); padding: 10px 0; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav ul li a { padding: 12px 25px; border-bottom: 1px solid #f0f0f0; }
    .hamburger { display: flex; }
    .about-content { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .hero-slider { height: 70vh; }
    .slide-content h1 { font-size: 32px; letter-spacing: 3px; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .header-inner { padding: 0 15px; }
    .section-inner { padding: 0 15px; }
}

/* ──── PRODUCT MODAL ──── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .25s ease;
}

.modal-overlay.open { display: flex; }

@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

.modal-box {
    background: #fff;
    max-width: 920px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp .3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@keyframes slideUp { from { transform:translateY(30px); opacity:0 } to { transform:translateY(0); opacity:1 } }

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10;
    background: var(--heading);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    font-size: 20px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}
.modal-close:hover { background: var(--accent-dark); }

.modal-gallery {
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal-main-img {
    width: 100%;
    height: 340px;
    object-fit: contain;
    background: #f0f0f0;
    cursor: zoom-in;
    transition: transform .3s;
}

.modal-main-img:hover { transform: scale(1.02); }

.modal-thumbs {
    display: flex;
    gap: 6px;
    padding: 10px;
    flex-wrap: wrap;
}

.modal-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s;
    opacity: .7;
    transition: opacity .2s, border-color .2s;
}

.modal-thumb:hover, .modal-thumb.active {
    border-color: var(--accent);
    opacity: 1;
}

.modal-body {
    padding: 35px 30px 30px;
    display: flex;
    flex-direction: column;
}

.modal-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 16px;
    line-height: 1.3;
}

.modal-divider {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 18px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 25px;
    flex: 1;
}

.modal-contact {
    background: #f8f8f8;
    padding: 16px;
    border-left: 3px solid var(--accent);
    font-size: 13px;
    color: var(--text);
    margin-bottom: 20px;
}

.modal-contact strong { color: var(--heading); }

.modal-nav {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.modal-nav-btn {
    padding: 9px 18px;
    background: transparent;
    border: 1px solid var(--border);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    color: var(--text);
    transition: all .25s;
}

.modal-nav-btn:hover {
    background: var(--heading);
    color: #fff;
    border-color: var(--heading);
}

/* Lightbox (full-screen image zoom) */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.97);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    box-shadow: 0 0 60px rgba(0,0,0,.5);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 20px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    opacity: .8;
    transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

/* Product card cursor */
.product-card { cursor: pointer; }

@media (max-width: 680px) {
    .modal-box { grid-template-columns: 1fr; }
    .modal-main-img { height: 220px; }
}
