/* 
 * Paryatanguru Theme CSS
 * Custom properties from design tokens
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
    /* Primary Colors */
    --tmp-primary-color: #671231;
    --tmp-primary-color-rgb: 103, 18, 49;
    --tmp-secondary-color: #e49d21;
    --tmp-secondary-color-rgb: 228, 157, 33;

    /* Text Colors */
    --tmp-body-font-color: #806b73;
    --tmp-body-font-color-rgb: 128, 107, 115;
    --tmp-heading-color: #120f0b;
    --tmp-heading-color-rgb: 18, 15, 11;

    /* Background Colors */
    --tmp-section-bg-color: #f6dfd7;
    --tmp-section-bg-color-rgb: 246, 223, 215;
    --tmp-background-color: #F7F0E5;
    --tmp-background-color-rgb: 247, 240, 229;

    /* Button Colors */
    --tmp-btn-text-initial-color: #084D2A;
    --tmp-btn-text-hover-color: #ffffff;
    --tmp-btn-bg-initial-color: #e49d21;
    --tmp-btn-bg-hover-color: #671231;
    --tmp-btn-border-initial-color: #e49d21;
    --tmp-btn-border-hover-color: #671231;

    /* Typography */
    --tmp-primary-font-family: "DM Sans", sans-serif;
    --tmp-primary-font-weight: 400;
    --tmp-btn-font-weight: 500;
    --tmp-primary-font-size: 16px;
    --tmp-primary-font-height: 1.75em;
    --tmp-primary-font-spacing: 0px;
    --tmp-btn-font-size: 16px;
    --tmp-btn-font-height: 1.5em;
    --tmp-btn-font-spacing: 0px;

    /* Button Dimensions */
    --tmp-btn-roundness-top: 8px;
    --tmp-btn-roundness-right: 8px;
    --tmp-btn-roundness-bottom: 8px;
    --tmp-btn-roundness-left: 8px;
    --tmp-btn-padding-top: 14px;
    --tmp-btn-padding-right: 32px;
    --tmp-btn-padding-bottom: 14px;
    --tmp-btn-padding-left: 32px;

    /* Layout */
    --tmp-container-width: 992px;
    --tmp-centered-maxwidth: 780px;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--tmp-primary-font-family);
    font-size: var(--tmp-primary-font-size);
    font-weight: var(--tmp-primary-font-weight);
    line-height: var(--tmp-primary-font-height);
    letter-spacing: var(--tmp-primary-font-spacing);
    color: var(--tmp-body-font-color);
    background-color: var(--tmp-background-color);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--tmp-heading-color);
    font-family: var(--tmp-primary-font-family);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

/* Container */
.container {
    max-width: var(--tmp-container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.container-centered {
    max-width: var(--tmp-centered-maxwidth);
    margin-left: auto;
    margin-right: auto;
}

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--tmp-btn-bg-initial-color);
    color: var(--tmp-btn-text-initial-color);
    border: 2px solid var(--tmp-btn-border-initial-color);
    font-family: var(--tmp-primary-font-family);
    font-size: var(--tmp-btn-font-size);
    font-weight: var(--tmp-btn-font-weight);
    line-height: var(--tmp-btn-font-height);
    letter-spacing: var(--tmp-btn-font-spacing);
    padding: var(--tmp-btn-padding-top) var(--tmp-btn-padding-right) var(--tmp-btn-padding-bottom) var(--tmp-btn-padding-left);
    border-radius: var(--tmp-btn-roundness-top) var(--tmp-btn-roundness-right) var(--tmp-btn-roundness-bottom) var(--tmp-btn-roundness-left);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--tmp-btn-bg-hover-color);
    color: var(--tmp-btn-text-hover-color);
    border-color: var(--tmp-btn-border-hover-color);
}

/* Secondary Button (outline) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--tmp-primary-color);
    border: 2px solid var(--tmp-primary-color);
    font-family: var(--tmp-primary-font-family);
    font-size: var(--tmp-btn-font-size);
    font-weight: var(--tmp-btn-font-weight);
    line-height: var(--tmp-btn-font-height);
    padding: var(--tmp-btn-padding-top) var(--tmp-btn-padding-right) var(--tmp-btn-padding-bottom) var(--tmp-btn-padding-left);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--tmp-primary-color);
    color: #ffffff;
}

/* Small Button */
.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Cards */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-body {
    padding: 1.5rem;
}

/* Section Background */
.section-alt {
    background-color: var(--tmp-section-bg-color);
}

.section-white {
    background-color: #ffffff;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: var(--tmp-primary-font-family);
    font-size: 16px;
    color: var(--tmp-heading-color);
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--tmp-primary-color);
    box-shadow: 0 0 0 3px rgba(var(--tmp-primary-color-rgb), 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--tmp-heading-color);
}

.form-label.required::after {
    content: ' *';
    color: #ef4444;
}

/* Select styling */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-primary {
    background-color: rgba(var(--tmp-primary-color-rgb), 0.1);
    color: var(--tmp-primary-color);
}

.badge-secondary {
    background-color: rgba(var(--tmp-secondary-color-rgb), 0.2);
    color: #854d0e;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.tab {
    padding: 12px 24px;
    font-weight: 500;
    color: var(--tmp-body-font-color);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab:hover {
    color: var(--tmp-primary-color);
}

.tab.active {
    color: var(--tmp-primary-color);
    border-bottom-color: var(--tmp-primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Accordion */
.accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background-color: #f9fafb;
}

.accordion-header.active {
    background-color: var(--tmp-section-bg-color);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 20px;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.accordion-content.active {
    display: block;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-body {
    padding: 24px;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #6b7280;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: var(--tmp-heading-color);
}

/* Navigation */
.nav-link {
    color: var(--tmp-heading-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--tmp-primary-color);
    background-color: rgba(var(--tmp-primary-color-rgb), 0.05);
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: var(--tmp-body-font-color);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--tmp-body-font-color);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--tmp-primary-color);
}

.breadcrumb-separator {
    color: #d1d5db;
}

/* Support Card */
.support-card {
    background: linear-gradient(135deg, var(--tmp-primary-color), #8b1a40);
    color: #ffffff;
    border-radius: 12px;
    padding: 24px;
}

.support-card h4 {
    color: #ffffff;
    margin-bottom: 8px;
}

.support-card p {
    color: rgba(255, 255, 255, 0.9);
}

.support-card .phone {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tmp-secondary-color);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Status colors */
.status-new {
    color: #2563eb;
}

.status-contacted {
    color: #d97706;
}

.status-quoted {
    color: #7c3aed;
}

.status-closed {
    color: #059669;
}

.status-spam {
    color: #dc2626;
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(var(--tmp-primary-color-rgb), 0.2);
    border-top-color: var(--tmp-primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-banner {
        height: 300px;
        border-radius: 0;
    }

    .tabs {
        overflow-x: auto;
    }

    .tab {
        padding: 10px 16px;
        white-space: nowrap;
    }
}

/* ==========================================
   Bento Grid Layout
   ========================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bento-item-large {
        grid-column: span 2;
    }
}

.card-overlay-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
}

.bento-card {
    height: 100%;
    min-height: 280px;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.bento-card:hover img {
    transform: scale(1.1);
}