/* Derham Productions brand book, applied to derhamproductions.com (dprod theme).
   Loaded after the theme's own styles (partials/style.html.twig, atemcalcstyle), so these win.
   Tokens and rules: D:\CLAUDE\Derham Productions Brand (and the Design System in Claude). */

@font-face { font-family: 'Cal Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cal-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'Cal Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cal-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --brand: #438dcc;
  --brand-strong: #316b9c;
  --brand-light: #75aada;
  --brand-soft: rgba(67, 141, 204, 0.12);
  --on-brand: #ffffff;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #3b4559;
  --muted: #5d687c;
  --line: #e2e8f0;
  --ink: #0a1120;
  --ink-2: #111b2f;
  --ink-raised: #14203a;
  --ink-text: #e9eef7;
  --ink-muted: #9eabc2;
  --ink-line: rgba(255, 255, 255, 0.1);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 30px 80px -20px rgba(2, 8, 23, 0.45);
  --shadow-brand: 0 8px 24px -8px rgba(67, 141, 204, 0.7);
  --radius-sm: 9px;
  --radius-icon: 12px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --font-display: 'Cal Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --space-section: clamp(64px, 9vw, 120px);
  --glow: radial-gradient(60% 70% at 88% 0%, rgba(67, 141, 204, 0.32), transparent 70%), radial-gradient(45% 60% at 0% 100%, rgba(67, 141, 204, 0.18), transparent 70%);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-soft: rgba(67, 141, 204, 0.18);
    --brand-strong: #75aada;            /* links and labels on dark grounds use brand-light */
    --bg: #0b1222;
    --bg-soft: #0f182b;
    --surface: #121c31;
    --text: #e8edf6;
    --text-2: #c3cddd;
    --muted: #93a0b6;
    --line: #22304a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
}
a { color: var(--text-2); transition: color .15s ease, background-color .15s ease; }
a:hover, a:active, a:focus { color: var(--brand-strong); }
:focus-visible { outline: 3px solid rgba(67, 141, 204, 0.6); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-soft); }
/* Links in running text */
.service-body a, .about-content a, #contact.contact-page .col-lg-6 a, .section-description a {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#preloader { background-color: var(--bg); }

/* ---------- Buttons: pills ---------- */
#hero .actions a, #hero .btn-get-started, .service-cta a, .service-showcase-links a, #subscribe .subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  padding: .95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: var(--shadow-brand);
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
#hero .actions a:hover, #hero .btn-get-started:hover, .service-cta a:hover, .service-showcase-links a.primary:hover, #subscribe .subscribe-btn:hover {
  background: var(--brand-strong);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-1px);
}
@media (prefers-color-scheme: dark) {
  #hero .actions a:hover, #hero .btn-get-started:hover, .service-cta a:hover, .service-showcase-links a.primary:hover { background: #316b9c; }
}
/* Outline (secondary) pills */
.service-showcase-links a:not(.primary) {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}
.service-showcase-links a:not(.primary):hover { background: var(--bg-soft); color: var(--text); border-color: var(--line); transform: translateY(-1px); }
.service-cta a + a {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
.service-cta a + a:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }

.back-to-top {
  background: var(--brand);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: var(--shadow-brand);
}
.back-to-top:hover { background: var(--brand-strong); }

/* ---------- Header ---------- */
#header, #header.fixed-top {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  height: 72px;
}
@media (prefers-color-scheme: dark) {
  #header, #header.fixed-top { background: rgba(11, 18, 34, 0.86); border-bottom-color: rgba(34, 48, 74, 0.8); }
}
@media (max-width: 992px) { #header, #header.fixed-top { height: 64px; } }
.scrolled-offset { margin-top: 72px; }
@media (max-width: 992px) { .scrolled-offset { margin-top: 64px; } }
#header .logo img, #header .logo .brand-logo { height: 35px; width: auto; display: block; }
.navbar a, .navbar a:focus {
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 500;
  color: var(--text-2);
  padding: .5rem .85rem;
  margin-left: .2rem;
  border-radius: 999px;
}
.navbar a:hover, .navbar li:hover > a { color: var(--text); background: var(--bg-soft); }
.navbar .active, .navbar .active:focus { color: var(--text); background: var(--brand-soft); }
.mobile-nav-toggle { color: var(--text); }
.navbar-mobile { background: rgba(3, 8, 18, 0.55); }
.navbar-mobile .mobile-nav-toggle { color: #ffffff; }
.navbar-mobile ul {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  bottom: auto;
}
.navbar-mobile a, .navbar-mobile a:focus { color: var(--text-2); font-size: 1.05rem; padding: .8rem 1rem; margin: 0; border-radius: var(--radius-sm); }
.navbar-mobile a:hover, .navbar-mobile .active, .navbar-mobile li:hover > a { color: var(--text); background: var(--brand-soft); }

/* ---------- Hero (home) ---------- */
/* The page background is opaque now, so the video sits above it (not behind, at z-index -99) and the text above the video. */
#hero { position: relative; background: var(--ink) center / cover no-repeat; }
.hero-video video { z-index: 0; }
#hero .hero-container { position: relative; z-index: 1; background: var(--glow), rgba(10, 17, 32, 0.62); }
#hero .hero-logo { margin: 0 20px 8px; }
#hero .hero-logo img { width: min(340px, 78vw); max-width: none; height: auto; }
#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.12;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 28px 16px 12px;
}
#hero h2 {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: #c9d3e4;
  margin: 0 16px 40px;
}
#hero h2 span { color: #ffffff; border-bottom: 2px solid var(--brand); }

/* ---------- Section heads ---------- */
section { position: relative; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
  margin-bottom: 1rem;
}
.section-title-divider { display: none; }
.section-description {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.section-description a.section-link, a.section-link {
  display: inline-block;
  font-size: .95rem;
  font-weight: 600;
  color: var(--brand-strong);
  white-space: nowrap;
}

/* ---------- About (home and /about) ---------- */
#about { background: var(--bg); padding: var(--space-section) 0; }
#about .about-content { background: transparent; }
#about .about-title { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; color: var(--text); }
#about .about-text { color: var(--text-2); line-height: 1.65; }
#about .about-img .ratio, .about-video { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
@media (max-width: 991px) { #about .about-img { margin-bottom: 32px; } }
.about-content h2, .about-content h3 { margin-top: .4rem; }
.about-content p { color: var(--text-2); }

/* ---------- Service cards (home and /services) ---------- */
#services { background: var(--bg-soft); padding: var(--space-section) 0; }
#services .service-item { margin-bottom: 18px; }
#services-index { background: var(--bg); padding: var(--space-section) 0 calc(var(--space-section) - 18px); }
#services-index .col-lg-4 { margin-bottom: 18px; }
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px;
  margin-bottom: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-2);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  border-color: rgba(67, 141, 204, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text-2);
}
.service-card .service-icon, #services .service-card .service-icon {
  float: none;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-icon);
  border: 0;
  background: var(--brand-soft);
  margin-bottom: 1rem;
}
.service-card .service-icon i, #services .service-card .service-icon i { color: var(--brand-strong); font-size: 1.3rem; line-height: 1; }
#services .service-item:hover .service-icon { background: var(--brand-soft); }
#services .service-item:hover .service-icon i { color: var(--brand-strong); }
.service-card h2, .service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  text-transform: none;
  color: var(--text);
  margin: 0 0 .45rem;
}
.service-card p { color: var(--muted); font-size: .98rem; line-height: 1.6; margin: 0 0 1rem; }
.service-card .service-more { margin-top: auto; color: var(--brand-strong); font-weight: 600; font-size: .95rem; }

/* ---------- Studios (always dark) ---------- */
#studios { background: var(--glow), var(--ink); padding: var(--space-section) 0; }
#studios .section-title { color: var(--ink-text); }
#studios .section-description { color: var(--ink-muted); }
#studios .section-description a.section-link { color: #87b5df; }
#studios .profile .pic {
  border: 0;
  border-radius: var(--radius);
  width: auto;
  max-width: 400px;
  height: auto;
  box-shadow: var(--shadow-lg);
}
#studios .profile .pic img { width: 100%; display: block; }
#studios .profile h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; color: #ffffff; margin-top: 4px; }
#studios .profile span { color: var(--ink-muted); }
#studios .quote {
  background: var(--ink-raised);
  color: var(--ink-text);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  font-size: 1rem;
  line-height: 1.65;
}
#studios .quote ul { padding-left: 0; margin: 0; }
#studios .quote ul li { position: relative; padding-left: 32px; margin-bottom: .6rem; }
#studios .quote ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: .15em;
  width: 22px;
  height: 22px;
  margin-left: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(67, 141, 204, 0.22);
  color: #87b5df;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Portfolio (Instagram) ---------- */
#portfolio { background: var(--bg); padding: var(--space-section) 0 calc(var(--space-section) - 30px); }
#portfolio .portfolio-item img { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
#portfolio .portfolio-item .portfolio-info {
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 14px 16px;
}
@media (prefers-color-scheme: dark) { #portfolio .portfolio-item .portfolio-info { background: rgba(18, 28, 49, 0.9); } }
#portfolio .portfolio-item .portfolio-info p { color: var(--muted); font-size: .9rem; line-height: 1.5; }
#portfolio .portfolio-item .portfolio-info a { color: var(--brand-strong); font-weight: 600; font-size: .9rem; }

/* ---------- Contact (home and /contact) ---------- */
#contact { background: var(--bg-soft); padding: var(--space-section) 0; }
#contact.contact-page { background: var(--bg); }
#contact .info { color: var(--text-2); }
#contact .info i { color: var(--brand); font-size: 26px; }
#contact .info p { color: var(--text-2); padding-left: 46px; }
#contact .info a { color: var(--text-2); }
#contact .info a:hover { color: var(--brand-strong); }
#contact iframe { border-radius: var(--radius) !important; border: 1px solid var(--line) !important; }

/* ---------- Inner page banner ---------- */
.page-banner {
  background: var(--glow), var(--ink);
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
}
.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 14px;
}
.page-banner p { color: #c9d3e4; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.65; max-width: 44em; }
.breadcrumbs-list { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.breadcrumbs-list a { color: var(--ink-muted); }
.breadcrumbs-list a:hover { color: #ffffff; }
.breadcrumbs-list li + li::before { color: #445069; }
.breadcrumbs-list li[aria-current] { color: #87b5df; }

/* ---------- Service detail ---------- */
#service-detail { background: var(--bg); padding: var(--space-section) 0; }
#service-detail .service-body p { color: var(--text-2); line-height: 1.7; font-size: 1.0625rem; }
#service-detail .service-features { margin: 0 0 32px; }
#service-detail .service-features li { padding: 12px 0 12px 38px; border-bottom: 1px solid var(--line); color: var(--text-2); }
#service-detail .service-features li:before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  top: 12px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 13px;
}
.service-showcase {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 32px);
  margin: 8px 0 32px;
}
.service-showcase h3 { font-size: 1.45rem; color: var(--text); margin-bottom: .5rem; }
.service-showcase p { color: var(--text-2); }
.service-showcase-links { gap: .75rem; }
.service-cta {
  background: var(--glow), var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px);
}
.service-cta h3 { font-size: 1.6rem; color: #ffffff; margin-bottom: .5rem; }
.service-cta p { color: #c9d3e4; margin-bottom: 1.5rem; }
.service-cta a { margin: 6px; }
.related-services h3 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.related-services li { border-bottom: 1px solid var(--line); }
.related-services a { color: var(--text); font-weight: 500; font-size: 1rem; }
.related-services a:hover { color: var(--brand-strong); }
@media (max-width: 991px) { .related-services { margin-top: 40px; } }

/* ---------- About page ---------- */
.stat-row { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 32px; margin: 40px 0; padding: 28px 0; }
.stat-row .stat .stat-num { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--text); line-height: 1.1; margin-bottom: 6px; }
.stat-row .stat .stat-label { color: var(--muted); font-size: .95rem; text-transform: none; letter-spacing: 0; }

/* ---------- Contact page sidebar CTA ---------- */
#contact.contact-page .service-cta { border-radius: var(--radius-lg); padding: 28px 22px; }
#contact.contact-page .service-cta a { width: 100%; margin: 6px 0; }

/* ---------- Footer ---------- */
#footer { background: var(--ink); color: var(--ink-text); padding: 44px 0; font-size: .95rem; }
#footer .copyright { color: var(--ink-text); }
#footer .credits { color: var(--ink-muted); font-size: .9rem; padding-top: 8px; }
#footer .credits a { color: #87b5df; }
#footer .credits a:hover { color: #ffffff; }

/* ---------- Cookie banner (dprod-cookieconsent / cookieconsent) ---------- */
.cc-window {
  font-family: var(--font-body) !important;
  background: var(--ink) !important;
  color: var(--ink-text) !important;
  border: 1px solid var(--ink-line);
  box-shadow: var(--shadow-lg);
}
.cc-window.cc-floating { border-radius: var(--radius-lg); }
.cc-window .cc-link { color: #87b5df !important; }
.cc-window .cc-btn {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #ffffff !important;
}
.cc-window .cc-btn:hover { background: var(--brand-strong) !important; border-color: var(--brand-strong) !important; }

/* The filled showcase button (an older rule styles a.primary navy) */
.service-showcase-links a.primary { background: var(--brand); color: var(--on-brand); border-color: transparent; box-shadow: var(--shadow-brand); }

/* Clipped by its column: no shadow on the About video */
#about .about-img .ratio, .about-video { box-shadow: none; }


