/* Shared styles for all pages except index.html */
@font-face {
  font-family: "Riposte";
  src: url("assets/fonts/Riposte-Regular.woff2") format("woff2"),
       url("assets/fonts/Riposte-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Riposte";
  src: url("assets/fonts/Riposte-RegularItalic.woff2") format("woff2"),
       url("assets/fonts/Riposte-RegularItalic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Riposte";
  src: url("assets/fonts/Riposte-SemiBold.woff2") format("woff2"),
       url("assets/fonts/Riposte-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Riposte";
  src: url("assets/fonts/Riposte-SemiBold.woff2") format("woff2"),
       url("assets/fonts/Riposte-SemiBold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

:root {
  --brand-petrol: rgb(50, 120, 120);
  --brand-petrol-dark: rgb(40, 96, 96);
  --brand-petrol-light: rgba(50, 120, 120, 0.12);
  --brand-orange: rgb(234, 91, 12);
  --brand-orange-soft: rgba(234, 91, 12, 0.18);
}

body {
  font-family: "Riposte", "Source Sans Pro", sans-serif;
  letter-spacing: 0.2px;
  line-height: 1.7;
  color: #374151;
}

/* Main pages with slider/hero layout */
body.page-main h2,
body.page-main h3 {
  letter-spacing: 0;
  color: var(--brand-petrol);
  border-bottom: 2px solid var(--brand-petrol);
  display: inline-block;
  padding-bottom: 0.3rem;
  margin-bottom: 1.5rem;
}

body.page-main p {
  margin-bottom: 1.5rem;
}

body.page-main button {
  transition: background-color 0.3s ease;
}

body.page-main button:hover {
  background-color: #1f2937;
}

.highlight-text {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.video-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

#blogCarousel {
  scrollbar-width: none;
}

#blogCarousel::-webkit-scrollbar {
  display: none;
}

.blog-slide {
  scroll-snap-stop: always;
}

.bg-petrol-light {
  background-color: var(--brand-petrol-light);
}

/* Solid 20% gray fixed menu on service subpages only.
   page-main (e.g. index.html) keeps Tailwind bg-white/70 + backdrop-blur from HTML. */
body.page-service > header.fixed {
  background-color: rgb(204, 204, 204) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Service subpages */
body.page-service {
  font-family: "Source Sans Pro", sans-serif;
}

body.page-service h1,
body.page-service h2,
body.page-service h3 {
  color: var(--brand-petrol);
}

/* Top navigation */
header nav a.nav-link {
  position: relative;
  color: #374151;
  font-weight: 500;
  transition: color 0.2s ease;
}

header nav a.nav-link:hover {
  color: #111827;
}

header nav a.nav-link.nav-active {
  color: var(--brand-orange) !important;
  font-weight: 700;
}

header nav a.nav-link.nav-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-orange);
}

/* Global link system: internal text links + CTA buttons */
body.page-main a.text-teal-700.font-semibold,
body.page-service a.text-teal-700.font-semibold {
  color: var(--brand-orange) !important;
}

/* Hide old manually embedded arrows where present */
body.page-main a.text-teal-700.font-semibold span[aria-hidden="true"],
body.page-service a.text-teal-700.font-semibold span[aria-hidden="true"] {
  display: none;
}

body.page-main a.text-teal-700.font-semibold:not(.cta-button),
body.page-main a.accent-link,
body.page-service a.text-teal-700.font-semibold:not(.cta-button),
body.page-service a.accent-link {
  text-decoration: none !important;
  border-radius: 0.25rem;
  padding: 0.05rem 0.08rem;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

body.page-main a.text-teal-700.font-semibold:not(.cta-button)::after,
body.page-main a.accent-link::after,
body.page-service a.text-teal-700.font-semibold:not(.cta-button)::after,
body.page-service a.accent-link::after {
  content: "  ➜";
  color: var(--brand-orange);
  font-size: 1.05em;
  font-weight: 900;
  line-height: 1;
}

body.page-main a.text-teal-700.font-semibold:not(.cta-button):hover,
body.page-main a.accent-link:hover,
body.page-service a.text-teal-700.font-semibold:not(.cta-button):hover,
body.page-service a.accent-link:hover {
  color: #c14b0a !important;
  background-color: rgba(234, 91, 12, 0.08);
  transform: translateX(1px);
}

body.page-main a.text-teal-700.font-semibold:not(.cta-button):focus-visible,
body.page-main a.accent-link:focus-visible,
body.page-service a.text-teal-700.font-semibold:not(.cta-button):focus-visible,
body.page-service a.accent-link:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
  background-color: rgba(234, 91, 12, 0.1);
}

body.page-main a.text-teal-700.font-semibold.cta-button,
body.page-main a.cta-button,
body.page-service a.text-teal-700.font-semibold.cta-button,
body.page-service a.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid var(--brand-orange);
  background: var(--brand-orange);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 10px 22px rgba(234, 91, 12, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.page-main a.text-teal-700.font-semibold.cta-button::after,
body.page-main a.cta-button::after,
body.page-service a.text-teal-700.font-semibold.cta-button::after,
body.page-service a.cta-button::after {
  content: "➜";
  color: #ffffff;
  font-size: 1.05em;
  font-weight: 900;
  line-height: 1;
}

body.page-main a.text-teal-700.font-semibold.cta-button:hover,
body.page-main a.cta-button:hover,
body.page-service a.text-teal-700.font-semibold.cta-button:hover,
body.page-service a.cta-button:hover {
  background: #c14b0a;
  border-color: #c14b0a;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(193, 75, 10, 0.28);
}

body.page-main a.text-teal-700.font-semibold.cta-button:focus-visible,
body.page-main a.cta-button:focus-visible,
body.page-service a.text-teal-700.font-semibold.cta-button:focus-visible,
body.page-service a.cta-button:focus-visible {
  outline: 2px solid var(--brand-petrol);
  outline-offset: 2px;
}

/* Form submit buttons (Formspree etc.) */
button.cta-submit {
  background: var(--brand-orange) !important;
  color: #ffffff !important;
  border: 1px solid var(--brand-orange);
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(234, 91, 12, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button.cta-submit:hover {
  background: #c14b0a !important;
  border-color: #c14b0a;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(193, 75, 10, 0.28);
}

button.cta-submit:focus-visible {
  outline: 2px solid var(--brand-petrol);
  outline-offset: 2px;
}
