/* ============================================
   DeluxeTV CA — Main Stylesheet
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --accent: #10b981;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-light: #f8fafc;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    --border: #334155;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4);
    --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--secondary); }

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--text);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a3e 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .highlight { color: var(--primary); }

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px 0; }
.section-light { background: var(--bg-card); }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

/* ============================================
   GRIDS
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
}

.blog-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* ============================================
   IMAGE BOX
   ============================================ */
.image-box { border-radius: var(--radius); overflow: hidden; }

.placeholder-img {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 1.1rem;
    color: var(--text-muted);
    border: 2px dashed var(--border);
}

/* ============================================
   LINKS
   ============================================ */
.link-arrow {
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   NOTICE BANNER
   ============================================ */
.notice-banner { background: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 100%); }

.notice-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 40px;
}

.notice-box h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.notice-box p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-box h2 { margin-bottom: 12px; }
.newsletter-box > p { color: var(--text-muted); margin-bottom: 28px; }

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #020617;
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-col p,
.footer-col li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col ul { list-style: none; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   CONTENT PAGES
   ============================================ */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a3e 100%);
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text);
}

.content-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 28px 0 14px;
    color: var(--primary);
}

.content-section p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.content-section ul,
.content-section ol {
    margin: 16px 0 16px 24px;
    color: var(--text-muted);
}

.content-section li { margin-bottom: 8px; }

.content-section strong { color: var(--text); }

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ============================================
   POLICY PAGES
   ============================================ */
.policy-section {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.policy-section h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.policy-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
    display: block;
}

.policy-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.policy-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--primary);
}

.policy-section p,
.policy-section li {
    color: var(--text-muted);
    line-height: 1.8;
}

.policy-section ul { margin: 12px 0 12px 24px; }
.policy-section li { margin-bottom: 6px; }

.policy-section address {
    font-style: normal;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 16px 0;
}

.policy-section address p { margin-bottom: 4px; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.8;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

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

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.form-check input {
    margin-top: 4px;
}

.form-check label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(99,102,241,0.05);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-muted);
}

/* ============================================
   TABLE
   ============================================ */
.table-wrap {
    overflow-x: auto;
    margin: 24px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text);
}

tr:hover td {
    background: rgba(99,102,241,0.03);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px 24px;
        border-bottom: 1px solid var(--border);
        gap: 12px;
    }
    .main-nav.active { display: flex; }
    .menu-toggle { display: block; }
    .grid-2,
    .grid-3,
    .footer-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .hero { padding: 60px 0 50px; }
    .section { padding: 50px 0; }
    .newsletter-form { flex-direction: column; }
    .notice-box { padding: 24px; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 8px; }
