/*
Theme Name:   GeneratePress Car Rental Curaçao Child
Description:  Child theme for carrentalcuracao — car rental lead gen site
Author:       Solo Operator
Template:     generatepress
Version:      1.0.0
Text Domain:  generatepress-child
*/

/* ============================================================
   IMPORT PARENT THEME
   ============================================================ */
@import url("../generatepress/style.css");

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --color-primary:       #0077CC;   /* ocean blue */
    --color-primary-dark:  #005FA3;
    --color-primary-light: #E6F3FB;
    --color-accent:        #FF6B00;   /* warm Curaçao orange */
    --color-accent-dark:   #D45800;
    --color-text:          #1A1A1A;
    --color-text-muted:    #5A5A5A;
    --color-bg:            #FFFFFF;
    --color-bg-soft:       #F7FAFE;
    --color-border:        #D8E8F4;
    --color-success:       #1A8F4E;
    --color-wa:            #25D366;   /* WhatsApp green */
    --color-wa-dark:       #1DA851;
    --font-base:           'Inter', system-ui, -apple-system, sans-serif;
    --font-heading:        'Poppins', 'Inter', sans-serif;
    --radius:              8px;
    --radius-lg:           14px;
    --shadow-sm:           0 1px 4px rgba(0,0,0,0.08);
    --shadow-md:           0 4px 16px rgba(0,0,0,0.10);
    --max-width:           1100px;
    --transition:          0.18s ease;
}

/* ============================================================
   GOOGLE FONTS (loaded via functions.php enqueue)
   ============================================================ */

/* ============================================================
   GLOBAL RESETS & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 2rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }

p { margin: 0 0 1rem; }

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

/* ============================================================
   LAYOUT
   ============================================================ */
.site-content,
.entry-content,
.crc-page-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Full-width sections override */
.crc-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: #fff;
    border-bottom: 2px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-title a {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-primary);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.crc-hero {
    background: linear-gradient(135deg, #004E8C 0%, #0077CC 60%, #00A3D9 100%);
    color: #fff;
    padding: 3.5rem 1.25rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.crc-hero::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 48px;
    background: var(--color-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.crc-hero h1 {
    color: #fff;
    max-width: 720px;
    margin: 0 auto 0.75rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.18);
}

.crc-hero .hero-sub {
    font-size: 1.1rem;
    opacity: 0.92;
    margin: 0 auto 1.75rem;
    max-width: 560px;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.crc-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
    align-items: center;
    background: var(--color-primary-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.85rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.crc-trust-bar .trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.crc-trust-bar .trust-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--color-primary);
}

/* ============================================================
   WHATSAPP BUTTON — INLINE
   ============================================================ */
.crc-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--color-wa);
    color: #fff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(37,211,102,0.35);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    border: none;
}

.crc-wa-btn:hover {
    background: var(--color-wa-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.45);
    color: #fff !important;
    text-decoration: none !important;
}

.crc-wa-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    flex-shrink: 0;
}

.crc-wa-btn.btn-lg {
    font-size: 1.1rem;
    padding: 1rem 2.25rem;
}

/* ============================================================
   WHATSAPP BUTTON — FLOATING
   ============================================================ */
#crc-wa-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--color-wa);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem 0.75rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    text-decoration: none;
    transition: all var(--transition);
    animation: waFloat 2.4s ease-in-out infinite;
}

#crc-wa-float:hover {
    background: var(--color-wa-dark);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 28px rgba(37,211,102,0.5);
    color: #fff;
    text-decoration: none;
}

#crc-wa-float svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    flex-shrink: 0;
}

@keyframes waFloat {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.70); }
}

@media (max-width: 480px) {
    #crc-wa-float .wa-float-label { display: none; }
    #crc-wa-float { padding: 0.85rem; border-radius: 50%; }
}

/* ============================================================
   HOW IT WORKS — 3 STEPS
   ============================================================ */
.crc-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.crc-step {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.crc-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.crc-step h3 {
    font-size: 1rem;
    margin: 0 0 0.35rem;
    font-weight: 700;
}

.crc-step p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ============================================================
   COMPARISON TABLE — CAR TYPES
   ============================================================ */
.crc-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.crc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 520px;
}

.crc-table thead th {
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-align: left;
    white-space: nowrap;
}

.crc-table tbody tr:nth-child(even) { background: var(--color-bg-soft); }
.crc-table tbody tr:hover { background: var(--color-primary-light); }

.crc-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.crc-table td:first-child { font-weight: 600; }

.crc-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.crc-badge.popular {
    background: #FFF3E0;
    color: #B45309;
}

/* ============================================================
   FAQ BLOCK
   ============================================================ */
.crc-faq { margin: 1.5rem 0 2rem; }

.crc-faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 0.6rem;
    overflow: hidden;
}

.crc-faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background var(--transition);
}

.crc-faq-q:hover { background: var(--color-bg-soft); }

.crc-faq-q[aria-expanded="true"] { background: var(--color-primary-light); color: var(--color-primary-dark); }

.crc-faq-q .faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: transform var(--transition);
}

.crc-faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.crc-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.crc-faq-a.open {
    max-height: 400px;
    padding: 0.75rem 1.25rem 1rem;
}

/* ============================================================
   LEAD FORM
   ============================================================ */
.crc-form-wrap {
    background: var(--color-bg-soft);
    border: 2px solid var(--color-primary-light);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.crc-form-wrap h2 {
    margin-top: 0;
    color: var(--color-primary-dark);
    font-size: 1.35rem;
}

/* CF7 field overrides */
.crc-form-wrap .wpcf7-form-control-wrap,
.crc-form-wrap input[type="text"],
.crc-form-wrap input[type="tel"],
.crc-form-wrap input[type="date"],
.crc-form-wrap input[type="email"],
.crc-form-wrap select,
.crc-form-wrap textarea {
    width: 100%;
}

.crc-form-wrap input[type="text"],
.crc-form-wrap input[type="tel"],
.crc-form-wrap input[type="date"],
.crc-form-wrap input[type="email"],
.crc-form-wrap select,
.crc-form-wrap textarea {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.7rem 0.9rem;
    font-family: var(--font-base);
    font-size: 0.95rem;
    color: var(--color-text);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    margin-bottom: 0.25rem;
    appearance: none;
    -webkit-appearance: none;
}

.crc-form-wrap input:focus,
.crc-form-wrap select:focus,
.crc-form-wrap textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,119,204,0.12);
}

.crc-form-wrap .cf7-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 580px) {
    .crc-form-wrap .cf7-form-grid { grid-template-columns: 1fr; }
}

.crc-form-wrap label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--color-text);
}

.crc-form-wrap .wpcf7-submit,
.crc-form-wrap input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: background var(--transition), transform var(--transition);
}

.crc-form-wrap .wpcf7-submit:hover,
.crc-form-wrap input[type="submit"]:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.crc-form-wrap .gdpr-note {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
    line-height: 1.5;
}

.crc-form-wrap .wpcf7-acceptance label {
    font-weight: 400;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* ============================================================
   INTERNAL LINKS BLOCK
   ============================================================ */
.crc-related-links {
    background: var(--color-bg-soft);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.crc-related-links h3 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 700;
}

.crc-related-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.crc-related-links ul li a {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: #fff;
    border: 1.5px solid var(--color-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: background var(--transition), color var(--transition);
}

.crc-related-links ul li a:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
.crc-thankyou {
    text-align: center;
    padding: 4rem 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.crc-thankyou .ty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.crc-thankyou h1 { color: var(--color-success); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .crc-hero { padding: 2.5rem 1rem 2.5rem; }
    .crc-trust-bar { font-size: 0.8rem; gap: 0.4rem 1rem; }
    .crc-form-wrap { padding: 1.5rem 1rem; }
    h2 { font-size: 1.35rem; }
}
