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

:root {
    /* Pivenor Brand Colors */
    --orange: #E8654E;
    --magenta: #6B1448;
    --navy: #000C55;
    --near-black: #1A0B2E;
}

/* Light Mode (Default) */
.light-mode {
    --bg: #f5f5f7;
    --bg-gradient-1: rgba(232, 101, 78, 0.08);
    --bg-gradient-2: rgba(107, 20, 72, 0.06);
    --surface: rgba(255, 255, 255, 0.8);
    --border: rgba(0, 0, 0, 0.1);
    --text: #1d1d1f;
    --text-muted: #6e6e73;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Dark Mode */
.dark-mode {
    --bg: #1A0B2E;
    --bg-gradient-1: rgba(232, 101, 78, 0.06);
    --bg-gradient-2: rgba(107, 20, 72, 0.08);
    --surface: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-muted: #b0b5c8;
    --shadow: rgba(0, 0, 0, 0.3);
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Background gradient */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.light-mode::before {
    background:
            radial-gradient(circle at 20% 10%, var(--bg-gradient-1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, var(--bg-gradient-2) 0%, transparent 60%),
            linear-gradient(135deg, rgba(232, 101, 78, 0.02) 0%, rgba(107, 20, 72, 0.03) 100%);
}

.dark-mode::before {
    background:
            radial-gradient(circle at 50% 100%, var(--bg-gradient-1) 0%, transparent 50%),
            radial-gradient(circle at 10% 90%, var(--bg-gradient-2) 0%, transparent 40%);
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 18px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.4rem;
}

.logo {
    height: 28px;
    width: auto;
}

.dark-mode .logo {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)) 
            drop-shadow(0 0 35px rgba(232, 101, 78, 0.5));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Theme Toggle */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.theme-toggle:active {
    transform: scale(0.95);
}

.sun-icon,
.moon-icon {
    position: absolute;
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.sun-icon svg,
.moon-icon svg {
    width: 16px;
    height: 16px;
}

/* Show moon in light mode, sun in dark mode */
.light-mode .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

.light-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: var(--magenta);
}

.dark-mode .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #ffd700;
}

.dark-mode .moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

/* Status Badge */
.status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.status i {
    font-size: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== BRAND TITLE ===== */
.brand-title {
    text-align: center;
    margin-bottom: 12px;
}

.brand-title h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--orange), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== TAGLINE ===== */
.tagline {
    text-align: center;
    margin-bottom: 24px;
}

.tagline h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.2;
}

.tagline p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== SERVICES ===== */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.service-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px var(--shadow);
}

.service-tag:active {
    transform: scale(0.95);
}

.service-tag i {
    font-size: 13px;
    color: var(--orange);
}

/* ===== SOCIAL GRID (below services) ===== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.2s ease;
}

.social-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px var(--shadow);
}

.social-card i {
    font-size: 24px;
}

.social-card span {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* ===== LINKS ===== */
.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    margin-bottom: 20px;
}

/* Link Cards */
.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.2s ease;
}

.link-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px var(--shadow);
}

/* WhatsApp highlight */
.whatsapp-link {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}

/* Link Icons */
.link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.dark-mode .link-icon {
    background: rgba(255, 255, 255, 0.08);
}

.link-icon.whatsapp {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* Link Title */
.link-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
}

/* Link Arrow */
.link-arrow {
    font-size: 14px;
    opacity: 0.5;
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: auto;
    padding: 16px 0 0;
    text-align: center;
}

.footer p {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ===== RESPONSIVE ===== */

/* Small screens */
@media (max-height: 700px) {
    .container {
        padding: 16px 16px 20px;
    }

    .header {
        margin-bottom: 20px;
    }

    .brand-title {
        margin-bottom: 10px;
    }

    .brand-title h1 {
        font-size: 22px;
    }

    .tagline {
        margin-bottom: 20px;
    }

    .tagline h2 {
        font-size: 18px;
    }

    .services {
        margin-bottom: 16px;
        gap: 6px;
    }

    .social-grid {
        margin-bottom: 16px;
        gap: 8px;
    }

    .social-card {
        padding: 10px 8px;
    }

    .social-card i {
        font-size: 22px;
    }

    .social-card span {
        font-size: 12px;
    }

    .service-tag {
        padding: 6px 10px;
        font-size: 11px;
    }

    .links {
        gap: 10px;
    }

    .link-card {
        padding: 14px 16px;
    }
}

/* Very small screens */
@media (max-height: 640px) {
    .social-card {
        padding: 9px 7px;
    }

    .social-card i {
        font-size: 20px;
    }

    .social-card span {
        font-size: 11px;
    }

    .link-card {
        padding: 12px 14px;
    }

    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Landscape / Tablet */
@media (min-width: 481px) {
    .container {
        padding: 28px 24px 32px;
    }

    .header {
        margin-bottom: 28px;
    }

    .logo {
        height: 32px;
    }

    .brand-title h1 {
        font-size: 26px;
    }

    .tagline {
        margin-bottom: 28px;
    }

    .tagline h2 {
        font-size: 22px;
    }

    .services {
        margin-bottom: 24px;
    }

    .social-grid {
        margin-bottom: 24px;
        gap: 12px;
    }

    .social-card {
        padding: 14px 12px;
    }

    .social-card i {
        font-size: 26px;
    }

    .links {
        gap: 14px;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
