@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --716-primary: #9333ea;
    --716-secondary: #7e22ce;
    --716-accent: #fbbf24;
    --716-background: #faf5ff;
    --716-text: #581c87;
    --716-muted: #d8b4fe;
    --716-light-gray: #f8f8f8;
    --716-dark-gray: #333;
    --716-border-radius: 8px;
    --716-transition-speed: 0.3s ease;

    --716-heading-font: 'Work Sans', sans-serif;
    --716-body-font: 'Merriweather', serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

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

::selection {
    background-color: var(--716-accent);
    color: var(--716-text);
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--716-heading-font);
    color: var(--716-secondary);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--716-primary);
}

h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h4 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
}

h5 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 500;
}

h6 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: var(--716-muted);
}

p {
    margin-bottom: 1em;
    font-size: 1.1rem;
}

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

a:hover {
    color: var(--716-accent);
}

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

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

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

.tp-flex {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

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

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

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

.tp-lead {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--716-secondary);
}

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

.tp-section:nth-of-type(even) {
    background-color: var(--716-muted);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

@media (max-width: 768px) {
    .tp-section {
        padding: 3rem 0;
    }
}

/* Buttons */
.tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--716-border-radius);
    font-family: var(--716-heading-font);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--716-transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tp-btn-primary {
    background: linear-gradient(45deg, var(--716-primary), var(--716-secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tp-btn-primary:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.6s ease-out;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: -1;
}

.tp-btn-primary:hover:before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.tp-btn-secondary {
    background-color: var(--716-accent);
    color: var(--716-text);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.tp-btn-secondary:hover {
    background-color: darken(var(--716-accent), 10%);
    transform: translateY(-2px);
}

.tp-btn-outline {
    background-color: transparent;
    color: var(--716-primary);
    border: 2px solid var(--716-primary);
}

.tp-btn-outline:hover {
    background-color: var(--716-primary);
    color: #fff;
}

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

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

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

.tp-logo span {
    color: var(--716-secondary);
}

.tp-nav-menu {
    list-style: none;
    display: flex;
    margin-left: auto;
}

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

.tp-nav-menu a {
    color: var(--716-text);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
}

.tp-nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--716-accent);
    transition: width var(--716-transition-speed);
}

.tp-nav-menu a:hover::after {
    width: 100%;
}

.tp-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 1001;
}

.tp-hamburger span {
    background-color: var(--716-primary);
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: all var(--716-transition-speed);
}

.tp-nav-menu.active {
    transform: translateX(0);
}

/* Mobile navigation */
@media (max-width: 768px) {
    .tp-logo {
        order: 2; /* Logo in center */
        flex-grow: 1; /* Allow it to take available space */
        text-align: center; /* Center the logo text */
    }

    .tp-hamburger {
        display: flex;
        order: 1; /* Hamburger to the left */
    }

    .tp-nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100%;
        background-color: var(--716-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform var(--716-transition-speed);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding-top: 60px; /* Space for the fixed header */
        z-index: 999;
    }

    .tp-nav-menu li {
        margin: 1.5rem 0;
    }

    .tp-nav-menu a {
        font-size: 1.3rem;
        color: var(--716-secondary);
    }

    .tp-hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .tp-hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .tp-hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Hero Section */
.tp-hero {
    background: linear-gradient(135deg, var(--716-primary) 0%, var(--716-secondary) 100%);
    color: #fff;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

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

.tp-hero-content h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.tp-hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Card Components */
.tp-card {
    background-color: #fff;
    border-radius: var(--716-border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: transform var(--716-transition-speed), box-shadow var(--716-transition-speed);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

.tp-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--716-border-radius) var(--716-border-radius) 0 0;
    margin-bottom: 1.5rem;
}

.tp-card-title {
    color: var(--716-primary);
    font-family: var(--716-heading-font);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.tp-card-text {
    color: var(--716-dark-gray);
    flex-grow: 1;
}

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

.tp-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--716-secondary);
    font-weight: 500;
    font-family: var(--716-heading-font);
}

.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: 0.8rem 1rem;
    border: 1px solid var(--716-muted);
    border-radius: var(--716-border-radius);
    font-family: var(--716-body-font);
    font-size: 1rem;
    color: var(--716-dark-gray);
    transition: border-color var(--716-transition-speed), box-shadow var(--716-transition-speed);
}

.tp-form-group input:focus,
.tp-form-group textarea:focus {
    outline: none;
    border-color: var(--716-primary);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

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

.tp-form-success, .tp-form-error {
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: var(--716-border-radius);
    font-weight: 500;
    display: none;
}

.tp-form-success {
    background-color: var(--716-muted);
    color: var(--716-secondary);
}

.tp-form-error {
    background-color: #fca5a5;
    color: #dc2626;
}

/* Trust/Badge Elements */
.tp-trust-item {
    display: inline-flex;
    align-items: center;
    background-color: var(--716-muted);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    color: var(--716-secondary);
    margin: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tp-trust-item i {
    margin-right: 0.7rem;
    font-size: 1.2rem;
    color: var(--716-primary);
}

/* Footer */
.tp-footer {
    background-color: var(--716-secondary);
    color: #fff;
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
}

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

.tp-footer-col h4 {
    color: var(--716-accent);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

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

.tp-footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--716-transition-speed);
}

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

.tp-footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.tp-social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color var(--716-transition-speed);
}

.tp-social-links a:hover {
    color: var(--716-accent);
}

.tp-footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .tp-footer-grid {
        grid-template-columns: 1fr;
    }

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

    .tp-social-links {
        text-align: center;
        margin-top: 1.5rem;
    }
}

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

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

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

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

@keyframes tp-shimmer {
    0% {
        background-position: -700px 0;
    }
    100% {
        background-position: 700px 0;
    }
}

.tp-btn-primary.tp-gradient-shimmer {
    background-size: 200% auto;
    background-image: linear-gradient(to right, var(--716-primary) 0%, var(--716-accent) 50%, var(--716-primary) 100%);
}

.tp-btn-primary.tp-gradient-shimmer:hover {
    animation: tp-shimmer 1s infinite linear;
}

/* FAQ Accordion */
.tp-faq-item {
    background-color: #fff;
    border-radius: var(--716-border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all var(--716-transition-speed);
}

.tp-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--716-primary);
    font-family: var(--716-heading-font);
    font-size: 1.1rem;
    border-bottom: 1px solid transparent;
    transition: border-bottom var(--716-transition-speed);
}

.tp-faq-q i {
    font-size: 1.2rem;
    transition: transform var(--716-transition-speed);
}

.tp-faq-item.active .tp-faq-q {
    border-bottom: 1px solid var(--716-muted);
}

.tp-faq-item.active .tp-faq-q i {
    transform: rotate(180deg);
}

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

.tp-faq-item.active .tp-faq-a {
    max-height: 500px; /* Large enough to contain content */
    padding: 1rem 1.5rem 1.5rem;
}

/* Contact Page Specific */
.tp-contact-info {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--716-border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tp-contact-info h3 {
    color: var(--716-primary);
    margin-bottom: 1.5rem;
}

.tp-contact-info p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tp-contact-info p i {
    color: var(--716-accent);
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

/* Responsive Overrides for smaller screens */
@media (max-width: 1024px) {
    .tp-container {
        padding: 0 1rem;
    }

    h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    h2 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .tp-nav-menu li {
        margin-left: 1.5rem;
    }

    .tp-footer-grid {
        gap: 1.5rem;
    }

    .tp-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .tp-grid {
        grid-template-columns: 1fr;
    }

    .tp-hero-content h1 {
        font-size: 2.5rem;
    }

    .tp-hero-content p {
        font-size: 1.2rem;
    }

    .tp-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .tp-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .tp-nav-menu {
        width: 100%;
    }

    .tp-logo {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .tp-hero-content p {
        font-size: 1rem;
    }

    .tp-btn {
        width: 100%;
        text-align: center;
    }

    .tp-trust-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .tp-contact-info {
        padding: 1.5rem;
    }
    .tp-faq-q, .tp-faq-a {
     padding-left: 1rem;
     padding-right: 1rem;
    }
}

/* Additional Styles for specific sections */
.tp-why-choose-us .tp-grid img {
    border-radius: var(--716-border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tp-testimonial-card {
    background-color: var(--716-muted);
    padding: 2rem;
    border-radius: var(--716-border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    margin-bottom: 1.5rem;
}

.tp-testimonial-card::before {
    content: '“';
    font-family: serif;
    font-size: 4rem;
    color: var(--716-primary);
    position: absolute;
    top: 5px;
    left: 15px;
    opacity: 0.2;
    line-height: 1;
}

.tp-testimonial-name {
    font-weight: 600;
    color: var(--716-secondary);
    margin-top: 1rem;
}

.tp-benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.tp-benefit-item i {
    font-size: 2rem;
    color: var(--716-accent);
    margin-right: 1rem;
    flex-shrink: 0;
}

.tp-benefit-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: var(--716-primary);
}

.tp-social-proof-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--716-border-radius);
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.tp-social-proof-item h3 {
    font-size: 2.5rem;
    color: var(--716-primary);
    margin-bottom: 0.5rem;
}

.tp-social-proof-item p {
    font-weight: 500;
    color: var(--716-secondary);
}

.tp-cta-fullwidth {
    background: linear-gradient(45deg, var(--716-secondary) 0%, var(--716-primary) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.tp-cta-fullwidth h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.tp-cta-fullwidth p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Icon styles for benefits and trust */
.fas, .far, .fab {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}
.fa-hammer:before { content: '\f6e3'; }
.fa-lightbulb:before { content: '\f0eb'; }
.fa-seedling:before { content: '\f4d8'; }
.fa-comments:before { content: '\f086'; }
.fa-check-circle:before { content: '\f058'; }
.fa-star:before { content: '\f005'; }
.fa-award:before { content: '\f559'; }
.fa-users:before { content: '\f0c0'; }
.fa-tools:before { content: '\f7d9'; }
.fa-book:before { content: '\f02d'; }
.fa-clipboard-check:before { content: '\f46e'; }
.fa-hands-helping:before { content: '\f4c4'; }
.fa-clock:before { content: '\f017'; }
.fa-map-marker-alt:before { content: '\f3c5'; }
.fa-envelope:before { content: '\f0e0'; }
.fa-phone-alt:before { content: '\f879'; }
.fa-chevron-down:before { content: '\f078'; }
.fa-facebook:before { content: '\f09a'; }
.fa-twitter:before { content: '\f099'; }
.fa-instagram:before { content: '\f16d'; }
.fa-linkedin:before { content: '\f0e1'; }
.fa-pinterest:before { content: '\f0d2'; }


/* === 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; }