/*
 * Shared Codeless Founder colour system.
 * Loaded after page-specific template styles so every route uses one palette.
 */

:root {
  --color-primary: #cc5500;
  --color-accent: #cc6400;
  --color-bg: #ffdfbf;
  --color-text: #24160d;
  --color-white: #fffaf5;
  --color-muted: #624837;
  --color-border: #e4a96e;
  --color-primary-soft: #ffbe80;
  --color-accent-soft: #ffdfbf;
  --color-autumn-dark: #8f4600;
  --color-autumn-mid: #cc6400;
  --color-autumn-light: #ffbe80;
  --color-autumn-pale: #ffdfbf;
  --color-ink: #24160d;
  --shadow-soft: 0 18px 48px rgba(143, 70, 0, 0.12);
  --shadow-card: 0 10px 28px rgba(143, 70, 0, 0.1);
}

body,
.page-shell,
.tool-shell {
  background: var(--color-autumn-pale);
  color: var(--color-ink);
}

a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-autumn-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline-color: rgba(204, 85, 0, 0.55);
}

/* Shared header: warm orange with clear white navigation. */
body {
  padding-top: 192px;
}

.site-header {
  --header-expanded-height: 192px;
  --header-compact-height: 96px;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-expanded-height);
  border-bottom-color: #a85000;
  background: var(--color-autumn-mid);
  backdrop-filter: none;
  transition: height 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.is-compact {
  height: var(--header-compact-height);
}

.site-header-inner {
  height: 100%;
  min-height: 100%;
}

.site-logo {
  width: 160px;
  height: 160px;
  flex: 0 0 auto;
  color: #fff;
  transition:
    width 320ms cubic-bezier(0.4, 0, 0.2, 1),
    height 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.is-compact .site-logo {
  width: 82px;
  height: 82px;
}

.site-logo img {
  object-position: center;
}

.site-nav a,
.mobile-nav-menu a {
  color: #fff;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.mobile-nav-menu a:hover,
.mobile-nav-menu a[aria-current="page"] {
  background: var(--color-autumn-pale);
  color: var(--color-autumn-dark);
}

.mobile-nav summary {
  border-color: rgba(255, 255, 255, 0.68);
  background: transparent;
}

.hamburger-line {
  background: #fff;
}

.mobile-nav summary:hover,
.mobile-nav[open] summary {
  border-color: var(--color-autumn-pale);
  background: var(--color-autumn-pale);
}

.mobile-nav summary:hover .hamburger-line,
.mobile-nav[open] .hamburger-line {
  background: var(--color-autumn-dark);
}

.mobile-nav-menu {
  border-color: rgba(255, 255, 255, 0.35);
  background: var(--color-autumn-mid);
  box-shadow: var(--shadow-soft);
}

.content-card,
.empty-state,
.analytics-consent,
.consent-button {
  background: var(--color-white);
}

.page-hero {
  border-bottom-color: var(--color-border);
  background:
    radial-gradient(circle at top right, rgba(204, 100, 0, 0.2), transparent 32rem),
    linear-gradient(180deg, var(--color-white), var(--color-autumn-pale));
}

.status-badge,
.draft-notice {
  background: var(--color-autumn-light);
  color: var(--color-autumn-dark);
}

.consent-button-primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-ink);
}

/* Shared footer: twice the former height, with restrained link styling. */
.site-footer {
  border-top-color: #a85000;
  background: var(--color-autumn-mid);
  color: #fff;
}

.site-footer-inner {
  min-height: 284px;
  padding: 5rem 0;
  align-items: center;
}

.footer-brand {
  max-width: 520px;
}

.site-footer .footer-logo {
  width: 132px;
  margin-bottom: 1rem;
  padding: 0;
  display: block;
  border-radius: 0;
  color: #fff;
}

.site-footer .footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.site-footer .footer-brand p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer .footer-nav {
  gap: 0.65rem 1.15rem;
}

.site-footer .footer-nav a {
  position: relative;
  padding: 0.3rem 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  opacity: 0.88;
}

.site-footer .footer-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--color-autumn-pale);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-footer .footer-nav a:hover,
.site-footer .footer-nav a:focus-visible {
  background: transparent;
  color: #fff;
  opacity: 1;
}

.site-footer .footer-nav a:hover::after,
.site-footer .footer-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Homepage: retain the warm imagery treatment and contrast it with the blue panel. */
.coming-soon-home {
  background:
    linear-gradient(rgba(204, 85, 0, 0.24), rgba(143, 70, 0, 0.34)),
    url("/public/img/homepage-background-mobile.jpg") center / cover no-repeat;
}

.coming-soon-home::after {
  background: rgba(204, 85, 0, 0.22);
  mix-blend-mode: color;
}

.coming-soon-panel::before {
  background: rgba(0, 89, 143, 0.88);
}

.coming-soon-content h1::after {
  background: var(--color-autumn-light);
}

/* Services / Grayscale template. */
.grayscale-page {
  --grayscale-accent: #cc5500;
  --grayscale-black: #8f4600;
  background: var(--color-autumn-pale);
  color: var(--color-ink);
}

.grayscale-nav,
.grayscale-nav-links {
  background: var(--color-autumn-pale);
}

.grayscale-nav-links a {
  color: rgba(36, 22, 13, 0.72);
}

.grayscale-masthead {
  background:
    linear-gradient(to bottom, rgba(204, 85, 0, 0.28), rgba(143, 70, 0, 0.78) 75%, #8f4600),
    url("/public/img/grayscale/bg-masthead.jpg") center / cover no-repeat;
}

.grayscale-button,
.grayscale-signup-form button {
  background: var(--color-primary);
  color: var(--color-ink);
}

.grayscale-button:hover {
  background: var(--color-autumn-mid);
  color: var(--color-ink);
}

.grayscale-about {
  background: linear-gradient(to bottom, #8f4600, #a75000 75%, #b95a00);
}

.grayscale-about-copy,
.grayscale-project-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.grayscale-projects,
.grayscale-contact {
  background: var(--color-autumn-pale);
}

.grayscale-project {
  background: var(--color-autumn-dark);
}

.grayscale-projects h2,
.grayscale-contact-card h2 {
  color: var(--color-ink);
}

.grayscale-projects p,
.grayscale-contact-card p {
  color: var(--color-muted);
}

.grayscale-signup {
  background:
    linear-gradient(to bottom, rgba(204, 85, 0, 0.22), rgba(143, 70, 0, 0.72) 75%, #8f4600),
    url("/public/img/grayscale/bg-signup.jpg") center / cover no-repeat;
}

.grayscale-contact-card {
  border-bottom-color: var(--color-primary);
  background: var(--color-white);
}

.grayscale-social a {
  background: var(--color-autumn-dark);
  color: rgba(255, 255, 255, 0.76);
}

.grayscale-template-footer {
  background: var(--color-autumn-dark);
  color: #fff;
}

/* Resources / Creative template. */
.creative-page {
  --creative-orange: #cc5500;
  --creative-orange-dark: #8f4600;
  --creative-dark: #8f4600;
  background: var(--color-autumn-pale);
  color: var(--color-ink);
}

.creative-nav,
.creative-download {
  background: var(--color-autumn-dark);
}

.creative-masthead {
  background:
    linear-gradient(rgba(204, 85, 0, 0.48), rgba(143, 70, 0, 0.72)),
    url("/public/img/creative/bg-masthead.jpg") center / cover no-repeat;
}

.creative-button-primary {
  background: var(--color-primary);
  color: var(--color-ink);
}

.creative-button-primary:hover {
  background: var(--color-autumn-mid);
  color: var(--color-ink);
}

.creative-about {
  background: var(--color-primary);
}

.creative-features {
  background: var(--color-autumn-pale);
}

.creative-feature p {
  color: var(--color-muted);
}

.creative-portfolio-caption {
  background: rgba(204, 85, 0, 0.9);
}

/* Contact / Landing Page template. */
.landing-page {
  --landing-blue: #cc5500;
  background: var(--color-autumn-pale);
  color: var(--color-ink);
}

.landing-masthead,
.landing-cta {
  background:
    linear-gradient(rgba(204, 85, 0, 0.42), rgba(143, 70, 0, 0.68)),
    url("/public/img/landing-page/bg-masthead.jpg") center / cover no-repeat;
}

.landing-form button {
  background: var(--color-primary);
  color: var(--color-ink);
}

.landing-features,
.landing-testimonials {
  background: var(--color-autumn-pale);
}

.landing-showcase-copy {
  background: var(--color-white);
}

.landing-feature-grid p,
.landing-showcase p {
  color: var(--color-muted);
}

/* About / Resume template. */
.resume-page {
  --resume-accent: #cc5500;
  --resume-dark: #24160d;
  --resume-muted: #624837;
  background: var(--color-autumn-pale);
}

.resume-nav {
  background: var(--color-autumn-dark);
}

.resume-section:nth-of-type(even) {
  background: rgba(255, 190, 128, 0.2);
}

.resume-social a {
  background: var(--color-autumn-dark);
}

.resume-social a:hover {
  background: var(--color-primary);
}

/* Temporary About and Contact page treatment while their content is prepared. */
.page-coming-soon-active {
  overflow: hidden;
}

.page-coming-soon-overlay {
  position: fixed;
  z-index: 40;
  top: 192px;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(204, 100, 0, 0.91);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(3px) saturate(0.75);
}

.page-coming-soon-overlay p {
  margin: 0;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  text-shadow: 0 0.12em 0.35em rgba(80, 34, 0, 0.18);
}

@media (max-width: 940px) {
  .coming-soon-panel::before {
    background: rgba(0, 89, 143, 0.84);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-logo {
    transition: none;
  }
}

@media (max-width: 720px) {
  body {
    padding-top: 168px;
  }

  .page-coming-soon-overlay {
    top: 168px;
  }

  .site-header {
    --header-expanded-height: 168px;
    --header-compact-height: 84px;
  }

  .site-logo {
    width: 140px;
    height: 140px;
  }

  .site-header.is-compact .site-logo {
    width: 70px;
    height: 70px;
  }

  .site-footer-inner {
    min-height: 0;
    padding: 4rem 0;
    gap: 2.5rem;
  }

  .site-footer .footer-logo {
    width: 120px;
  }

  .site-footer .footer-nav {
    gap: 0.65rem 1rem;
  }

  .grayscale-nav-links {
    background: var(--color-autumn-pale);
  }
}
