/* Theme palette switcher for landing page */

:root,
html[data-theme="watermelon"] {
  --bg: #fff6f7;
  --panel: #fffdf7;
  --ink: #2f3f33;
  --muted: #c6919d;
  --muted-rgb: 198, 145, 157;

  --blue-900: #2e5f3c;
  --blue-900-rgb: 46, 95, 60;
  --blue-800: #3c7d50;
  --blue-800-rgb: 60, 125, 80;
  --blue-700: #cf3f62;
  --blue-700-rgb: 207, 63, 98;
  --blue-600: #de4965;
  --blue-600-rgb: 222, 73, 101;
  --blue-500: #f06b86;
  --blue-500-rgb: 240, 107, 134;
  --blue-400: #ff98ab;

  --green-600: #3f8c55;
  --green-600-rgb: 63, 140, 85;
  --green-500: #69bf7e;
  --green-500-rgb: 105, 191, 126;

  --border: rgba(46, 95, 60, 0.14);
  --shadow: 0 14px 34px rgba(var(--blue-900-rgb), 0.12);
  --focus: rgba(var(--blue-600-rgb), 0.22);
}

html[data-theme="citrus"] {
  --bg: #fffbf0;
  --panel: #fffef8;
  --ink: #2f3f33;
  --muted: #c8b087;
  --muted-rgb: 200, 176, 135;

  --blue-900: #355f3b;
  --blue-900-rgb: 53, 95, 59;
  --blue-800: #4a8d52;
  --blue-800-rgb: 74, 141, 82;
  --blue-700: #cf7f2e;
  --blue-700-rgb: 207, 127, 46;
  --blue-600: #de9540;
  --blue-600-rgb: 222, 149, 64;
  --blue-500: #f0af58;
  --blue-500-rgb: 240, 175, 88;
  --blue-400: #ffd08b;

  --green-600: #3d9254;
  --green-600-rgb: 61, 146, 84;
  --green-500: #6fbc7e;
  --green-500-rgb: 111, 188, 126;

  --border: rgba(53, 95, 59, 0.14);
  --shadow: 0 14px 34px rgba(var(--blue-900-rgb), 0.12);
  --focus: rgba(var(--blue-600-rgb), 0.2);
}

html[data-theme="lagoon"] {
  --bg: #f2fbfb;
  --panel: #f7ffff;
  --ink: #1f3e44;
  --muted: #84aeb6;
  --muted-rgb: 132, 174, 182;

  --blue-900: #17515f;
  --blue-900-rgb: 23, 81, 95;
  --blue-800: #1f6d80;
  --blue-800-rgb: 31, 109, 128;
  --blue-700: #219f9e;
  --blue-700-rgb: 33, 159, 158;
  --blue-600: #31b1a8;
  --blue-600-rgb: 49, 177, 168;
  --blue-500: #4cc3b4;
  --blue-500-rgb: 76, 195, 180;
  --blue-400: #82ddd1;

  --green-600: #1f8f7b;
  --green-600-rgb: 31, 143, 123;
  --green-500: #38b99a;
  --green-500-rgb: 56, 185, 154;

  --border: rgba(23, 81, 95, 0.14);
  --shadow: 0 14px 34px rgba(var(--blue-900-rgb), 0.12);
  --focus: rgba(var(--blue-600-rgb), 0.22);
}

html[data-theme="evergreen"] {
  --bg: #f3fbf5;
  --panel: #fbfffc;
  --ink: #25382c;
  --muted: #93b39e;
  --muted-rgb: 147, 179, 158;

  --blue-900: #1d5f3a;
  --blue-900-rgb: 29, 95, 58;
  --blue-800: #23824d;
  --blue-800-rgb: 35, 130, 77;
  --blue-700: #2b955b;
  --blue-700-rgb: 43, 149, 91;
  --blue-600: #2fa166;
  --blue-600-rgb: 47, 161, 102;
  --blue-500: #4aba7d;
  --blue-500-rgb: 74, 186, 125;
  --blue-400: #7fcea0;

  --green-600: #23824d;
  --green-600-rgb: 35, 130, 77;
  --green-500: #4aba7d;
  --green-500-rgb: 74, 186, 125;

  --border: rgba(29, 95, 58, 0.14);
  --shadow: 0 14px 34px rgba(var(--blue-900-rgb), 0.12);
  --focus: rgba(var(--blue-600-rgb), 0.22);
}

html[data-theme="purplenight"] {
  --bg: #f5f6fb;
  --panel: #ffffff;
  --ink: #252738;
  --muted: #9da0be;
  --muted-rgb: 157, 160, 190;

  --blue-900: #2f3150;
  --blue-900-rgb: 47, 49, 80;
  --blue-800: #43467a;
  --blue-800-rgb: 67, 70, 122;
  --blue-700: #6167ae;
  --blue-700-rgb: 97, 103, 174;
  --blue-600: #787fd0;
  --blue-600-rgb: 120, 127, 208;
  --blue-500: #9098df;
  --blue-500-rgb: 144, 152, 223;
  --blue-400: #b0b6ef;

  --green-600: #5e6da8;
  --green-600-rgb: 94, 109, 168;
  --green-500: #7f90cf;
  --green-500-rgb: 127, 144, 207;

  --border: rgba(47, 49, 80, 0.14);
  --shadow: 0 14px 34px rgba(var(--blue-900-rgb), 0.12);
  --focus: rgba(var(--blue-600-rgb), 0.24);
}

body {
  transition: background 220ms ease;
}

html[data-theme="watermelon"] body {
  background:
    radial-gradient(1100px 500px at 50% -120px, rgba(255, 128, 151, 0.14), transparent 62%),
    linear-gradient(180deg, #fff7f8 0%, #fffdf7 62%, #f8fff8 100%);
}

html[data-theme="citrus"] body {
  background:
    radial-gradient(1000px 460px at 50% -120px, rgba(255, 190, 91, 0.16), transparent 60%),
    linear-gradient(180deg, #fffef8 0%, #fffaf0 58%, #f8fff2 100%);
}

html[data-theme="lagoon"] body {
  background:
    radial-gradient(980px 440px at 50% -120px, rgba(76, 195, 180, 0.16), transparent 58%),
    linear-gradient(180deg, #f5ffff 0%, #f2fbfb 62%, #f3fffa 100%);
}

html[data-theme="evergreen"] body {
  background:
    radial-gradient(980px 440px at 50% -120px, rgba(74, 186, 125, 0.17), transparent 58%),
    linear-gradient(180deg, #f8fff9 0%, #f3fbf5 62%, #f8fffb 100%);
}

html[data-theme="purplenight"] body {
  background:
    radial-gradient(980px 440px at 50% -120px, rgba(120, 127, 208, 0.16), transparent 58%),
    linear-gradient(180deg, #f7f8ff 0%, #f5f6fb 62%, #f8f9ff 100%);
}

html[data-theme="midnight"] body {
  background:
    radial-gradient(980px 440px at 50% -120px, rgba(45, 58, 93, 0.35), transparent 58%),
    linear-gradient(180deg, #0c111d 0%, #0f1626 62%, #121b2e 100%);
}

body::before,
body::after,
.site-header,
.hero,
.site-footer,
.primary-nav .cta {
  transition: background 220ms ease, box-shadow 220ms ease;
}

html[data-theme="watermelon"] body::before {
  background: radial-gradient(900px 430px at 50% 0%, rgba(255, 118, 146, 0.18), transparent 47%);
}

html[data-theme="citrus"] body::before {
  background: radial-gradient(900px 430px at 50% 0%, rgba(255, 180, 73, 0.2), transparent 47%);
}

html[data-theme="lagoon"] body::before {
  background: radial-gradient(900px 430px at 50% 0%, rgba(56, 185, 154, 0.18), transparent 47%);
}

html[data-theme="evergreen"] body::before {
  background: radial-gradient(900px 430px at 50% 0%, rgba(74, 186, 125, 0.19), transparent 47%);
}

html[data-theme="purplenight"] body::before {
  background: radial-gradient(900px 430px at 50% 0%, rgba(144, 152, 223, 0.2), transparent 47%);
}

html[data-theme="midnight"] body::before {
  background: radial-gradient(900px 430px at 50% 0%, rgba(84, 110, 181, 0.3), transparent 47%);
}

html[data-theme="watermelon"] body::after {
  background: radial-gradient(840px 360px at 50% 10%, rgba(99, 194, 123, 0.14), transparent 56%);
}

html[data-theme="citrus"] body::after {
  background: radial-gradient(840px 360px at 50% 10%, rgba(111, 188, 126, 0.14), transparent 56%);
}

html[data-theme="lagoon"] body::after {
  background: radial-gradient(840px 360px at 50% 10%, rgba(49, 177, 168, 0.14), transparent 56%);
}

html[data-theme="evergreen"] body::after {
  background: radial-gradient(840px 360px at 50% 10%, rgba(35, 130, 77, 0.14), transparent 56%);
}

html[data-theme="purplenight"] body::after {
  background: radial-gradient(840px 360px at 50% 10%, rgba(120, 127, 208, 0.14), transparent 56%);
}

html[data-theme="midnight"] body::after {
  background: radial-gradient(840px 360px at 50% 10%, rgba(45, 58, 93, 0.28), transparent 56%);
}

.theme-picker {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 120;
}

.theme-picker-toggle {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: rgba(var(--blue-900-rgb), 0.9);
  font-weight: 800;
  padding: 7px 14px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(var(--blue-900-rgb), 0.14);
}

.theme-picker-toggle:hover {
  background: rgba(var(--blue-600-rgb), 0.12);
}

.theme-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 170px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(var(--blue-900-rgb), 0.18);
}

.theme-chip {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: rgba(var(--blue-900-rgb), 0.82);
  font-weight: 700;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  cursor: pointer;
}

.theme-chip:hover {
  background: rgba(var(--blue-600-rgb), 0.1);
}

.theme-chip.is-active {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  border-color: transparent;
  color: #ffffff;
}

.site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 248, 250, 0.82));
}

html[data-theme="citrus"] .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(255, 252, 246, 0.84));
}

html[data-theme="lagoon"] .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(246, 255, 254, 0.84));
}

html[data-theme="evergreen"] .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(246, 255, 249, 0.84));
}

html[data-theme="purplenight"] .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(246, 248, 255, 0.84));
}

html[data-theme="midnight"] .site-header {
  background: linear-gradient(180deg, rgba(11, 16, 28, 0.95), rgba(16, 23, 38, 0.92));
  border-bottom-color: rgba(127, 162, 255, 0.16);
}

.primary-nav .cta {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 10px 26px rgba(var(--blue-600-rgb), 0.3);
}

.primary-nav .cta:hover {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
}

.hero {
  background:
    radial-gradient(500px 170px at 20% 0%, rgba(var(--blue-600-rgb), 0.13), transparent 70%),
    radial-gradient(560px 180px at 80% 4%, rgba(var(--green-500-rgb), 0.11), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 251, 253, 0.88));
}

.site-footer {
  background: linear-gradient(180deg, rgba(255, 251, 252, 0.82), rgba(246, 255, 247, 0.82));
}

html[data-theme="midnight"] {
  --bg: #0f1626;
  --panel: #121c30;
  --ink: #dbe6ff;
  --muted: #8ea1c6;
  --muted-rgb: 142, 161, 198;

  --blue-900: #cddcff;
  --blue-900-rgb: 205, 220, 255;
  --blue-800: #9fb6ea;
  --blue-800-rgb: 159, 182, 234;
  --blue-700: #78a0f2;
  --blue-700-rgb: 120, 160, 242;
  --blue-600: #5b8ded;
  --blue-600-rgb: 91, 141, 237;
  --blue-500: #7faaff;
  --blue-500-rgb: 127, 170, 255;
  --blue-400: #a7c5ff;

  --green-600: #4f76c8;
  --green-600-rgb: 79, 118, 200;
  --green-500: #6f95e2;
  --green-500-rgb: 111, 149, 226;

  --border: rgba(127, 162, 255, 0.2);
  --shadow: 0 16px 36px rgba(2, 6, 14, 0.5);
  --focus: rgba(var(--blue-600-rgb), 0.35);
}

html[data-theme="midnight"] .theme-picker-toggle {
  background: rgba(13, 20, 34, 0.95);
  border-color: rgba(127, 162, 255, 0.2);
  color: rgba(219, 230, 255, 0.92);
}

html[data-theme="midnight"] .theme-picker-menu {
  background: rgba(10, 16, 28, 0.96);
  border-color: rgba(127, 162, 255, 0.2);
}

html[data-theme="midnight"] .theme-chip {
  background: rgba(19, 29, 49, 0.9);
}

html[data-theme="midnight"] .hero {
  background:
    radial-gradient(500px 170px at 20% 0%, rgba(var(--blue-600-rgb), 0.2), transparent 70%),
    radial-gradient(560px 180px at 80% 4%, rgba(var(--green-500-rgb), 0.17), transparent 72%),
    linear-gradient(180deg, rgba(17, 25, 41, 0.92), rgba(14, 22, 36, 0.9));
}

html[data-theme="midnight"] .hero-layout {
  background: linear-gradient(135deg, rgba(19, 29, 49, 0.94), rgba(14, 22, 36, 0.9));
  border-color: rgba(127, 162, 255, 0.18);
  box-shadow: 0 16px 30px rgba(2, 6, 14, 0.42);
}

html[data-theme="midnight"] .overview-card,
html[data-theme="midnight"] .service-card,
html[data-theme="midnight"] .cap-card,
html[data-theme="midnight"] .consultation-note {
  background: rgba(19, 29, 49, 0.9);
  border-color: rgba(127, 162, 255, 0.18);
  box-shadow: 0 16px 30px rgba(2, 6, 14, 0.4);
}

html[data-theme="midnight"] .button.secondary {
  background: rgba(19, 29, 49, 0.92);
  border-color: rgba(127, 162, 255, 0.2);
  color: rgba(219, 230, 255, 0.9);
}

html[data-theme="midnight"] .button.secondary:hover {
  background: rgba(24, 36, 60, 0.96);
}

html[data-theme="midnight"] .button.ghost {
  border-color: rgba(127, 170, 255, 0.3);
  color: rgba(167, 197, 255, 0.95);
}

html[data-theme="midnight"] .button.ghost:hover {
  background: rgba(91, 141, 237, 0.16);
}

html[data-theme="midnight"] .contact {
  background: rgba(8, 13, 22, 0.45);
}

html[data-theme="midnight"] .site-header.nav-open .primary-nav {
  background: rgba(13, 20, 34, 0.96);
  border-color: rgba(127, 162, 255, 0.2);
}

html[data-theme="midnight"] .site-footer {
  background: linear-gradient(180deg, rgba(12, 18, 30, 0.95), rgba(10, 15, 26, 0.95));
  border-top-color: rgba(127, 162, 255, 0.16);
}

@media (max-width: 860px) {
  .theme-picker {
    top: auto;
    bottom: 64px;
    right: 10px;
    left: auto;
  }

  .theme-picker-toggle {
    padding: 6px 12px;
  }

  .theme-picker-menu {
    top: auto;
    bottom: calc(100% + 8px);
    right: 0;
    left: auto;
    width: 154px;
  }
}

@media (max-width: 640px) {
  .theme-picker {
    bottom: 72px;
  }
}
