/* ============================================
   DESIGN SYSTEM — Reino Limpo Premium
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* Colors */
    --rlp-primary: #0A6847;
    --rlp-primary-light: #10B981;
    --rlp-primary-dark: #064E3B;
    --rlp-primary-50: #ECFDF5;
    --rlp-primary-100: #D1FAE5;
    --rlp-primary-200: #A7F3D0;
    --rlp-accent: #06B6D4;
    --rlp-accent-light: #67E8F9;

    --rlp-bg: #FAFBFC;
    --rlp-surface: #FFFFFF;
    --rlp-surface-elevated: #FFFFFF;
    --rlp-dark: #0F172A;
    --rlp-dark-surface: #1E293B;

    --rlp-text: #111827;
    --rlp-text-secondary: #6B7280;
    --rlp-text-muted: #9CA3AF;
    --rlp-text-on-dark: #F1F5F9;
    --rlp-text-on-primary: #FFFFFF;

    --rlp-border: #E5E7EB;
    --rlp-border-light: #F3F4F6;

    /* Gradients */
    --rlp-gradient-primary: linear-gradient(135deg, #064E3B 0%, #0A6847 50%, #10B981 100%);
    --rlp-gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --rlp-gradient-hero: linear-gradient(135deg, #064E3B 0%, #0A6847 40%, #115e59 100%);
    --rlp-gradient-accent: linear-gradient(135deg, #0A6847 0%, #06B6D4 100%);
    --rlp-gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);

    /* Typography */
    --rlp-font-display: 'Outfit', system-ui, sans-serif;
    --rlp-font-body: 'Inter', system-ui, sans-serif;

    /* Spacing Scale */
    --rlp-space-xs: 0.25rem;
    --rlp-space-sm: 0.5rem;
    --rlp-space-md: 1rem;
    --rlp-space-lg: 1.5rem;
    --rlp-space-xl: 2rem;
    --rlp-space-2xl: 3rem;
    --rlp-space-3xl: 4rem;
    --rlp-space-4xl: 6rem;
    --rlp-space-5xl: 8rem;

    /* Border Radius */
    --rlp-radius-sm: 6px;
    --rlp-radius-md: 8px;
    --rlp-radius-lg: 12px;
    --rlp-radius-xl: 16px;
    --rlp-radius-2xl: 24px;
    --rlp-radius-full: 9999px;

    /* Shadows (tinted with green hue) */
    --rlp-shadow-sm: 0 1px 2px rgba(10, 104, 71, 0.05);
    --rlp-shadow-md: 0 4px 6px -1px rgba(10, 104, 71, 0.07), 0 2px 4px -2px rgba(10, 104, 71, 0.05);
    --rlp-shadow-lg: 0 10px 15px -3px rgba(10, 104, 71, 0.08), 0 4px 6px -4px rgba(10, 104, 71, 0.04);
    --rlp-shadow-xl: 0 20px 25px -5px rgba(10, 104, 71, 0.1), 0 8px 10px -6px rgba(10, 104, 71, 0.05);
    --rlp-shadow-card: 0 1px 3px rgba(10, 104, 71, 0.06), 0 0 0 1px rgba(10, 104, 71, 0.04);
    --rlp-shadow-card-hover: 0 12px 24px -4px rgba(10, 104, 71, 0.12), 0 0 0 1px rgba(10, 104, 71, 0.06);
    --rlp-shadow-glass: 0 8px 32px rgba(10, 104, 71, 0.12);

    /* Transitions */
    --rlp-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --rlp-transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --rlp-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --rlp-transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Container */
    --rlp-container: 1200px;
    --rlp-container-wide: 1400px;
    --rlp-container-narrow: 800px;

    /* Z-index scale */
    --rlp-z-base: 1;
    --rlp-z-dropdown: 10;
    --rlp-z-sticky: 100;
    --rlp-z-overlay: 200;
    --rlp-z-modal: 300;
}

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

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

body.rlp-theme {
    font-family: var(--rlp-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--rlp-text);
    background-color: var(--rlp-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Remove default Elementor and parent theme margins on custom templates */
body.rlp-home .site-main,
body.rlp-home .entry-content,
body.rlp-home .page-content,
body.rlp-home .elementor,
body.page-template-page-contato .site-main,
body.page-template-page-reserva .site-main {
    margin: 0;
    padding: 0;
    max-width: none;
}

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

a {
    color: var(--rlp-primary);
    text-decoration: none;
    transition: color var(--rlp-transition-fast);
}

a:hover {
    color: var(--rlp-primary-light);
}

a:focus-visible {
    outline: 2px solid var(--rlp-primary);
    outline-offset: 2px;
    border-radius: var(--rlp-radius-sm);
}

ul, ol {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--rlp-font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--rlp-text);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    max-width: 65ch;
    line-height: 1.7;
    color: var(--rlp-text-secondary);
}

.rlp-eyebrow {
    font-family: var(--rlp-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rlp-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rlp-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--rlp-primary);
    border-radius: 1px;
}

/* --- Container --- */
.rlp-container {
    width: 100%;
    max-width: var(--rlp-container);
    margin: 0 auto;
    padding: 0 var(--rlp-space-lg);
}

.rlp-container--wide {
    max-width: var(--rlp-container-wide);
}

.rlp-container--narrow {
    max-width: var(--rlp-container-narrow);
}

/* --- Buttons --- */
.rlp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--rlp-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.875rem 2rem;
    border-radius: var(--rlp-radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--rlp-transition-base);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.rlp-btn:focus-visible {
    outline: 2px solid var(--rlp-primary);
    outline-offset: 2px;
}

.rlp-btn:active {
    transform: scale(0.97);
}

/* Primary Button */
.rlp-btn--primary {
    background: var(--rlp-primary);
    color: var(--rlp-text-on-primary);
    box-shadow: 0 4px 14px rgba(10, 104, 71, 0.3);
}

.rlp-btn--primary:hover {
    background: var(--rlp-primary-light);
    color: var(--rlp-text-on-primary);
    box-shadow: 0 6px 20px rgba(10, 104, 71, 0.35);
    transform: translateY(-2px);
}

/* Secondary / Outline Button */
.rlp-btn--secondary {
    background: transparent;
    color: var(--rlp-primary);
    border-color: var(--rlp-primary);
}

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

/* Ghost Button (on dark backgrounds) */
.rlp-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.rlp-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* WhatsApp Button */
.rlp-btn--whatsapp {
    background: #25D366;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.rlp-btn--whatsapp:hover {
    background: #20BD5A;
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.rlp-btn--whatsapp svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Small Button */
.rlp-btn--sm {
    font-size: 0.8125rem;
    padding: 0.625rem 1.25rem;
}

/* --- Cards --- */
.rlp-card {
    background: var(--rlp-surface);
    border-radius: var(--rlp-radius-lg);
    padding: var(--rlp-space-xl);
    box-shadow: var(--rlp-shadow-card);
    transition: all var(--rlp-transition-base);
    position: relative;
    overflow: hidden;
}

.rlp-card:hover {
    box-shadow: var(--rlp-shadow-card-hover);
    transform: translateY(-4px);
}

.rlp-card--glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--rlp-shadow-glass);
}

.rlp-card--dark {
    background: var(--rlp-dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.rlp-card--dark h3,
.rlp-card--dark h4 {
    color: var(--rlp-text-on-dark);
}

.rlp-card--dark p {
    color: rgba(241, 245, 249, 0.7);
}

/* Card Icon Container */
.rlp-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--rlp-radius-lg);
    background: var(--rlp-primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--rlp-space-lg);
    transition: all var(--rlp-transition-base);
}

.rlp-card:hover .rlp-card__icon {
    background: var(--rlp-primary);
    transform: scale(1.05);
}

.rlp-card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--rlp-primary);
    transition: color var(--rlp-transition-base);
}

.rlp-card:hover .rlp-card__icon svg {
    color: #FFFFFF;
}

/* --- Form Elements --- */
.rlp-input,
.rlp-textarea {
    width: 100%;
    font-family: var(--rlp-font-body);
    font-size: 0.9375rem;
    color: var(--rlp-text);
    background: var(--rlp-surface);
    border: 1.5px solid var(--rlp-border);
    border-radius: var(--rlp-radius-md);
    padding: 0.875rem 1rem;
    transition: all var(--rlp-transition-fast);
}

.rlp-input:focus,
.rlp-textarea:focus {
    outline: none;
    border-color: var(--rlp-primary);
    box-shadow: 0 0 0 3px rgba(10, 104, 71, 0.1);
}

.rlp-input::placeholder,
.rlp-textarea::placeholder {
    color: var(--rlp-text-muted);
}

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

.rlp-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rlp-text);
    margin-bottom: 0.375rem;
}

/* --- Badges --- */
.rlp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: var(--rlp-radius-full);
    background: var(--rlp-primary-50);
    color: var(--rlp-primary);
}

/* --- Divider --- */
.rlp-divider {
    width: 48px;
    height: 3px;
    background: var(--rlp-gradient-accent);
    border-radius: 2px;
    border: none;
}

/* --- Section Padding Utility --- */
.rlp-section {
    padding: var(--rlp-space-5xl) 0;
    position: relative;
}

.rlp-section--sm {
    padding: var(--rlp-space-3xl) 0;
}

/* --- Screen Reader Only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- Skip Link --- */
.rlp-skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rlp-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--rlp-radius-md) var(--rlp-radius-md);
    z-index: var(--rlp-z-modal);
    font-weight: 600;
    transition: top var(--rlp-transition-fast);
}

.rlp-skip-link:focus {
    top: 0;
    color: white;
}
