/* CreteMedia unified design system – November 2026
   Applies after the earlier page styles. A single 14px radius, common buttons,
   clear text/background contrast, consistent spacing and warm navy night theme. */
:root {
  --cm-ui-radius: 14px;
  --cm-ui-ink: #183246;
  --cm-ui-muted: #486170;
  --cm-ui-paper: #fbfaf7;
  --cm-ui-card: #ffffff;
  --cm-ui-border: #d6e4e9;
  --cm-ui-primary: #086b79;
  --cm-ui-primary-hover: #074c5a;
  --cm-ui-accent: #087481;
  --cm-ui-night: #12283b;
  --cm-ui-night-card: #203e56;
  --cm-ui-night-border: #416079;
  --cm-ui-night-text: #f5f9fd;
  --cm-ui-night-muted: #d5e4ed;
  --cm-bg: #fbfaf7;
  --cm-surface: #ffffff;
  --cm-card: #f0f5f5;
  --cm-text: #183246;
  --cm-muted: #486170;
  --cm-border: #d6e4e9;
  --cm-header: rgba(255,255,255,.97);
  --cm-mutedbg: #edf4f5;
}
html[data-theme="dark"] {
  --cm-ui-paper: #131519;
  --cm-ui-card: #22252b;
  --cm-ui-ink: #f5f9fd;
  --cm-ui-muted: #d5e4ed;
  --cm-ui-border: #424a52;
  --cm-ui-accent: #82d9d9;
  --cm-bg: #131519;
  --cm-surface: #22252b;
  --cm-card: #22252b;
  --cm-text: #f5f9fd;
  --cm-muted: #d5e4ed;
  --cm-border: #424a52;
  --cm-header: rgba(23,21,28,.97);
  --cm-mutedbg: #292d34;
  --ink: #f5f9fd;
  --muted: #d5e4ed;
  --sand: #22252b;
  --line: #424a52;
  --navy: #f5f9fd;
  --dark: #f5f9fd;
}
body { color: var(--cm-ui-ink); }
html[data-theme="dark"] body { background: var(--cm-ui-night) !important; color: var(--cm-ui-night-text) !important; }
/* Neutral background surfaces. Existing scene photos retain their overlays. */
html[data-theme="dark"] body :is(.wd-hero,.video-hero,.tour-hero,.gd-hero) { background-color: #1f1e28 !important; }
html[data-theme="dark"] body :is(.film-types,.faq-section,.tour-faq,.tour-uses,.services-section,.gd-section-alt,.about) { background-color: #1f1e28 !important; }
html[data-theme="dark"] body :is(.film-process,.tour-process,.tour-intro,.tour-section,.section,.cta-area,.gd-section,.gd-intro,.gd-process-section,.contact) { background-color: #131519 !important; }
/* Unified card outlines, corners and padding. Cards with photos keep their image layout. */
body :is(.service-card,.focus-card,.film-card,.story-quote,.process-card,.faq-item,.tour-card,.tour-block,.tour-note,.tour-step,.quote-card,.feature,.step,.gd-card,.gd-step,.gd-panel,.gd-faq-item,.gd-visual-card,.browser-card,.cta-box,.contact-box,.gd-cta) {
  border-radius: var(--cm-ui-radius) !important;
}
body :is(.film-card,.story-quote,.process-card,.tour-card,.tour-block,.tour-note,.tour-step,.quote-card,.feature,.gd-card,.gd-step,.gd-panel,.gd-visual-card) {
  padding: 30px !important;
  box-sizing: border-box;
}
body .process-card { border-top: 3px solid #4dc1c3 !important; }
body :is(.process-grid,.tour-process-grid,.gd-process,.film-grid,.feature-grid,.tour-cards,.gd-grid) { gap: 20px !important; }
body .process-card h3,body .tour-step h3,body .gd-step h3 { margin:0 0 12px !important; }
body .faq-item { overflow: hidden; border: 1px solid var(--cm-ui-border) !important; margin-bottom: 12px !important; }
body .faq-item summary { padding: 22px 26px !important; line-height: 1.4 !important; }
body .faq-item p { padding: 0 26px 24px !important; margin:0 !important; }
body .gd-faq details { border-radius: var(--cm-ui-radius) !important; padding:20px 25px !important; margin-bottom:12px; }
body .gd-faq details p { padding: 7px 0 0 !important; }
body .faq-grid { background:transparent !important; }
body .faq-grid>div { background: transparent !important; }
body .cta-box,body .gd-cta,body .contact-box { padding: 52px 55px !important; }
/* Light surfaces and readable headings. */
html:not([data-theme="dark"]) body :is(.process-card,.tour-step,.gd-step) {
  background: #f0f6f7 !important;
  color: #193448 !important;
  border-color: #cbdfe4 !important;
}
html:not([data-theme="dark"]) body :is(.process-card,.tour-step,.gd-step) :is(h3,p) { color: #193448 !important; }
html:not([data-theme="dark"]) body :is(.faq-item,.film-card,.tour-card,.tour-block,.tour-note,.quote-card,.feature,.gd-card,.gd-panel,.gd-faq details) {
  background-color: #fff !important;
  color: #193448 !important;
  border-color:#d4e3e8 !important;
}
html:not([data-theme="dark"]) body :is(.faq-item,.film-card,.tour-card,.tour-block,.tour-note,.quote-card,.feature,.gd-card,.gd-panel,.gd-faq details) :is(h2,h3,p,summary,strong) { color: #193448 !important; }
/* Dark cards and contrast: avoid inherited turquoise/dark text on dark navy. */
html[data-theme="dark"] body :is(.process-card,.tour-step,.gd-step,.faq-item,.film-card,.story-quote,.tour-card,.tour-block,.tour-note,.quote-card,.feature,.gd-card,.gd-panel,.gd-faq details,.gd-visual-card) {
  background: #22252b !important;
  border: 1px solid #424a52 !important;
  color: #f5f9fd !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body :is(.process-card,.tour-step,.gd-step) { border-top: 3px solid #65d1d4 !important; }
html[data-theme="dark"] body :is(.process-card,.tour-step,.gd-step,.faq-item,.film-card,.story-quote,.tour-card,.tour-block,.tour-note,.quote-card,.feature,.gd-card,.gd-panel,.gd-faq details,.gd-visual-card) :is(h2,h3,p,summary,strong,li,span) {
  color: #f5f9fd !important;
}
html[data-theme="dark"] body :is(.process-card,.tour-step,.gd-step,.faq-item,.film-card,.story-quote,.tour-card,.tour-block,.tour-note,.quote-card,.feature,.gd-card,.gd-panel,.gd-faq details,.gd-visual-card) p {
  color: #d9e6ec !important;
  line-height:1.65 !important;
}
html[data-theme="dark"] body :is(.hero-left,.video-copy,.tour-hero-content,.gd-hero-text) :is(h1,h2,p,span,small) { color: #f5f9fd !important; }
html[data-theme="dark"] body :is(.strip-item,.video-strip,.strip,.tour-ribbon,.gd-strap) { color: #f2f8fc !important; }
html[data-theme="dark"] body :is(.overline,.gd-overline,.section-kicker,.gd-kicker) { color:#9ce5e0 !important; }
html[data-theme="dark"] body :is(.section h2,.section-title,.gd-section h2,.tour-section h2,.tour-intro h2,.tour-process h2,.tour-faq h2,.faq-section h2,.film-process h2) {color:#f5f9fd !important;}
html[data-theme="dark"] body :is(.section-copy,.lead,.gd-lead,.tour-lead,.hero-lead,.gd-section p,.tour-section p,.tour-intro p,.film-process p,.faq-section p) { color:#d7e5ed !important; }
/* CTA bands are always warm navy, including light mode: never light-on-light. */
body :is(.cta-box,.contact-box,.gd-cta) { background:linear-gradient(120deg,#245471,#173a54) !important; color:#fff !important; }
body :is(.cta-box,.contact-box,.gd-cta) :is(h2,p,.overline,.gd-overline,.section-kicker,.email-line,.email-line a) { color:#fff !important; }
body :is(.cta-box,.contact-box,.gd-cta) :is(.gd-lead,.cta-eyebrow) { color:#effbfc !important; }
/* One button style for all pages, including outline and final enquiry buttons.
   Specificity and !important override inconsistent page-local styles. */
body a:is(.button,.btn,.gd-btn,.band-cta),
body :is(.cta-box,.contact-box,.gd-cta) a:is(.button,.btn,.gd-btn),
html[data-theme="dark"] body a:is(.button,.btn,.gd-btn,.band-cta),
html[data-theme="dark"] body :is(.cta-box,.contact-box,.gd-cta) a:is(.button,.btn,.gd-btn) {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:52px !important;
  padding:14px 24px !important;
  border-radius:var(--cm-ui-radius) !important;
  border:1px solid #086b79 !important;
  background:#086b79 !important;
  color:#ffffff !important;
  font-size:15px !important;
  font-weight:750 !important;
  line-height:1.35 !important;
  text-decoration:none !important;
  box-shadow:none !important;
  transition:background .2s ease, transform .2s ease !important;
}
body a:is(.button,.btn,.gd-btn,.band-cta) :is(span,svg),
html[data-theme="dark"] body a:is(.button,.btn,.gd-btn,.band-cta) :is(span,svg) {
  color:#ffffff !important;
  fill:none;
  stroke:currentColor;
}
body a:is(.button,.btn,.gd-btn,.band-cta):hover,
html[data-theme="dark"] body a:is(.button,.btn,.gd-btn,.band-cta):hover { background:#074c5a !important; border-color:#074c5a !important; transform:translateY(-2px); }
body a:is(.button,.btn,.gd-btn,.band-cta):focus-visible { outline: 3px solid #ffc77a !important; outline-offset:3px !important; }
/* Make brand/logo and footer align consistently. */
body .cm-footer__brand-logo { display:flex !important; align-items:center !important; justify-content:flex-start !important; padding:0 !important; margin:0 0 14px !important; background:transparent !important; box-shadow:none !important; }
body .cm-footer__brand-logo img { display:block !important; margin:0 !important; max-width:260px !important; width:100% !important; height:auto !important; }
html[data-theme="dark"] body .cm-footer { background:linear-gradient(130deg,#15131b,#1d1c24) !important; }
html[data-theme="dark"] body .cm-footer :is(.cm-footer__tag,.cm-footer__intro,.cm-footer__detail,.cm-footer__bottom,.cm-footer__heading) { color:#e7f1f6 !important; }
/* Remove arbitrary mixed rectangle corners on banners and graphics. */
body :is(.film-scenic,.place-section,.gd-scenic) { border-radius:0 !important; }
body :is(.service-card,.focus-card) { overflow:hidden; }
@media (max-width:800px){
 body :is(.film-card,.story-quote,.process-card,.tour-card,.tour-block,.tour-note,.tour-step,.quote-card,.feature,.gd-card,.gd-step,.gd-panel) { padding:24px !important; }
 body :is(.cta-box,.contact-box,.gd-cta) { padding:34px 26px !important; }
 body .faq-item summary { padding:20px 22px !important; }
 body .faq-item p { padding:0 22px 22px !important; }
}
@media (prefers-reduced-motion: reduce){body a:is(.button,.btn,.gd-btn,.band-cta){transition:none!important;transform:none!important}}

/* Final specificity corrections for legacy CTA and FAQ rules. */
html body.cm-photo-page .cta-box .cta-actions a.button,
html body.cm-video-page .cta-box .cta-actions a.button,
html body.cm-3d-page .cta-box .cta-actions a.button,
html body.cm-web-page .cta-box .cta-linkgroup a.button,
html body.cm-graphic-page .gd-cta a.gd-btn,
html body.cm-home-page .contact-box a.btn,
html[data-theme="dark"] body.cm-photo-page .cta-box .cta-actions a.button,
html[data-theme="dark"] body.cm-video-page .cta-box .cta-actions a.button,
html[data-theme="dark"] body.cm-3d-page .cta-box .cta-actions a.button,
html[data-theme="dark"] body.cm-web-page .cta-box .cta-linkgroup a.button,
html[data-theme="dark"] body.cm-graphic-page .gd-cta a.gd-btn,
html[data-theme="dark"] body.cm-home-page .contact-box a.btn {
  background:#086b79 !important;
  border:1px solid #086b79 !important;
  color:white !important;
  border-radius:14px !important;
}
html body :is(.cta-box,.contact-box,.gd-cta) a:is(.button,.btn,.gd-btn) :is(span,svg),
html[data-theme="dark"] body :is(.cta-box,.contact-box,.gd-cta) a:is(.button,.btn,.gd-btn) :is(span,svg) {
  color:#fff !important;
}
html body.cm-photo-page .cta-box .cta-actions a.button:hover,
html body.cm-video-page .cta-box .cta-actions a.button:hover,
html body.cm-3d-page .cta-box .cta-actions a.button:hover,
html body.cm-web-page .cta-box .cta-linkgroup a.button:hover,
html body.cm-graphic-page .gd-cta a.gd-btn:hover,
html body.cm-home-page .contact-box a.btn:hover,
html[data-theme="dark"] body.cm-photo-page .cta-box .cta-actions a.button:hover,
html[data-theme="dark"] body.cm-video-page .cta-box .cta-actions a.button:hover,
html[data-theme="dark"] body.cm-3d-page .cta-box .cta-actions a.button:hover,
html[data-theme="dark"] body.cm-web-page .cta-box .cta-linkgroup a.button:hover,
html[data-theme="dark"] body.cm-graphic-page .gd-cta a.gd-btn:hover,
html[data-theme="dark"] body.cm-home-page .contact-box a.btn:hover {
  background:#074c5a !important;
  border-color:#074c5a !important;
}
html[data-theme="dark"] body .faq-item summary::after {
  background:transparent !important;
  color:#8ce3e1 !important;
}
html[data-theme="dark"] body .faq-grid { background:transparent !important; border-color:transparent!important; }
/* Text inside CTA buttons: legacy span rules must never turn it dark on teal. */
html body.cm-photo-page .cta-box .cta-actions a.button span,
html body.cm-video-page .cta-box .cta-actions a.button span,
html body.cm-3d-page .cta-box .cta-actions a.button span,
html body.cm-web-page .cta-box .cta-linkgroup a.button span,
html[data-theme="dark"] body.cm-photo-page .cta-box .cta-actions a.button span,
html[data-theme="dark"] body.cm-video-page .cta-box .cta-actions a.button span,
html[data-theme="dark"] body.cm-3d-page .cta-box .cta-actions a.button span,
html[data-theme="dark"] body.cm-web-page .cta-box .cta-linkgroup a.button span {
  color:#ffffff !important;
}
/* FAQ plus/minus signs are glyphs, not filled blocks. */
html[data-theme="dark"] body.cm-photo-page .faq-item summary::after,
html[data-theme="dark"] body.cm-video-page .faq-item summary::after,
html[data-theme="dark"] body.cm-3d-page .faq-item summary::after {
  background:none !important;
  color:#8ce3e1 !important;
  font-size:24px !important;
  font-weight:500 !important;
}

html[data-theme="dark"] {--cm-ui-night:#131519;--cm-ui-night-card:#22252b;--cm-ui-night-border:#424a52;}
