@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --almost-white: #F7F9FC;
    --charcoal: #333333;
    --white: #FFFFFF;
    --white-panel: #F1F4F5;
    --white-panel-hover: #E7ECEE;
    --line: #DCE3E5;
    --accent: #FFA500;
    --accent-bright: #FFC800;
    --accent-fg: #A85700;
    --ink: #16323C;
    --ink-dim: #5C7680;
    --navbar-height: 61px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
}

body {
    padding-top: var(--navbar-height);
}

/* Hero Section */
.hero-gallery {
    column-count: 2;
    column-gap: 1rem;
}

.hero-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
}

.hero-gallery img {
    width: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: block;
    break-inside: avoid;
    transition: transform 0.3s ease;
}

.hero-gallery a:hover img {
    transform: scale(1.05);
}

.hero-gallery img.aspect-3-2 {
    aspect-ratio: 3 / 2;
}

.hero-gallery img.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Navigation Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 3;
    padding: 0;
    background: var(--almost-white);
    border-bottom: 1px solid var(--line);
    transition: all .3s ease;
    box-shadow: 0 2px 12px rgba(22, 50, 60, 0.05);
}

.navbar .max-width {
    max-width: 1300px;
    height: 100%;
    padding: 0 20px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    align-items: center;
}

.logo-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: skewX(-12deg);
    margin-right: 2px;
}

.logo-subtitle {
    font-family: 'Open Sans', 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: var(--ink-dim);
    text-transform: uppercase;
    letter-spacing: 3.5px;
    margin-top: 4px;
    margin-right: -3.5px;
}

.logo-arrow {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.logo-mark:hover .logo-arrow {
    transform: translateX(3px);
}

.mobile-home-item {
    display: none;
}

.menu li {
    list-style: none;
    display: inline-block;
    font-weight: bold;
}

.menu li a {
    display: block;
    color: var(--ink);
    font-size: 16px;
    letter-spacing: 1px;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.menu li a:hover {
    color: var(--accent-fg);
}

.search-icon {
    height: 40px;
    width: 240px;
    display: flex;
    background: #242424;
    border-radius: 5px;
}

.search-icon form {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
}

.search-icon input {
    height: 100%;
    width: 200px;
    border: none;
    outline: none;
    padding: 0 10px;
    color: #000;
    font-size: 16px;
    border: 5px 0 0 5px;
}

.search-icon .icon {
    height: 100%;
    width: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #FFC800;
    border: 1px solid #FFF;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.search-icon .icon:hover {
    background-color: #D9AA00;
}

.search-icon .icon i {
    color: #FFF;
    font-size: 18px;
}

.menu-btn {
    color: var(--ink);
    font-size: 30px;
    cursor: pointer;
    display: none;
}

.print-cta-banner {
    background: var(--navy-panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 60px;
    padding: 40px 20px;
}

/* The flexbox container to put items side-by-side */
.print-cta-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    /* Space between the image and the text */
}

/* Image container styling */
.print-cta-image {
    flex: 1;
    /* Takes up 50% of the space */
}

.print-cta-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    /* Slightly rounds the corners of your photo */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
}

.print-cta-content {
    flex: 1;
    text-align: left;
}

.print-cta-content i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 15px;
}

.print-cta-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.print-cta-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--ink-dim);
}

.process-see-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent-fg);
}

.process-see-more i {
    font-size: 11px;
}

/* Homepage: wraps the eyebrow/heading + slider together */
.featured-components-section {
    max-width: 1300px;
    margin: 70px auto 0;
    padding: 0 20px;
    text-align: center;
}

.featured-components-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin: 8px 0 30px;
}

.featured-components-section .hero-slider {
    text-align: left;
    border-radius: 10px;
    margin-top: 0;
}

/* Hero slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 480px;
    margin-top: var(--navbar-height);
    background: var(--navy-panel);
    overflow: hidden;
}

.hero-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 0 8%;
    color: var(--ink);
    background: #fff;
}

.hero-slide-image {
    height: 100%;
    max-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-panel);
    border-radius: 10px;
}

.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
}

.hero-slide-image i {
    font-size: 60px;
    color: var(--ink-dim);
}

.hero-slide-info h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 12px 0 14px;
}

.hero-slide-info p {
    font-size: 15px;
    color: var(--ink-dim);
    line-height: 1.7;
    max-width: 440px;
    margin-bottom: 20px;

    /* Clamp to 2 lines so varying description lengths don't change slide height */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-fg);
}

.hero-slide-cta i {
    font-size: 12px;
    transition: transform .2s ease;
}

.hero-slide:hover .hero-slide-cta i {
    transform: translateX(4px);
}

/* Arrows */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s ease, color .2s ease;
}

.hero-slider-arrow:hover {
    border-color: var(--accent-fg);
    color: var(--accent-fg);
}

.hero-slider-prev {
    left: 20px;
}

.hero-slider-next {
    right: 20px;
}

/* ---------- Dots ---------- */
.hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}

.hero-slider-dot.active {
    background: var(--accent-fg);
    transform: scale(1.2);
}

.hero-slider-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--ink-dim);
}

.hero-slider-empty i {
    font-size: 40px;
}

/* About page */
.about {
    background-color: var(--white);
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 26px 26px;
    padding: calc(var(--navbar-height) + 60px) 20px 100px;
    color: var(--ink);
    overflow: hidden;
}

.about * {
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {

    .about-company,
    .tombak-expertise,
    .values>div {
        animation: fadeUp .7s ease both;
    }

    .about-company {
        animation-delay: .05s;
    }

    .tombak-expertise {
        animation-delay: .2s;
    }

    .values .vision {
        animation-delay: .3s;
    }

    .values .mission {
        animation-delay: .4s;
    }

    .values .objectives {
        animation-delay: .5s;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* logo + description */
.about-company {
    max-width: 1100px;
    margin: 0 auto 90px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;
    align-items: center;
}

.tombak-logo {
    position: relative;
    padding: 22px;
}

.tombak-logo::before,
.tombak-logo::after,
.tombak-logo span::before,
.tombak-logo span::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
}

/* corner brackets, datasheet-style frame */
.tombak-logo::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.tombak-logo::after {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.tombak-logo img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.description-title h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #242424;
    margin-bottom: 18px;
}

.description-title h1::before {
    content: "COMPANY OVERVIEW";
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
}

.company-description p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-dim);
    max-width: 620px;
}

/* Featured Company Image */
.company-featured-image {
    margin-top: 30px;
    max-width: 620px;
}

.company-featured-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 6px;
    border: 1px solid var(--line);
    box-shadow: 0 4px 15px rgba(22, 50, 60, 0.08);
}

.tombak-expertise {
    max-width: 1100px;
    margin: 0 auto 100px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tombak-expertise p {
    position: relative;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    letter-spacing: .3px;
    color: var(--ink);
    background: var(--white-panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 18px 10px 30px;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.tombak-expertise p::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 6px var(--accent-bright);
}

.tombak-expertise p:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 165, 0, 0.12);
}

/* Core Values Card  */
.core-values-section {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.core-values-header {
    margin-bottom: 2rem;
    text-align: center;
}

.core-values-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.core-values-card p {
    margin: 0.75rem 0 0;
    color: #4B5563;
    font-size: 1rem;
    line-height: 1.75;
}

.core-values-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.core-values-card {
    overflow: hidden;
    border-radius: 0.75rem;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, box-shadow 0.2s ease;
}

.core-values-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.12),
                0 4px 8px -4px rgba(0, 0, 0, 0.08);
}

.core-values-card h3 {
    margin: 0;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 700;
}

.core-values-card .container {
    padding: 1.75rem;
}

.core-values-card ul {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
    color: #4b5563;
    line-height: 1.6;
}

.core-values-card li {
    margin-bottom: 0.5rem;
}

.core-values-card li:last-child {
    margin-bottom: 0;
}

.core-values-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    color: #2563EB;
}

.core-values-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
}

/* Tombak Technology Service Page */
.services-hero {
    width: 100%;
    background: linear-gradient(rgba(26, 60, 70, 0.85), rgba(26, 60, 70, 0.85)),
        url('../images/front-counter.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: calc(var(--navbar-height) + 80px) 20px 80px;
    text-align: center;
}

.services-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.services-hero h1 {
    font-size: 38px;
    font-weight: 700;
    color: white;
    line-height: 1.25;
    margin: 12px 0 18px;
}

.services-hero-intro {
    font-size: 16px;
    color: #E7E9EB;
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto 34px;
}

.services-cta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: 6px;
    transition: background .2s ease, transform .2s ease, border-color .2s ease, color .2s ease;
}

.cta-primary {
    background: var(--accent);
    color: var(--ink);
}

.cta-primary:hover {
    background: var(--accent-bright);
    transform: translateY(-2px);
}

.cta-secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.cta-secondary:hover {
    border-color: var(--accent-fg);
    color: var(--accent-fg);
}

.cta-tertiary {
    background: transparent;
    color: #E7E9EB;
    border: 1px solid var(--line);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.cta-tertiary:hover {
    border-color: #00B4D8;
    color: #00B4D8;
}

/* Learn Page */
.resource-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--ink);
    margin: 14px 0 10px;
}

.resource-description {
    color: var(--ink-dim);
    font-size: 15px;
    line-height: 1.75;
    max-width: 700px;
    margin-bottom: 24px;
}

.pdf-open-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent-fg);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 9px 16px;
    margin-bottom: 24px;
    transition: border-color .2s ease;
}

.pdf-open-link:hover {
    border-color: var(--accent-fg);
}

.pdf-preview-frame {
    width: 100%;
    height: 85vh;
    max-height: 900px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--navy-panel);
}

.pdf-preview-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-preview-frame iframe p {
    padding: 30px;
    text-align: center;
    color: var(--ink-dim);
}

/* ---------- Process section ---------- */
.process-section {
    max-width: 1200px;
    margin: 90px auto 0;
    padding: 0 20px;
    text-align: center;
}

.process-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    margin: 8px 0 40px;
}

.process-steps {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 20px;
}

.process-steps::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: repeating-linear-gradient(to right,
            var(--line) 0, var(--line) 6px, transparent 6px, transparent 12px);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    width: 200px;
    text-align: center;
}

.process-step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-fg);
    transition: border-color .25s ease, transform .25s ease;
}

.process-step:hover .process-step-icon {
    border-color: var(--accent-fg);
    transform: translateY(-3px);
}

.process-step-number {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--accent-fg);
    margin-bottom: 6px;
}

.process-step h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 13.5px;
    color: var(--ink-dim);
    line-height: 1.6;
}

/* ---------- FAQ teaser ---------- */
.services-faq-teaser {
    max-width: 1000px;
    margin: 90px auto 100px;
    padding: 40px 20px;
    background: var(--navy-panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.faq-teaser-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.faq-teaser-content p {
    font-size: 14px;
    color: var(--ink-dim);
}

/* Services Card */
.services-section {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.services-header {
    margin-bottom: 2rem;
    text-align: center;
}

.services-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.services-header p {
    color: #6b7280;
    margin: 0;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.core-services-card {
    overflow: hidden;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}
.core-services-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

.core-services-card img {
    height: 12rem;
    width: 100%;
    object-fit: cover;
    display: block;
}

.core-services-card .container {
    padding: 1.5rem;
}

.core-services-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.core-services-card p {
    margin-top: 0.5rem;
    color: #6b7280;
}

/* Tombak Technology Services Cards */
.services-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
    width: 95%;
    max-width: 1280px;
    margin: 60px auto;
    align-items: start;
}

.service-card {
    background: #ffffff;
    text-align: center;
    border-radius: 8px;
    padding: 40px 30px;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Subpoints: align-items:start on the grid container (above) means this
   card's own height can grow on hover without stretching/jumping siblings
   in the same grid row — that was the actual bug, not the reveal technique. */
.service-subpoints {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.4s ease;
}

.service-subpoints li {
    margin-bottom: 6px;
}

.service-card:hover .service-subpoints {
    max-height: 250px;
    opacity: 1;
    margin-top: 15px;
}

.service-icon {
    font-size: 2.5rem;
    color: #242424;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.25rem;
    color: #2b2b2b;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
}

.service-description {
    font-size: 1rem;
    color: #595959;
    line-height: 1.6;
    margin: 0;
}

/* Prototype Process */
.prototype-process-section {
    max-width: 48rem;
    margin: 0 auto;
    padding: 1.5rem;
    font-family: inherit;
}

.prototype-process-header {
    margin-bottom: 2rem;
    text-align: center;
}

.prototype-process-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem;
}

.prototype-process-header p {
    color: #6b7280;
    margin: 0;
}

.prototype-steps-card {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.prototype-step {
    border-bottom: 1px solid #f3f4f6;
}

.prototype-step:last-child {
    border-bottom: none;
}

.prototype-step-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    text-align: left;
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font: inherit;
}

.prototype-step-trigger:hover {
    background: #f9fafb;
}

.prototype-step-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prototype-step-icon {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: #f0f9ff;
    color: #0ea5e9;
    transition: all 0.3s ease;
}

.prototype-step-icon svg {
    height: 1.25rem;
    width: 1.25rem;
    stroke-width: 2;
}

.prototype-step.active .prototype-step-icon {
    background: #0ea5e9;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transform: scale(1.1);
}

.prototype-step.active .prototype-step-icon svg {
    stroke-width: 2.5;
}

.prototype-step-left h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    transition: color 0.2s ease;
}

.prototype-step.active .prototype-step-left h2 {
    color: #111827;
}

.prototype-step-chevron {
    color: #9ca3af;
    display: flex;
    transition: transform 0.3s ease;
}

.prototype-step-chevron svg {
    height: 1.25rem;
    width: 1.25rem;
}

.prototype-step.active .prototype-step-chevron {
    transform: rotate(180deg);
}

.prototype-step-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin-bottom 0.3s ease-in-out;
    margin-bottom: 0;
}

.prototype-step.active .prototype-step-body {
    max-height: 10rem;
    opacity: 1;
    margin-bottom: 1rem;
}

.prototype-step-body p {
    padding-left: 4.5rem;
    padding-right: 1rem;
    color: #4b5563;
    line-height: 1.625;
    margin: 0;
}

/* Request Form Prototype */
.request-form-page {
    max-width: 640px;
    margin: 0 auto;
    padding: calc(var(--navbar-height, 60px) + 40px) 20px 100px;
}

.request-form-page h1 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    /* Forced dark text for light mode */
    margin-bottom: 12px;
    line-height: 1.2;
}

.request-form-intro {
    color: #4B5563;
    /* Readable gray for light mode */
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Base styling for ALL inputs */
.request-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    /* Dark gray */
    margin-bottom: 6px;
}

.request-form .field-hint {
    font-weight: 400;
    color: #6B7280;
    font-size: 12.5px;
}

.request-form input:not([type="submit"]),
.request-form select,
.request-form textarea {
    width: 100%;
    box-sizing: border-box;
    /* Crucial: stops 100% width from overflowing on mobile */
    background: #ffffff;
    /* Crisp white for light mode */
    border: 1px solid #D1D5DB;
    /* Subtle gray border */
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 22px;
    color: #111827;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: all 0.2s ease;
}

/* File input specific tweaks */
.request-form input[type="file"] {
    padding: 9px 14px;
    background: #F9FAFB;
    /* Slight off-white to differentiate file uploads */
    cursor: pointer;
}

/* Focus states for accessibility and clear interaction */
.request-form input:not([type="submit"]):focus,
.request-form select:focus,
.request-form textarea:focus {
    outline: none;
    border-color: var(--accent-fg, #A85700);
    /* Uses your accent color */
    box-shadow: 0 0 0 3px rgba(168, 87, 0, 0.15);
    background: #ffffff;
}

/* Submit Button */
.request-form input[type="submit"] {
    width: 100%;
    /* Full width is easier to tap on mobile */
    background: var(--accent-fg, #A85700);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.request-form input[type="submit"]:hover {
    filter: brightness(0.9);
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #EAF7EE;
    border: 1px solid #BFE6CB;
    color: #1F7A3D;
    padding: 16px 18px;
    border-radius: 6px;
    font-size: 14.5px;
    margin-bottom: 24px;
    line-height: 1.4;
}

.form-errors {
    background: #FCEBEB;
    border: 1px solid #F0C2C2;
    color: #B3261E;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Per-service CTA on the services grid card */
.service-card-cta {
    margin-top: auto;
    padding-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent-fg);
}

.service-card-cta i {
    font-size: 11px;
    transition: transform .2s ease;
}

/* Privacy consent checkbox — shared across contact.php, request-prototype.php, request-3d-print.php */
.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 24px;
    cursor: pointer;
    text-transform: none !important;
    font-weight: 400 !important;
}

.consent-checkbox input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 3px 0 0 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    accent-color: var(--accent-fg);
    cursor: pointer;
    box-shadow: none !important;
    border: none !important;
}

.consent-checkbox span {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-dim);
    text-transform: none !important;
}

.consent-checkbox a {
    color: var(--accent-fg);
    font-weight: 600;
    text-decoration: underline;
}

.service-card-cta:hover i {
    transform: translateX(3px);
}

/* Services Page */
.services-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--navbar-height) + 50px) 20px 100px;
}

.course-cta-action {
    background-color: var(--ink);
    border-radius: 0.75rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(22, 50, 60, 0.15);
}

.course-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.course-cta-content span {
    color: var(--accent-bright);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.75rem;
}

.course-cta-content h2 {
    color: var(--white);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.course-cta-content p {
    color: var(--almost-white);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* CTA Button Styling */
.course-cta-content .cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.course-cta-content .cta-button:hover {
    background-color: var(--accent-bright);
    color: var(--ink);
    transform: translateY(-2px);
}

/* Components */
.components-page,
.component-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--navbar-height) + 50px) 20px 100px;
}

.components-page h1 {
    font-size: 34px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
}

.components-intro {
    color: var(--ink-dim);
    font-size: 15px;
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 34px;
}

/* ---------- Category filter ---------- */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    letter-spacing: .3px;
    color: var(--ink-dim);
    background: var(--navy-panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.filter-pill:hover {
    border-color: var(--accent-fg);
    color: var(--accent-fg);
}

.filter-pill.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* Components Grid */
.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.component-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    color: var(--ink);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.component-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-fg);
    box-shadow: 0 10px 24px rgba(22, 50, 60, 0.08);
}

.component-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--navy-panel);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}

.component-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.component-card-image i {
    font-size: 34px;
    color: var(--ink-dim);
}

.component-category-tag {
    align-self: flex-start;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--accent-fg);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 2px 8px;
    margin-bottom: 10px;
}

.component-card h2 {
    font-size: 16.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.component-card p {
    font-size: 13.5px;
    color: var(--ink-dim);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 14px;
}

.component-view-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.component-view-link i {
    font-size: 11px;
    transition: transform .2s ease;
}

.component-card:hover .component-view-link i {
    transform: translateX(3px);
}

/* Components Pagination */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-dim);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.page-link:hover {
    border-color: var(--accent-fg);
    color: var(--accent-fg);
    transform: translateY(-2px);
}

.page-link.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    pointer-events: none; /* Prevents clicking the current page */
}

.page-link.prev-next {
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    background: var(--navy-panel);
}

.page-link.prev-next i {
    font-size: 12px;
}

/* Projects */
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 14px 0 18px;
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    color: var(--ink-dim);
}

.project-meta i {
    color: var(--accent-fg);
}

/* ---------- Detail page ---------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--ink-dim);
    margin-bottom: 30px;
}

.back-link:hover {
    color: var(--accent-fg);
}

.component-detail-header {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.component-detail-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--navy-panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.component-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.component-detail-image i {
    font-size: 60px;
    color: var(--ink-dim);
}

.component-detail-intro h1 {
    font-size: 30px;
    font-weight: 700;
    margin: 10px 0 14px;
}

.component-detail-intro p {
    color: var(--ink-dim);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 20px;
}

.component-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background .2s ease, transform .2s ease;
}

.whatsapp-link:hover {
    background: #1EBE5A;
    transform: translateY(-1px);
}

.whatsapp-link i {
    font-size: 16px;
}

.datasheet-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--ink);
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background .2s ease;
}

.datasheet-link:hover {
    background: var(--accent-bright);
}

.component-section {
    margin-bottom: 44px;
}

.component-section>p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--ink-dim);
    max-width: 760px;
    margin-top: 10px;
}

.spec-table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.spec-table tr:nth-child(odd) {
    background: var(--navy-panel);
}

.spec-table td {
    padding: 12px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    color: var(--ink-dim);
    width: 40%;
}

.spec-value {
    color: var(--ink);
    font-weight: 500;
}

/* Values: circuit-trace connected cards */
.values {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    counter-reset: designator;
}

/* the trace line connecting the three cards */
.values::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: repeating-linear-gradient(to right,
            var(--line) 0, var(--line) 6px, transparent 6px, transparent 12px);
    z-index: 0;
}

.values>div {
    position: relative;
    z-index: 1;
    flex: 1;
    background: var(--white-panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 34px 26px 28px;
    counter-increment: designator;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.values>div:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: var(--white-panel-hover);
}

/* solder-pad node on the trace, above each card */
.values>div::before {
    content: "";
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--accent-bright);
}

/* reference designator, e.g. U1, U2, U3 */
.values>div::after {
    content: "U" counter(designator);
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--accent);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 2px 6px;
}

.vision-title h2,
.mission-title h2,
.objectives-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.vision-title,
.mission-title,
.objectives-title {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.vision-title::after,
.mission-title::after,
.objectives-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.vision-description p,
.mission-description p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ink-dim);
}

.objectives-point ul {
    list-style: none;
}

.objectives-point li {
    position: relative;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ink-dim);
    padding-left: 20px;
    margin-bottom: 8px;
}

.objectives-point li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-bright);
    font-family: 'IBM Plex Mono', monospace;
}

/* Footer */
.site-footer {
    background: var(--charcoal);
    border-top: 1px solid var(--line);
    color: var(--ink-dim);
    padding: 70px 20px 0;
}

.footer-top {
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 50px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
}

.footer-logo {
    display: inline-block;
    font-size: 28px;
    font-weight: 600;
    font-family: cursive;
    color: var(--ink);
    margin-bottom: 14px;
}

.footer-tagline {
    color: var(--white);
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 22px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--white);
    font-size: 14px;
    transition: border-color .25s ease, color .25s ease, transform .25s ease;
}

.footer-socials a:hover {
    border-color: var(--accent-fg);
    color: var(--accent-fg);
    transform: translateY(-2px);
}

.footer-links h3,
.footer-contact h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14.5px;
    color: var(--white);
    transition: color .25s ease, padding-left .25s ease;
}

.footer-links a:hover {
    color: var(--accent-fg);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14.5px;
}

.footer-contact li i {
    margin-top: 3px;
    color: var(--accent-fg);
    width: 14px;
}

.footer-contact p {
    color: var(--white);
}

.footer-contact a {
    color: var(--white);
    transition: color .25s ease;
}

.footer-contact a:hover {
    color: var(--accent-fg);
}

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-copyright {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: .3px;
    color: var(--white);
}

.footer-legal {
    display: flex;
    gap: 22px;
    list-style: none;
}

.footer-legal a {
    font-size: 12.5px;
    color: var(--white);
    transition: color .25s ease;
}

.footer-legal a:hover {
    color: var(--accent-fg);
}

/* Contact page */
.contact,
.faq-section {
    background-color: var(--white);
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 26px 26px;
    padding: 20px 20px;
    color: var(--ink);
}

.contact {
    padding-top: calc(var(--navbar-height) + 60px);
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.section-eyebrow {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--accent-fg);
    margin-bottom: 10px;
}

.contact-form h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #242424;
    margin-bottom: 24px;
}

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

.contact-form label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #242424;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px 14px;
    margin-bottom: 22px;
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    font-size: 14.5px;
    resize: vertical;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--ink-dim);
    opacity: .6;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-fg);
    box-shadow: 0 0 0 3px rgba(168, 87, 0, 0.15);
}

.contact-form input[type="submit"] {
    align-self: flex-start;
    background: var(--accent);
    border: none;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: 13px;
    padding: 13px 34px;
    margin-bottom: 0;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

.contact-form input[type="submit"]:hover {
    background: var(--accent-bright);
    transform: translateY(-2px);
}

/* Address & map panel */
.address-list {
    list-style: none;
    margin-bottom: 24px;
}

.address-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-dim);
    margin-bottom: 16px;
}

.address-list li i {
    color: var(--accent-fg);
    margin-top: 3px;
    width: 14px;
}

.address-list a {
    color: var(--ink-dim);
    transition: color .25s ease;
}

.address-list a:hover {
    color: var(--accent-fg);
}

.tombak-map {
    width: 100%;
    height: 280px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    filter: grayscale(.2) contrast(1.05);
}

/* FAQ accordion */
.faq-section {
    padding-bottom: 100px;
}

.faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 30px;
}

.faq-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #242424;
    margin-bottom: 30px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bright-gray-panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color .25s ease;
}

.faq-item[open] {
    border-color: var(--accent-fg);
}

.faq-item summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-fg);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 3px 7px;
    flex-shrink: 0;
}

.faq-question {
    flex: 1;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
}

.faq-icon {
    color: var(--ink-dim);
    font-size: 13px;
    transition: transform .3s ease, color .3s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-fg);
}

.faq-answer {
    padding: 0 20px 20px 20px;
}

.faq-answer p {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ink-dim);
    padding-left: 42px;
}

/* Privacy Policy */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: calc(var(--navbar-height) + 60px) 20px 100px;
    color: var(--ink);
}

.legal-page h1 {
    font-size: 34px;
    font-weight: 700;
    margin: 10px 0 6px;
}

.legal-updated {
    font-size: 13px;
    color: var(--ink-dim);
    margin-bottom: 30px;
}

.legal-page>p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--ink-dim);
    margin-bottom: 18px;
}

.legal-page h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    margin: 38px 0 12px;
}

.legal-page ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

.legal-page li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--ink-dim);
    margin-bottom: 8px;
}

.legal-page strong {
    color: var(--ink);
}

.legal-contact-list {
    list-style: none;
    padding-left: 0;
}

.legal-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-contact-list i {
    color: var(--accent-fg);
    width: 16px;
}

.legal-contact-list a {
    color: var(--accent-fg);
}

/* 1. DESKTOP-FIRST (max-width) — largest breakpoint first */

@media (max-width: 1150px) {
    .navbar .max-width {
        padding: 0 20px;
    }

    .logo {
        display: none;
    }

    .navbar {
        z-index: 1;
        padding: 9px 9px 9px 0;
    }

    .menu-btn {
        display: block;
        z-index: 999;
    }

    .menu-btn i.active::before {
        content: "\f00d";
    }

    .navbar .menu {
        position: fixed;
        width: 100%;
        height: 100vh;
        top: 60px;
        left: -100%;
        text-align: center;
        transition: all .5s;
        background: var(--almost-white);
        box-shadow: 0 8px 20px rgba(22, 50, 60, 0.08);
    }

    .navbar .menu.active {
        left: 0;
    }

    .menu li {
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }

    .menu li a {
        font-size: 25px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 991px) {
    .mobile-home-item {
        display: block;
    }

    .menu li {
        display: block;
        width: 100%;
    }

    .menu li a {
        margin-left: 0 !important;
        text-align: center;
        display: block;
    }

    .navbar .menu {
        padding-left: 0 !important;
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .hero-slider {
        height: 560px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        padding: 30px 6%;
        gap: 20px;
        text-align: center;
    }

    .hero-slide-image {
        max-height: 220px;
    }

    .hero-slide-info p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-slider-arrow {
        width: 38px;
        height: 38px;
    }

    .about-company {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tombak-logo {
        max-width: 180px;
    }

    .values {
        flex-direction: column;
        gap: 46px;
    }

    .values::before {
        top: 0;
        bottom: 0;
        left: 34px;
        right: auto;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(to bottom,
                var(--line) 0, var(--line) 6px, transparent 6px, transparent 12px);
    }

    .values > div::before {
        top: 50%;
        left: -18px;
        transform: translateY(-50%);
    }

    .values > div {
        margin-left: 20px;
    }

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

@media (max-width: 768px) {
    .print-cta-container {
        flex-direction: column;
        text-align: center;
    }

    .print-cta-content {
        text-align: center;
    }

    .core-values-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .component-detail-header {
        grid-template-columns: 1fr;
    }

    .component-detail-image {
        max-width: 280px;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        width: 100%;
        max-width: 280px;
    }

    .pdf-preview-frame {
        height: 70vh;
    }

    .resource-title {
        font-size: 24px;
    }
}

@media (max-width: 690px) {
    .navbar .max-width {
        padding: 0 23px;
    }
}

@media (max-width: 500px) {
    .logo-title {
        font-size: 21px;
    }

    .logo-subtitle {
        font-size: 7.5px;
        letter-spacing: 2px;
    }

    .logo-arrow {
        width: 28px;
        height: 28px;
    }

    .print-cta-content h2 {
        font-size: 22px;
    }

    .hero-slider {
        height: 520px;
    }

    .hero-slide-info h2 {
        font-size: 24px;
    }

    .menu li a {
        font-size: 18px;
    }

    /* Services */
    .services-hero h1 {
        font-size: 28px;
    }

    .services-faq-teaser {
        flex-direction: column;
        text-align: center;
    }

    /* Components */
    .components-page h1 {
        font-size: 26px;
    }

    .spec-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* About */
    .description-title h1 {
        font-size: 30px;
    }

    .about {
        padding: calc(var(--navbar-height) + 40px) 16px 70px;
    }

    .contact-form h1 {
        font-size: 26px;
    }

    .faq-section h2 {
        font-size: 24px;
    }

    .faq-answer p {
        padding-left: 0;
    }

    .site-footer {
        padding: 50px 16px 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-page h1 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .request-form-page h1 {
        font-size: 26px;
    }

    .request-form-page {
        padding-top: calc(var(--navbar-height, 60px) + 20px);
    }
}

/* 2. MOBILE-FIRST (min-width) — smallest breakpoint first */

@media (min-width: 640px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-gallery {
        column-count: 3;
        column-gap: 2rem;
    }

    .hero-gallery img {
        margin-bottom: 2rem;
    }

    .course-cta-section {
        margin: 2rem 1.5rem;
        padding: 3rem 1.5rem;
    }

    .course-cta-content h2 {
        font-size: 1.75rem;
    }

    .course-cta-content p {
        font-size: 1rem;
    }

    .core-values-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .core-values-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 3. HOVER CAPABILITY (not a width breakpoint, order-independent) */

@media (hover: none) {
    .service-subpoints {
        max-height: none;
        opacity: 1;
        margin-top: 15px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .faq-item[open] .faq-answer {
        animation: fadeUp .35s ease both;
    }
}