/* =====================================================
   Legacy Sync — Global Styles (style.css)
   Palette:
     --brand-dark: #2E3A46;
     --brand-orange: #E67E22;
     --brand-orange-dark: #CF711F;
     --text: #2B2B2B;
     --muted: #6C7280;
     --bg: #FAFAFB;
     --card: #FFFFFF;
     --border: #E6E8EB;
     --footer-bg: #1F2933;
     --footer-text: #F4F4F4;
   ===================================================== */

/* CSS Reset (lightweight) */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-underline-offset: 2px;
  outline-offset: 2px;
}

/* Root variables */
:root {
  --brand-dark: #2E3A46;
  --brand-orange: #E67E22;
  --brand-orange-dark: #CF711F;
  --text: #2B2B2B;
  --muted: #6C7280;
  --bg: #FAFAFB;
  --card: #FFFFFF;
  --border: #E6E8EB;
  --footer-bg: #1F2933;
  --footer-text: #F4F4F4;

  --radius: 14px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Base typography & layout */
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Global spacing for major sections */
header,
.page-header,
main,
section,
footer {
  padding: 1.5rem;
}

@media (min-width: 768px) {

  header,
  .page-header,
  main,
  section,
  footer {
    padding: 2rem 3rem;
  }
}

@media (min-width: 1200px) {

  header,
  .page-header,
  main,
  section,
  footer {
    padding: 3rem 6rem;
  }
}

/* Headings */
h1 {
  font-size: clamp(1.8rem, 1.8rem + 1vw, 2.6rem);
  line-height: 1.15;
  color: var(--brand-dark);
}

h2 {
  font-size: clamp(1.4rem, 1.4rem + 0.6vw, 1.9rem);
  line-height: 1.2;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.1rem, 1.1rem + 0.3vw, 1.25rem);
  color: var(--brand-dark);
}

p {
  color: var(--text);
}

small,
.muted {
  color: var(--muted);
}

/* Links */
a {
  color: var(--brand-orange);
  text-decoration: none;
  font-weight: 500;
}

a:hover,
a:focus {
  color: var(--brand-orange-dark);
  text-decoration: underline;
}

.text-link {
  color: var(--brand-orange);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease-in-out;
}

.text-link:hover {
  border-color: var(--brand-orange);
}

/* Buttons */
.cta-btn,
.btn {
  display: inline-block;
  background: var(--brand-orange);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.05s ease, background 0.2s ease-in-out;
}

.cta-btn:hover,
.btn:hover {
  background: var(--brand-orange-dark);
}

.cta-btn:active,
.btn:active {
  transform: translateY(1px);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f8 100%);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
}

.site-logo {
  width: 120px;
  height: auto;
}

.hero-content p {
  margin: 0.75rem 0 1rem;
  max-width: 62ch;
  color: var(--muted);
}

@media (max-width: 520px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-logo {
    margin: 0 auto;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Hero CTAs layout */
.hero-ctas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 720px) {
  .hero-ctas {
    grid-template-columns: repeat(2, max-content);
    justify-content: start;
  }

  .hero-ctas a {
    white-space: nowrap;
  }
}

/* Outline button variant for secondary actions */
.btn.outline {
  background: transparent;
  color: var(--brand-dark);
  border: 1.5px solid var(--brand-orange);
  box-shadow: none;
}

.btn.outline:hover {
  background: var(--brand-orange);
  color: #fff;
}


/* About */
.about {
  max-width: 72rem;
  margin-inline: auto;
}

.about p {
  margin-bottom: 0.5rem;
}

/* Services grid */
.services {
  max-width: 72rem;
  margin-inline: auto;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 680px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

.service-card p {
  color: var(--text);
  margin-top: 0.35rem;
}

/* Page header (used on Services & Privacy) */
.page-header {
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f8 100%);
  border-bottom: 1px solid var(--border);
}

.page-header p {
  color: var(--muted);
  max-width: 68ch;
}

/* Forms (if/when added) */
form {
  max-width: 40rem;
  margin: 1rem 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

label {
  display: block;
  font-weight: 600;
  margin-top: 0.75rem;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

button {
  cursor: pointer;
}

button[type="submit"] {
  margin-top: 0.75rem;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  color: var(--footer-text);
}

.footer a {
  color: var(--footer-text);
}

.footer a:hover {
  color: #E0E0E0;
  text-decoration: underline;
}

/* Utilities */
.center {
  text-align: center;
}

.max-w-prose {
  max-width: 68ch;
}

.hidden {
  display: none !important;
}

/* === Legacy Sync – FAQ styling === */
.faq {
  margin: 2.5rem 0;
  max-width: 900px;
}

.faq h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.faq-item {
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  margin: .75rem 0;
  overflow: hidden;
}

/* details/summary (collapsible) */
.faq-item>summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  outline: none;
}

/* hide default marker and add our own caret */
.faq-item>summary::-webkit-details-marker {
  display: none;
}

.faq-item>summary::after {
  content: "▸";
  margin-left: auto;
  transition: transform .2s ease;
  font-size: 1rem;
  opacity: .6;
}

.faq-item[open]>summary::after {
  transform: rotate(90deg);
  opacity: .9;
}

/* answer body */
.faq-item>div {
  padding: 0 16px 16px;
  color: #333;
}

.faq-item p {
  margin: .5rem 0 0;
}

.faq-item ul {
  margin: .5rem 0 0;
  padding-left: 1.25rem;
}

.faq a {
  text-decoration: underline;
}

/* focus/accessibility */
.faq-item>summary:focus {
  box-shadow: 0 0 0 3px rgba(255, 122, 0, .25);
  border-radius: 8px;
}

/* subtle shadow when open */
.faq-item[open] {
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

/* --- Fallback if your markup isn't <details> --- */
/* If you kept plain headings/paragraphs, at least group them. */
.faq .faq-qa {
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  margin: .75rem 0;
}

.faq .faq-q {
  font-weight: 700;
  margin: 0 0 .35rem;
}