/* ========== CSS RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.25;
}

p {
  font-size: var(--font-size-base);
  color: var(--text-color);
}

.section-title {
  text-align: center;
  font-size: var(--font-size-title-base);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  border-radius: var(--radius-xs);
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  margin: 0.85rem auto 0;
  box-shadow: var(--shadow-glow-accent);
}

.section-subtitle {
  text-align: center;
  font-size: var(--font-size-md);
  color: var(--secondary-color-text);
  font-weight: 600;
  margin-bottom: var(--space-3xl);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: var(--space-md) 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  text-align: center;
}

/* White text sits on this, so it's the *background* that has to clear 4.5:1.
   --accent-color would be 2.85:1. See globaldesigntokens.css. */
.btn-primary {
  background-color: var(--accent-color-strong);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-color-strong-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: var(--border-width-md) solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-cta {
  padding: var(--space-lg) 2.25rem;
  font-size: var(--font-size-md);
}

/* ========== FOCUS VISIBILITY ==========
   One baseline ring for every interactive element, so a keyboard user is never
   left guessing where they are. Before this, only form inputs, gallery cards and
   the lightbox controls had one; buttons, nav links, footer links and
   .service-link fell back to whatever the UA drew, which on a coloured
   background is often nothing legible.

   :where() keeps specificity at 0, so any component that needs a different ring
   (the navbar/footer swap the colour; the lightbox has its own offset) overrides
   this without !important. :focus-visible, not :focus, so a mouse click on a
   button doesn't leave a ring behind. */
:where(a, button, [role="button"], input, select, textarea, summary):focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
