@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&family=Source+Sans+Pro:wght@400;600&display=swap');

:root {
    --kdk-primary: #7c3aed;
    --kdk-secondary: #6d28d9;
    --kdk-accent: #06b6d4;
    --kdk-background: #faf5ff;
    --kdk-text: #1e1b4b;
    --kdk-muted: #a78bfa;
    --kdk-white: #ffffff;
    --kdk-black: #000000;
    --kdk-light-gray: #f3f4f6;
    --kdk-dark-gray: #4b5563;

    --kdk-heading-font: 'Nunito', sans-serif;
    --kdk-body-font: 'Source Sans Pro', sans-serif;

    --kdk-border-radius: 0.5rem;
    --kdk-transition-speed: 0.3s ease;
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--kdk-body-font);
    color: var(--kdk-text);
    background-color: var(--kdk-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: var(--kdk-primary);
    color: var(--kdk-white);
}

a {
    color: var(--kdk-primary);
    text-decoration: none;
    transition: color var(--kdk-transition-speed);
}

a:hover {
    color: var(--kdk-secondary);
}

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

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--kdk-heading-font);
    color: var(--kdk-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

h3 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h4 {
    font-size: 1.75rem;
    font-weight: 700;
}

h5 {
    font-size: 1.35rem;
    font-weight: 600;
}

h6 {
    font-size: 1.1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

strong {
    font-weight: 700;
}

/* Utility Classes */
.tp-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.tp-grid {
    display: grid;
    gap: 2rem;
}

.tp-flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-text-center {
    text-align: center;
}

.tp-text-left {
    text-align: left;
}

.tp-text-right {
    text-align: right;
}

/* Section Spacing */
.tp-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.tp-section:nth-of-type(even) {
    background-color: var(--kdk-light-gray);
}

/* Buttons */
.tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 9999px;
    font-family: var(--kdk-heading-font);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--kdk-transition-speed);
    border: 2px solid transparent;
    line-height: 1;
}

.tp-btn-primary {
    background-color: var(--kdk-primary);
    color: var(--kdk-white);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.tp-btn-primary:hover {
    background-color: var(--kdk-secondary);
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.5);
    transform: translateY(-2px);
}

.tp-btn-secondary {
    background-color: var(--kdk-accent);
    color: var(--kdk-white);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.tp-btn-secondary:hover {
    background-color: #0e7490;
    box-shadow: 0 6px 16px rgba(14, 116, 144, 0.5);
    transform: translateY(-2px);
}

.tp-btn-outline {
    background-color: transparent;
    color: var(--kdk-primary);
    border-color: var(--kdk-primary);
}

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

/* Header & Navigation */
.tp-header {
    background-color: var(--kdk-white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.tp-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tp-logo {
    font-family: var(--kdk-heading-font);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--kdk-primary);
    text-decoration: none;
}

.tp-logo span {
    color: var(--kdk-accent);
}

.tp-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-nav-item {
    margin-left: 2rem;
}

.tp-nav-link {
    color: var(--kdk-text);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 0.25rem 0;
}

.tp-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--kdk-primary);
    transition: width var(--kdk-transition-speed);
}

.tp-nav-link:hover::after, .tp-nav-link.active::after {
    width: 100%;
}

.tp-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.tp-hamburger .tp-bar {
    width: 100%;
    height: 3px;
    background-color: var(--kdk-text);
    transition: all var(--kdk-transition-speed);
}

/* Hero Section */
.tp-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--kdk-white);
    position: relative;
    padding: 4rem 0;
    background-size: cover;
    background-position: center;
    background-image: url('https://loremflickr.com/1400/800/diy%2Ccraft/all?lock=1240315168');
}

.tp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.7) 0%, rgba(109, 40, 217, 0.7) 100%);
    z-index: 1;
}

.tp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.tp-hero h1 {
    color: var(--kdk-white);
    margin-bottom: 1rem;
}

.tp-hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Cards */
.tp-card {
    background-color: var(--kdk-white);
    border-radius: var(--kdk-border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--kdk-transition-speed);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.tp-card-content {
    padding: 1.5rem;
}

.tp-card-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.tp-card-content p {
    font-size: 0.95rem;
    color: var(--kdk-dark-gray);
}

/* Form Styling */
.tp-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.tp-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--kdk-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.tp-form-group input[type='text'],
.tp-form-group input[type='email'],
.tp-form-group input[type='tel'],
.tp-form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--kdk-border-radius);
    font-family: var(--kdk-body-font);
    font-size: 1rem;
    color: var(--kdk-text);
    background-color: var(--kdk-white);
    transition: border-color var(--kdk-transition-speed), box-shadow var(--kdk-transition-speed);
}

.tp-form-group input:focus,
.tp-form-group textarea:focus {
    outline: none;
    border-color: var(--kdk-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

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

.tp-form-message {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--kdk-border-radius);
    font-weight: 600;
    display: none;
}

.tp-form-message.tp-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.tp-form-message.tp-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Trust/Badge Elements */
.tp-trust-item {
    display: inline-flex;
    align-items: center;
    background-color: var(--kdk-white);
    padding: 1rem 1.5rem;
    border-radius: var(--kdk-border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 0.5rem;
}

.tp-trust-item svg {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    color: var(--kdk-primary);
}

.tp-trust-item p {
    margin: 0;
    font-weight: 600;
    color: var(--kdk-text);
}

/* FAQ Accordion */
.tp-faq-item {
    background-color: var(--kdk-white);
    border-radius: var(--kdk-border-radius);
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tp-faq-q {
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--kdk-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--kdk-light-gray);
    transition: background-color var(--kdk-transition-speed);
}

.tp-faq-q:hover {
    background-color: #e5e7eb;
}

.tp-faq-q::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--kdk-primary);
    transition: transform var(--kdk-transition-speed);
}

.tp-faq-item.active .tp-faq-q::after {
    content: '-';
    transform: rotate(0deg);
}

.tp-faq-a {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.3s ease-out, padding var(--kdk-transition-speed) 0.1s;
    color: var(--kdk-dark-gray);
}

.tp-faq-item.active .tp-faq-a {
    max-height: 500px; /* Sufficiently large to contain content */
    padding: 1.25rem 1.5rem;
}

/* Footer */
.tp-footer {
    background-color: var(--kdk-text);
    color: var(--kdk-light-gray);
    padding: 3rem 0 1.5rem;
    font-size: 0.95rem;
}

.tp-footer-top {
    background-color: var(--kdk-secondary);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--kdk-white);
}

.tp-footer-top h3 {
    color: var(--kdk-white);
    margin-bottom: 0.5rem;
}

.tp-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.tp-footer-col h5 {
    color: var(--kdk-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.tp-footer-col ul li {
    margin-bottom: 0.75rem;
}

.tp-footer-col ul li a {
    color: var(--kdk-muted);
    transition: color var(--kdk-transition-speed);
}

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

.tp-footer-contact p {
    margin-bottom: 0.75rem;
}

.tp-footer-bottom {
    border-top: 1px solid var(--kdk-dark-gray);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--kdk-muted);
}

.tp-footer-bottom a {
    color: var(--kdk-muted);
}

.tp-footer-bottom a:hover {
    color: var(--kdk-white);
}

/* Animations */
.tp-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.tp-animate.tp-fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    .tp-hero p {
        font-size: 1.2rem;
    }
    .tp-nav-menu {
        margin-right: 0;
    }
    .tp-nav-item {
        margin-left: 1.5rem;
    }
    .tp-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .tp-navbar {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .tp-logo {
        order: 2;
    }

    .tp-hamburger {
        display: flex;
        order: 1;
    }

    .tp-nav-menu {
        flex-direction: column;
        width: 100%;
        background-color: var(--kdk-white);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        border-top: 1px solid var(--kdk-light-gray);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        display: none; /* Hidden by default */
    }

    .tp-nav-menu.tp-active {
        display: flex; /* Shown when active */
    }

    .tp-nav-item {
        margin: 0;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--kdk-light-gray);
    }

    .tp-nav-item:last-child {
        border-bottom: none;
    }

    .tp-nav-link {
        font-size: 1.1rem;
    }
    
    .tp-hero h1 {
        font-size: 2.2rem;
    }
    .tp-hero p {
        font-size: 1rem;
    }
    .tp-hero .tp-btn {
        padding: 0.75rem 1.8rem;
        font-size: 0.9rem;
    }
    .tp-section {
        padding: 3rem 0;
    }
    .tp-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .tp-grid {
        grid-template-columns: 1fr;
    }
    .tp-card-content h3 {
        font-size: 1.3rem;
    }
    .tp-trust-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .tp-trust-item svg {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    .tp-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .tp-footer-col ul li {
        display: inline-block;
        margin: 0 0.5rem 0.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    h3 {
        font-size: 1.3rem;
    }
    .tp-hero p {
        font-size: 0.9rem;
    }
    .tp-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    .tp-faq-q {
        font-size: 1rem;
        padding: 1rem;
    }
    .tp-faq-item.active .tp-faq-a {
        padding: 1rem;
    }
    .tp-footer-col ul li {
        display: block;
        margin: 0.25rem 0;
    }
}


/* === Quality polish === */
button, [class*="btn"], [class*="cta"] { transition: all 0.3s ease; cursor: pointer; }
button:hover, [class*="btn"]:hover, [class*="cta"]:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); filter: brightness(1.05); }

@keyframes tpFadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.tp-animate { opacity: 0; }
.tp-animate.tp-visible { animation: tpFadeInUp 0.6s ease forwards; }