/* ATTE: navy surroundings, with three architectural concrete card finishes. */
html[data-theme="light"] {
  color-scheme: light;
  --ink: #162236;
  --ink-soft: #566170;
  --paper: #eceef0;
  --surface: #f9fafb;
  --line: #c8cfd7;
  --surface-soft: #e0e5eb;
  --section-alt: #e4e8ed;
  --section-glow: rgba(36, 64, 101, .07);
  --field-surface: #f1f3f5;
  --selected-surface: #dce4ee;
  --theme-link: #183959;
  --accent-text: #355372;
  --accent: #294b74;
  --on-accent: #ffffff;
  --header-surface: rgba(237, 241, 245, .86);
  --header-border: rgba(255, 255, 255, .88);
  --menu-surface: rgba(247, 249, 251, .97);
  --theme-shadow: 0 16px 44px rgba(13, 25, 43, .08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf1f6;
  --ink-soft: #b2bdcc;
  --paper: #0d1727;
  --surface: #19283d;
  --line: #3a4c64;
  --surface-soft: #22354e;
  --section-alt: #122136;
  --section-glow: rgba(76, 110, 153, .16);
  --field-surface: #0e1b2e;
  --selected-surface: #293e5a;
  --theme-link: #b5c9e4;
  --accent-text: #b7c9e0;
  --accent: #b7c9e0;
  --on-accent: #112440;
  --header-surface: rgba(19, 34, 55, .87);
  --header-border: rgba(174, 192, 216, .25);
  --menu-surface: rgba(19, 34, 55, .97);
  --theme-shadow: 0 16px 44px rgba(0, 0, 0, .19);
}

html[data-theme] body {
  color: var(--ink);
  background-color: var(--paper);
  accent-color: var(--accent);
}

html[data-theme] ::selection {
  color: #0d1727;
  background: #b7c9e0;
}

html[data-theme] .site-header {
  color: var(--ink);
  border-color: var(--header-border);
  background: var(--header-surface);
  box-shadow: var(--theme-shadow);
}

html[data-theme] .primary-navigation a:hover,
html[data-theme] .primary-navigation a:focus-visible,
html[data-theme] .primary-navigation a[aria-current="page"],
html[data-theme] .nav-char::after {
  color: var(--theme-link);
}

html[data-theme] .eyebrow,
html[data-theme] .home-statement-alt .eyebrow,
html[data-theme] .contact-details a:hover,
html[data-theme] .callback-status {
  color: var(--theme-link);
}

html[data-theme] .home-overview {
  background: var(--paper);
}

html[data-theme] .dashboard-section-dark,
html[data-theme] .services-hero {
  color: var(--ink);
  border-color: var(--line);
  background: var(--section-alt);
}

html[data-theme] .dashboard-section-dark .eyebrow,
html[data-theme] .services-hero .eyebrow,
html[data-theme] .feedback-heading .eyebrow {
  color: var(--accent-text);
}

html[data-theme] .dashboard-section-dark .dashboard-intro,
html[data-theme] .dashboard-section-dark .section-number,
html[data-theme] .services-lead,
html[data-theme] .services-hero .section-number {
  color: var(--ink-soft);
}

html[data-theme] .feedback-section,
html[data-theme] #membership.dashboard-section {
  color: var(--ink);
  background: radial-gradient(circle at 88% 88%, var(--section-glow), transparent 42%), var(--section-alt);
}

/* The gold call-to-action button stays gold on hover in both themes (styles.css). */
html[data-theme] .primary-button:hover,
html[data-theme] .primary-button:focus-visible {
  border-color: #d4b04d;
  color: #14202e;
  background: #d4b04d;
}

html[data-theme] .text-link {
  color: var(--accent-text);
}

/* Photo overlays and premium printed-card treatments deliberately stay dark. */
html[data-theme] .service-card,
html[data-theme] .service-card-heading,
html[data-theme] .service-card-label,
html[data-theme] .detail-hero,
html[data-theme] .principle-card-dark,
html[data-theme] .voucher-preview,
html[data-theme] .membership-card-face {
  color: #ffffff;
}

html[data-theme] .detail-hero .eyebrow,
html[data-theme] .principle-card-dark .eyebrow,
html[data-theme] .home-statement:not(.home-statement-alt) .eyebrow {
  color: #b7c9e0;
}

html[data-theme] .membership-card-face,
html[data-theme] .voucher-preview,
html[data-theme] .payment-step {
  color-scheme: dark;
}

html[data-theme] .detail-group,
html[data-theme] .service-subbody,
html[data-theme] .callback-summary,
html[data-theme] .callback-form,
html[data-theme] .callback-sign-in,
html[data-theme] .voucher-options,
html[data-theme] .voucher-amounts input + span,
html[data-theme] .voucher-delivery label > span {
  color: var(--ink);
  background: var(--surface);
}

html[data-theme] .service-container,
html[data-theme] .service-body {
  color: var(--ink);
  border-color: var(--line);
  background-color: var(--surface);
}

html[data-theme] .service-body p {
  color: var(--ink-soft);
}

html[data-theme] .service-body li,
html[data-theme] .service-subcontainer {
  color: var(--ink);
}

html[data-theme] .service-subcontainer {
  background: var(--field-surface);
}

html[data-theme] .service-subcontainer summary::after {
  color: var(--theme-link);
}

html[data-theme] .service-subcontainer[open] summary {
  color: #ffffff;
  background: var(--forest);
}

html[data-theme] .service-subcontainer[open] summary::after,
html[data-theme] .service-subcontainer[open] summary small {
  color: #b7c9e0;
}

html[data-theme] .example-block,
html[data-theme] .example-block-dark {
  color: var(--ink-soft);
  border-color: var(--line);
  background: var(--surface);
}

html[data-theme] .feedback-notice,
html[data-theme] .review-form {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--theme-shadow);
}

html[data-theme] .feedback-notice p,
html[data-theme] .feedback-heading > p:last-child,
html[data-theme] .rating-row > span,
html[data-theme] .review-form label small {
  color: var(--ink-soft);
}

html[data-theme] .rating-fieldset legend,
html[data-theme] .review-form label {
  color: var(--ink);
}

html[data-theme] .review-consent {
  color: var(--ink-soft) !important;
}

html[data-theme] .star-rating label {
  color: #8592a5;
}

html[data-theme] .star-rating label:hover,
html[data-theme] .star-rating label:hover ~ label,
html[data-theme] .star-rating input:checked ~ label,
html[data-theme] .star-rating input:focus-visible + label {
  color: var(--accent-text);
}

html[data-theme] .review-form input,
html[data-theme] .review-form textarea,
html[data-theme] .review-form select,
html[data-theme] .callback-form input,
html[data-theme] .callback-form select,
html[data-theme] .callback-form textarea {
  color: var(--ink);
  border-color: var(--line);
  background: var(--field-surface);
}

html[data-theme] .review-form input::placeholder,
html[data-theme] .review-form textarea::placeholder,
html[data-theme] .callback-form input::placeholder,
html[data-theme] .callback-form textarea::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

html[data-theme] .review-submit:hover,
html[data-theme] .review-submit:focus-visible,
html[data-theme] .review-status {
  color: var(--accent-text);
}

html[data-theme] .membership-dialog {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

html[data-theme] .membership-dialog-close {
  color: var(--ink);
  border-color: var(--line);
}

html[data-theme] .membership-dialog-price {
  color: var(--theme-link);
}

html[data-theme] .membership-dialog-duration,
html[data-theme] .membership-payment-options small {
  color: var(--ink-soft);
}

html[data-theme] .membership-payment-options label > span {
  border-color: var(--line);
  background: var(--field-surface);
}

html[data-theme] .membership-payment-options input:checked + span {
  border-color: var(--accent);
  background: var(--selected-surface);
  box-shadow: inset 0 0 0 1px var(--accent);
}

html[data-theme] .membership-payment-continue:not(:disabled) {
  color: var(--on-accent);
  border-color: var(--accent);
  background: var(--accent);
}

html[data-theme] .membership-payment-continue:disabled {
  color: var(--ink-soft);
  border-color: var(--line);
  background: var(--surface-soft);
}

/* Invoice panels retain navy branding; payment choices follow the active theme. */
html[data-theme] #payment-options.dashboard-section,
html[data-theme] .payment-page {
  color: var(--ink);
  background: var(--paper);
}

html[data-theme] .payment-heading > .eyebrow,
html[data-theme] .payment-provider,
html[data-theme] .payment-step-number {
  color: var(--accent-text);
}

html[data-theme] .payment-heading h2,
html[data-theme] .payment-page .payment-heading h1,
html[data-theme] .payment-panel .payment-step-title,
html[data-theme] .payment-choice-name,
html[data-theme] .payment-icon-group,
html[data-theme] .payment-instructions h4,
html[data-theme] .payment-phone,
html[data-theme] .payment-help a {
  color: var(--theme-link);
}

html[data-theme] .payment-step .payment-step-title {
  color: #ffffff;
}

html[data-theme] .payment-step .payment-step-number {
  color: #b7c9e0;
}

html[data-theme] .payment-choice > input:checked + .payment-choice-body {
  background: var(--selected-surface);
}

html[data-theme] .payment-choice-select {
  border-color: var(--ink-soft);
}

html[data-theme] .payment-choice > input:checked + .payment-choice-body .payment-choice-select {
  border-color: var(--accent);
  background: var(--accent);
}

html[data-theme] .payment-choice > input:checked + .payment-choice-body .payment-choice-select::after {
  background: var(--on-accent);
}

html[data-theme] .payment-instructions {
  background: var(--surface);
}

html[data-theme] .payment-phone:focus-visible {
  outline-color: var(--accent);
}

html[data-theme] .site-footer {
  color: var(--ink-soft);
  background: var(--section-alt);
  border-top: 1px solid var(--line);
}

html[data-theme] .footer-column h2 {
  color: var(--ink);
}

html[data-theme] .footer-column a {
  color: var(--ink-soft);
}

html[data-theme] .footer-column a:hover,
html[data-theme] .footer-column a:focus-visible {
  color: var(--theme-link);
}

html[data-theme] .footer-bottom {
  border-color: #d4af37;
}

html[data-theme] :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

html[data-theme] .membership-payment-options input:focus-visible + span,
html[data-theme] .voucher-amounts input:focus-visible + span,
html[data-theme] .voucher-delivery input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* The finish belongs to cards only, never to a page or section background. */
.concrete-card-light {
  --concrete-base: #d9dcdf;
  --concrete-wash: rgba(226, 228, 231, .83);
  --concrete-ink: #172335;
  --concrete-muted: #3e4a59;
  --concrete-line: #a7afb9;
  --concrete-detail: #31475f;
}

.concrete-card-medium {
  --concrete-base: #a1a5aa;
  --concrete-wash: rgba(172, 176, 181, .82);
  --concrete-ink: #111d2e;
  --concrete-muted: #263446;
  --concrete-line: #8d949e;
  --concrete-detail: #203349;
}

.concrete-card-dark {
  --concrete-base: #3d4148;
  --concrete-wash: rgba(52, 56, 63, .84);
  --concrete-ink: #f6f7f9;
  --concrete-muted: #e1e4e9;
  --concrete-line: #59616d;
  --concrete-detail: #d4deeb;
}

html[data-theme] .concrete-card {
  --ink: var(--concrete-ink);
  --ink-soft: var(--concrete-muted);
  --theme-link: var(--concrete-detail);
  --accent: var(--concrete-detail);
  color: var(--concrete-ink);
  border: 1px solid var(--concrete-line);
  background-color: var(--concrete-base);
  background-image: linear-gradient(var(--concrete-wash), var(--concrete-wash)), url("assets/concrete-texture.svg");
  background-size: auto, 560px 560px;
  background-position: center, 0 0;
  background-repeat: repeat;
  box-shadow: var(--theme-shadow);
}

html[data-theme] .concrete-card-medium {
  background-position: center, 130px 70px;
}

html[data-theme] .concrete-card-dark {
  background-position: center, -80px 180px;
}

html[data-theme] .concrete-card .eyebrow {
  color: var(--concrete-detail);
}

/* Keep a full-viewport scene visible behind every frame and the floating nav. */
html[data-theme] body #main-content,
html[data-theme] body #main-content > .home-overview,
html[data-theme] body #main-content > .dashboard-section {
  min-height: 100dvh;
}

/* Frames begin at the viewport edge; only their content clears the floating nav. */
html[data-theme] body #main-content > .home-overview,
html[data-theme] body #main-content > .dashboard-section {
  padding-top: calc(var(--site-header-height, 98px) + 32px);
  padding-bottom: 32px;
}

/* The hero keeps room at the bottom for the Explore arrow, under the headline and buttons. */
html[data-theme] body #main-content > .logo-showcase {
  padding-top: calc(var(--site-header-height, 98px) + 12px);
  padding-bottom: clamp(118px, 16vh, 144px);
}

html[data-theme] body #main-content.contact-page,
html[data-theme] body #main-content.payment-page,
html[data-theme] body #main-content > .services-hero,
html[data-theme] body #main-content > .detail-hero,
html[data-theme] body #main-content > .callback-page {
  padding-top: calc(var(--site-header-height, 98px) + 40px);
}

html[data-theme] body.has-construction-scene #main-content,
html[data-theme] body.has-construction-scene #main-content > section:not(.detail-hero),
html[data-theme] body.has-construction-scene #main-content > .services-hero {
  background: transparent;
}

/* The account pages add the body class only once their script starts, so they match on their own wrapper too: without it the scene changes brightness just after the page appears. */
html[data-theme="light"] body.has-construction-scene .home-construction-scene::after,
html[data-theme="light"] .atte-client-shell .home-construction-scene::after {
  background: rgba(237, 240, 242, .48);
}

html[data-theme="dark"] body.has-construction-scene .home-construction-scene::after,
html[data-theme="dark"] .atte-client-shell .home-construction-scene::after {
  background: rgba(13, 23, 39, .7);
}

/* Careers on the home page: a little more tint over the scene, so the text beside the cards stays easy to read. */
html[data-theme="light"] {
  --crew-gold: #7d5f10;
}

html[data-theme="dark"] {
  --crew-gold: #e0bd5c;
}

html[data-theme="light"] body.has-construction-scene #main-content > #careers {
  background: rgba(237, 240, 242, .62);
}

html[data-theme="dark"] body.has-construction-scene #main-content > #careers {
  background: rgba(13, 23, 39, .3);
}

@media (max-width: 1240px) {
  html[data-theme] .primary-navigation {
    border-color: var(--line);
    background: var(--menu-surface);
  }
}
/* Gold sun indicates the available light-mode action, including at rest. */
html[data-theme] .star-rating label {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.25px #d4af37;
}
html[data-theme] .star-rating label:hover,
html[data-theme] .star-rating label:hover ~ label,
html[data-theme] .star-rating input:checked ~ label,
html[data-theme] .star-rating input:focus-visible + label {
  color: #d4af37;
  -webkit-text-fill-color: #d4af37;
  -webkit-text-stroke: 1.25px #d4af37;
}
html[data-theme="dark"] :is(.contact-region-copy, .payment-heading,
  .membership-heading, .feedback-heading, .voucher-heading, .callback-copy) {
  background: linear-gradient(135deg, rgba(30, 49, 72, .42), rgba(12, 26, 44, .25));
  border: 1px solid rgba(183, 201, 224, .22);
  border-radius: 18px;
  padding: clamp(20px, 2vw, 30px);
  backdrop-filter: blur(24px) saturate(.75);
  -webkit-backdrop-filter: blur(24px) saturate(.75);
  box-shadow: inset 0 1px 0 rgba(224, 234, 247, .1), 0 8px 30px rgba(0, 0, 0, .12);
}
html[data-theme="dark"] :is(.payment-help, .payment-next-empty) {
  background: linear-gradient(135deg, rgba(30, 49, 72, .42), rgba(12, 26, 44, .25));
  border: 1px solid rgba(183, 201, 224, .22);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(24px) saturate(.75);
  -webkit-backdrop-filter: blur(24px) saturate(.75);
}
html[data-theme] body .voucher-heading {
  padding: 18px 24px;
  margin-bottom: 22px;
  gap: 24px;
}
html[data-theme] .voucher-heading h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin-bottom: 10px;
}
html[data-theme] .voucher-heading .dashboard-intro {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 760px;
  margin: 0;
}
/* Careers form problems: a lighter red that stays readable on the dark form. */
html[data-theme="dark"] .careers-error { color: #ff9b8f; }
html[data-theme="dark"] .careers-form .is-invalid .careers-choices span,
html[data-theme="dark"] .careers-form .is-invalid > :is(input, select, textarea) { border-color: #ff9b8f; }

html[data-theme="dark"] .theme-toggle .theme-icon-sun {
  color: #d4af37;
}

/* Local reading surfaces preserve the animated site without competing with copy. */
html[data-theme="light"] :is(.contact-region-copy, .payment-heading,
  .membership-heading, .feedback-heading, .voucher-heading, .callback-copy) {
  background: linear-gradient(135deg, rgba(226, 234, 242, .3), rgba(188, 202, 216, .14));
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 18px;
  padding: clamp(20px, 2vw, 30px);
  backdrop-filter: blur(24px) saturate(.75);
  -webkit-backdrop-filter: blur(24px) saturate(.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 8px 30px rgba(16, 34, 53, .08);
  color: #142338;
}
html[data-theme="light"] :is(.contact-region-copy, .payment-heading,
  .membership-heading, .feedback-heading, .voucher-heading, .callback-copy)
  :is(p, .dashboard-intro, small) {
  color: #36465b;
}
html[data-theme="light"] :is(.contact-region-copy, .payment-heading,
  .membership-heading, .feedback-heading, .voucher-heading, .callback-copy)
  :is(h1, h2, h3, strong, a) {
  color: #142338;
}
html[data-theme="light"] :is(.payment-help, .payment-next-empty) {
  background: linear-gradient(135deg, rgba(226, 234, 242, .3), rgba(188, 202, 216, .14));
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 12px;
  padding: 16px 20px;
  color: #36465b;
  backdrop-filter: blur(24px) saturate(.75);
  -webkit-backdrop-filter: blur(24px) saturate(.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 8px 30px rgba(16, 34, 53, .08);
}
