/* ============================================
   TANDAV TECHNOLOGY - Layout & Structure
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-dark: #0f172a;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --max-width: 1140px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    border-bottom: 1px solid #e2e8f0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.logo {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text);
    text-decoration: none;
}

.nav {
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-list a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-list a:hover {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    background: linear-gradient(180deg, #f1f5f9 0%, var(--color-bg) 100%);
    padding: var(--space-3xl) 0;
}

.hero-inner {
    max-width: 720px;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: white;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.hero-metrics {
    display: flex;
    gap: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid #e2e8f0;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ============================================
   SECTIONS - Base
   ============================================ */

.section {
    padding: var(--space-3xl) 0;
}

.section-head {
    margin-bottom: var(--space-2xl);
    max-width: 560px;
}

.section-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

/* ============================================
   SERVICES
   ============================================ */

.section-services {
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.service {
    background: var(--color-bg);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: var(--space-xl);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.service:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.service h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.service > p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.service ul {
    list-style: none;
}

.service li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding: 0.2rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.service li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 0.8rem;
}

/* ============================================
   ABOUT
   ============================================ */

.section-about {
    background: var(--color-bg-alt);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-2xl);
    align-items: start;
}

.about-main .section-tag {
    margin-bottom: var(--space-xs);
}

.about-main .section-title {
    margin-bottom: var(--space-md);
}

.about-lead {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.about-main > p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.about-values {
    list-style: none;
    margin-top: var(--space-lg);
}

.about-values li {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid #e2e8f0;
}

.about-values li:last-child {
    border-bottom: none;
}

.about-card {
    background: var(--color-bg);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: var(--space-lg);
}

.about-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.about-card ul {
    list-style: none;
}

.about-card li {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.about-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

/* ============================================
   WORK
   ============================================ */

.section-work {
    background: var(--color-bg);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.work-item {
    background: var(--color-bg);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.work-item:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.work-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.work-visual {
    min-height: 200px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.work-featured .work-visual {
    min-height: 280px;
}

.work-body {
    padding: var(--space-lg);
}

.work-featured .work-body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.work-body p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ============================================
   PROCESS
   ============================================ */

.section-process {
    background: var(--color-bg-alt);
}

.process-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    list-style: none;
}

.process-item {
    background: var(--color-bg);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: var(--space-xl);
}

.process-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.4;
    margin-bottom: var(--space-md);
}

.process-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.process-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.section-testimonials {
    background: var(--color-bg);
}

.testimonials-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial {
    background: var(--color-bg-alt);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: var(--space-xl);
}

.testimonial p {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.testimonial cite {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: normal;
}

/* ============================================
   CONTACT
   ============================================ */

.section-contact {
    background: var(--color-bg-alt);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.contact-info > p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.contact-details a {
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details p {
    color: var(--color-text-muted);
}

.contact-hours {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.contact-form {
    background: var(--color-bg);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: var(--space-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-field {
    margin-bottom: var(--space-md);
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    margin-top: var(--space-sm);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--color-bg-dark);
    color: white;
}

.site-footer .container {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    color: white;
}

.footer-brand p {
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.5);
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.footer-col a:hover {
    color: white;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .work-featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .work-featured .work-visual {
        min-height: 180px;
    }

    .process-list {
        grid-template-columns: 1fr;
    }

    .testimonials-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: var(--space-lg);
        border-bottom: 1px solid #e2e8f0;
    }

    .nav-list.is-open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        flex-direction: column;
        gap: var(--space-md);
    }

    .hero-actions {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
