/* ── KTPL Website — Global Styles ── */
:root {
    --primary: #1a3a5c;
    --primary-dark: #0f2640;
    --accent: #e8731a;
    --accent-hover: #d1650f;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #dee2e6;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ── Top Bar ── */
.top-bar {
    background: var(--primary-dark);
    color: #ccc;
    font-size: 0.85rem;
    padding: 6px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.top-bar a { color: #ccc; }
.top-bar a:hover { color: var(--accent); }

/* ── Navbar ── */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.navbar .logo img {
    height: 60px;
}
.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 0;
}
.navbar .nav-links li a {
    display: block;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    border-bottom: 3px solid transparent;
    transition: all 0.25s;
}
.navbar .nav-links li a:hover,
.navbar .nav-links li a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* ── Container ── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Hero Banner ── */
.hero {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,58,92,0.85), rgba(15,38,64,0.7));
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 20px;
}
.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 20px;
}
.hero .tagline {
    display: inline-block;
    background: var(--accent);
    padding: 6px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Page Header ── */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}
.page-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.page-header p {
    opacity: 0.8;
    font-size: 1.05rem;
}

/* ── Sections ── */
.section {
    padding: 60px 0;
}
.section.alt {
    background: var(--light-bg);
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.section-title .underline {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* ── Grid ── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── Cards ── */
.card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
    transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}
.card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.15rem;
}
.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}
.card .icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: block;
}
.card .icon-img {
    width: 2.6rem;
    height: 2.6rem;
    object-fit: contain;
    margin-bottom: 14px;
    display: block;
}

/* ── Team Cards ── */
.team-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.25s;
}
.team-card:hover {
    transform: translateY(-4px);
}
.team-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.team-card h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 4px;
}
.team-card .role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.team-card .phone {
    color: var(--text-light);
    font-size: 0.88rem;
}

/* ── Table ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.data-table thead {
    background: var(--primary);
    color: var(--white);
}
.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.93rem;
}
.data-table tbody tr:nth-child(even) {
    background: var(--light-bg);
}
.data-table tbody tr:hover {
    background: #e8edf3;
}

/* ── ISO Badge ── */
.iso-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ── Bullet List ── */
.check-list {
    list-style: none;
    padding: 0;
}
.check-list li {
    padding: 6px 0 6px 28px;
    position: relative;
    color: var(--text-light);
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ── Contact Form ── */
.contact-form {
    max-width: 600px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--primary);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
}
.btn:hover {
    background: var(--accent-hover);
}

/* ── Contact Info Box ── */
.contact-info-box {
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    padding: 36px 30px;
}
.contact-info-box h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.contact-info-box .info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
}
.contact-info-box .info-item .icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-info-box .info-item p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.6;
}

/* ── Footer ── */
footer {
    background: var(--primary-dark);
    color: #aaa;
    padding: 40px 0 20px;
    margin-top: auto;
}
footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
footer h4 {
    color: var(--white);
    margin-bottom: 14px;
    font-size: 1rem;
}
footer p, footer li {
    font-size: 0.9rem;
    line-height: 1.8;
}
footer ul {
    list-style: none;
}
footer a { color: #ccc; }
footer a:hover { color: var(--accent); }
footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    text-align: center;
    font-size: 0.85rem;
}

/* ── Image in Section ── */
.section-img {
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    footer .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero { height: 320px; }
    .hero h1 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .navbar .nav-links.open { display: flex; }
    .navbar .nav-links li a {
        padding: 14px 20px;
        border-bottom: 1px solid var(--light-bg);
    }
}
