/* Roatan Connections — dark mode (html.rc-dark). Remaps the Divi global colors, then fixes the special sections. */

/* ---------- toggle button (header) ---------- */
.rc-theme-toggle {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 40px; height: 40px; margin-left: 14px; padding: 0; cursor: pointer;
	border-radius: 50%; border: 1.5px solid var(--gcid-c2a42dd2-e076-4eec-97ba-6e0b59323a65);
	background: transparent; color: var(--gcid-900a03c2-8d0d-4252-b5ac-27dda36b42c8);
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.rc-theme-toggle:hover { background: var(--gcid-647e6db1-c3b5-4de3-b871-db697798c3aa); }
.rc-theme-toggle svg { width: 18px; height: 18px; display: block; }
.rc-theme-toggle .rc-ico-sun { display: none; }
html.rc-dark .rc-theme-toggle .rc-ico-sun { display: block; }
html.rc-dark .rc-theme-toggle .rc-ico-moon { display: none; }
html.rc-dark .rc-theme-toggle:hover { background: #3E5B62; }
@media (max-width: 980px) { .rc-theme-toggle { width: 36px; height: 36px; margin-left: 8px; } }

/* smooth switch */
html.rc-theme-anim body, html.rc-theme-anim .et_pb_section, html.rc-theme-anim .et-l--header .et_pb_section,
html.rc-theme-anim h1, html.rc-theme-anim h2, html.rc-theme-anim h3, html.rc-theme-anim p, html.rc-theme-anim a, html.rc-theme-anim li {
	transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

/* ---------- 1. global colors remapped ---------- */
html.rc-dark {
	--gcid-0e2f2f3b-6069-463a-b25e-ff5bea86d2db: #2B3F44; /* RC Fondo  → page background */
	--gcid-900a03c2-8d0d-4252-b5ac-27dda36b42c8: #F3F2EE; /* RC Oscuro → titles */
	--gcid-c2a42dd2-e076-4eec-97ba-6e0b59323a65: #BFD9D9; /* RC Pizarra → text, lines */
	--gcid-074298ca-490f-4e85-9a1a-e2c41f4c88ee: #3E5B62; /* RC Arena → bands, borders */
	--gcid-body-color: #C9DCDC;
	--gcid-heading-color: #F3F2EE;
	--gcid-link-color: #BFD9D9;
	--gcid-primary-color: #BFD9D9;
	--rc-line-v2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 480' preserveAspectRatio='none'%3E%3Cpath d='M30 0 C44 60 44 180 30 240 C16 300 16 420 30 480' fill='none' stroke='%235B7A80' stroke-width='1.5'/%3E%3Cpath d='M22 0 C36 60 36 180 22 240 C8 300 8 420 22 480' fill='none' stroke='%23BFD9D9' stroke-width='3'/%3E%3C/svg%3E");
	--rc-wave-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C120 10 240 10 360 40 S600 70 720 40 S960 10 1080 40 S1320 70 1440 40' fill='none' stroke='%23BFD9D9' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 52 C120 22 240 22 360 52 S600 82 720 52 S960 22 1080 52 S1320 82 1440 52' fill='none' stroke='%235B7A80' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
	--rc-wave-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20 C100 0 200 40 300 20 S500 0 600 20 S800 40 900 20 S1100 0 1200 20' fill='none' stroke='%233E5B62' stroke-width='2' stroke-dasharray='6 8' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
	--rc-spiral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a1.5 1.5 0 1 1 1.5-1.5 3.5 3.5 0 1 1-3.5-3.5 6 6 0 1 1-6 6' fill='none' stroke='%23BFD9D9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	color-scheme: dark;
}
html.rc-dark body, html.rc-dark #page-container, html.rc-dark #main-content { background-color: #2B3F44; color: #C9DCDC; }

/* ---------- 2. header + logos ---------- */
html.rc-dark .rc-header .et_pb_menu__logo img { content: url("/wp-content/uploads/2026/10/roatan-connections-logo-light.webp"); }
html.rc-dark .rc-header .et-menu > li > a { color: #E8F4F4 !important; }
html.rc-dark .rc-header .et_pb_menu__icon, html.rc-dark .rc-header .mobile_menu_bar:before { color: #E8F4F4 !important; }
html.rc-dark .rc-hero::before { background-image: url("/wp-content/uploads/2026/10/roatan-connections-logo-light.webp"); opacity: .06; }

/* ---------- 3. hero badge ---------- */
html.rc-dark .rc-badge { background: #3E5B62; box-shadow: 0 0 0 10px #2B3F44; }
html.rc-dark .rc-badge-in { color: #E8F4F4; }

/* ---------- 4. cruise band becomes light (inverted, as in the mockup) ---------- */
html.rc-dark .rc-cruise { background-color: #E8F4F4 !important; }
html.rc-dark .rc-cruise .rc-eyebrow p, html.rc-dark .rc-cruise .rc-lead p,
html.rc-dark .rc-cruise .rc-card-tags p, html.rc-dark .rc-cruise .rc-price-note { color: #3E5B62; }
html.rc-dark .rc-cruise .rc-h2 h2, html.rc-dark .rc-cruise .rc-card-title a,
html.rc-dark .rc-cruise .rc-price, html.rc-dark .rc-cruise .rc-card-link,
html.rc-dark .rc-cruise .rc-cruise-promise strong { color: #2B3F44; }
html.rc-dark .rc-cruise .rc-cruise-promise p { color: #2B3F44; border-color: #3E5B62; }
html.rc-dark .rc-cruise .rc-card-img img { border-color: #E8F4F4; }

/* ---------- 5. your way + concierge ---------- */
html.rc-dark .rc-chips li.is-fill { background: #E8F4F4; border-color: #E8F4F4; color: #2B3F44; }
html.rc-dark .rc-concierge { background: #2B3F44; }

/* ---------- 6. footer stays the darkest band ---------- */
html.rc-dark .rc-footer { background-color: #1E2D31 !important; }

/* ---------- 7. wave dividers: Divi prints them with fixed colors → redraw for dark ---------- */
html.rc-dark .rc-cruise > .et_pb_top_inside_divider,
html.rc-dark .rc-yourway > .et_pb_top_inside_divider,
html.rc-dark .rc-transport > .et_pb_top_inside_divider,
html.rc-dark .rc-footer > .et_pb_top_inside_divider { background-size: 100% 70px !important; }
html.rc-dark .rc-cruise > .et_pb_top_inside_divider { background-image: url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='none' width='100%25' height='70px' viewBox='0 0 1280 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232B3F44'%3E%3Cpath d='M320 28C160 28 80 49 0 70V0h1280v70c-80 21-160 42-320 42-320 0-320-84-640-84z'/%3E%3C/g%3E%3C/svg%3E") !important; }
html.rc-dark .rc-yourway > .et_pb_top_inside_divider { background-image: url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='none' width='100%25' height='70px' viewBox='0 0 1280 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23E8F4F4'%3E%3Cpath d='M320 28C160 28 80 49 0 70V0h1280v70c-80 21-160 42-320 42-320 0-320-84-640-84z'/%3E%3C/g%3E%3C/svg%3E") !important; }
html.rc-dark .rc-transport > .et_pb_top_inside_divider { background-image: url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='none' width='100%25' height='70px' viewBox='0 0 1280 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%233E5B62'%3E%3Cpath d='M320 28C160 28 80 49 0 70V0h1280v70c-80 21-160 42-320 42-320 0-320-84-640-84z'/%3E%3C/g%3E%3C/svg%3E") !important; }
html.rc-dark .rc-footer > .et_pb_top_inside_divider { background-image: url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='none' width='100%25' height='70px' viewBox='0 0 1280 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232B3F44'%3E%3Cpath d='M320 28C160 28 80 49 0 70V0h1280v70c-80 21-160 42-320 42-320 0-320-84-640-84z'/%3E%3C/g%3E%3C/svg%3E") !important; }

/* ---------- 8. WooCommerce basics (shop, product, cart) ---------- */
html.rc-dark .woocommerce div.product .product_title, html.rc-dark .woocommerce ul.products li.product .woocommerce-loop-product__title { color: #F3F2EE; }
html.rc-dark .woocommerce div.product p.price, html.rc-dark .woocommerce ul.products li.product .price { color: #E8F4F4; }
html.rc-dark .woocommerce table.shop_table, html.rc-dark .woocommerce form .form-row input.input-text,
html.rc-dark .woocommerce form .form-row textarea, html.rc-dark .woocommerce .quantity .qty { background: #3E5B62; color: #F3F2EE; border-color: #5B7A80; }

@media (prefers-reduced-motion: reduce) { html.rc-theme-anim * { transition: none !important; } }

/* stronger selectors: Divi prints section backgrounds with !important on its own classes */
html.rc-dark body #page-container .et_pb_section.rc-cruise,
html.rc-dark body .et_pb_section.rc-cruise { background-color: #E8F4F4 !important; }
html.rc-dark body .et-l--footer .et_pb_section.rc-footer,
html.rc-dark body #page-container .et_pb_section.rc-footer,
html.rc-dark body .et_pb_section.rc-footer { background-color: #1E2D31 !important; }
