/* ===================================
   TW Solutions - Light Professional Theme
   =================================== */

:root {
    --navy: #0c2340;
    --navy-light: #1a3a5c;
    --navy-dark: #061525;
    --gold: #c9a84c;
    --gold-hover: #b8952f;
    --gold-light: #f5ecd4;
    --gold-muted: rgba(201, 168, 76, 0.1);
    --white: #ffffff;
    --off-white: #f8f9fb;
    --light-grey: #f0f2f5;
    --mid-grey: #e4e7ec;
    --text: #333945;
    --text-muted: #6b7280;
    --text-dim: #9ca3af;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 36px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 14px;
    --transition: 0.3s ease;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

.gold { color: var(--gold); }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 14px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

.section-header p {
    color: var(--text-muted);
    margin-top: 14px;
}

.section { padding: 90px 0; }
.section-white { background: var(--white); }
.section-light { background: var(--off-white); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-navy:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(12, 35, 64, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 9px;
    padding-bottom: 9px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item svg { opacity: 0.7; }
.top-bar-divider { opacity: 0.25; }

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.logo-text { display: flex; flex-direction: column; }

.logo-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-links a {
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--navy);
    background: var(--off-white);
}

.nav-quote-btn {
    padding: 10px 24px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius);
    letter-spacing: 0.3px;
}

.nav-quote-btn:hover {
    background: var(--gold-hover);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    overflow: hidden;
    background-image: linear-gradient(135deg, rgba(6,21,37,0.88) 0%, rgba(12,35,64,0.82) 50%, rgba(26,58,92,0.78) 100%), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 75% 40%, rgba(201,168,76,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 15% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    max-width: 680px;
    padding-top: 60px;
    padding-bottom: 100px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.65);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero bottom strip */
.hero-bottom-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.strip-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-right: 1px solid var(--border);
}

.strip-item:last-child { border-right: none; }

.strip-item svg {
    flex-shrink: 0;
    color: var(--gold);
}

.strip-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--navy);
    font-weight: 600;
}

.strip-item span {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ===== PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--mid-grey);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    position: relative;
    background: var(--light-grey);
    overflow: hidden;
}

.product-img img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    background: var(--gold);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.product-body {
    padding: 28px;
}

.product-body h3 { margin-bottom: 10px; }

.product-body > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
    line-height: 1.7;
}

.product-body ul {
    list-style: none;
    margin-bottom: 22px;
}

.product-body ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text);
}

.product-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
}

/* ===== ABOUT ===== */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-left h2 { margin-bottom: 20px; }

.about-left p {
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.about-stat { text-align: center; }

.about-stat-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.about-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

.about-img-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.about-img-box img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* ===== WHY US ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.why-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.why-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-muted);
    border-radius: var(--radius);
    color: var(--gold);
    margin-bottom: 18px;
}

.why-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.why-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gi-wide { grid-column: span 2; }

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-placeholder {
    background: var(--light-grey);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-dim);
}

.gallery-placeholder span {
    font-size: 0.82rem;
    font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--mid-grey);
    box-shadow: var(--shadow);
}

.tc-stars {
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-card > p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 22px;
    font-style: italic;
}

.tc-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.tc-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--navy);
}

.tc-author span {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover { border-color: var(--mid-grey); }
.faq-item.active { border-color: var(--gold); box-shadow: 0 2px 12px rgba(201,168,76,0.1); }

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: var(--white);
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    transition: var(--transition);
}

.faq-q:hover { background: var(--off-white); }

.faq-q svg {
    flex-shrink: 0;
    color: var(--gold);
    transition: var(--transition);
}

.faq-item.active .faq-q svg { transform: rotate(45deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-a p {
    padding: 0 22px 18px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.9rem;
}

/* ===== CONTACT ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
}

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

.cd-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.cd-card:hover { border-color: var(--mid-grey); box-shadow: var(--shadow-sm); }

.cd-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-muted);
    border-radius: var(--radius);
    color: var(--gold);
}

.cd-card strong {
    display: block;
    color: var(--navy);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.cd-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

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

.form-group { margin-bottom: 16px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
    background: var(--white);
}

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

.form-group select {
    appearance: none;
    color: var(--text-dim);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    background-color: var(--off-white);
}

.form-group select option { color: var(--text); }

/* ===== FOOTER ===== */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.65);
    padding-top: 64px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-icon {
    background: rgba(255,255,255,0.1);
    color: var(--gold);
}

.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-tagline { color: rgba(255,255,255,0.4); }

.footer-brand p {
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 16px;
    color: var(--white);
}

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

.footer-col ul li {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
}

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

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* ===== BACK TO TOP ===== */
.btt {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 99;
}

.btt.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.btt:hover { background: var(--gold); transform: translateY(-3px); }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.vis {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .products-grid,
    .why-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gi-wide { grid-column: span 1; }

    .footer-top { grid-template-columns: repeat(2, 1fr); }
    .strip-inner { grid-template-columns: repeat(2, 1fr); }
    .strip-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .top-bar-right { display: none; }

    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 2px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active { transform: translateY(0); opacity: 1; }
    .nav-links a { padding: 12px 16px; font-size: 1rem; }
    .nav-quote-btn { display: none; }

    .hero { min-height: 70vh; }
    .hero-content { padding-bottom: 140px; }

    .strip-inner { grid-template-columns: 1fr 1fr; }
    .strip-item { padding: 14px 16px; }
    .strip-item:nth-child(2),
    .strip-item:nth-child(4) { border-right: none; }

    .about-layout { grid-template-columns: 1fr; gap: 40px; }
    .about-stats { gap: 24px; }

    .products-grid,
    .why-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .strip-inner { grid-template-columns: 1fr; }
    .strip-item { border-right: none; border-bottom: 1px solid var(--border); }
    .strip-item:last-child { border-bottom: none; }
    .about-stats { flex-direction: column; gap: 16px; }
}
