/* =========================================================
   Macleay Chiropractic & Massage — Base Stylesheet
   Design tokens, reset, header/footer, shared utilities
   ========================================================= */

:root {
  /* Colour palette — coastal Macleay Valley, deep teal + warm copper */
  --color-teal-900: #0b3d44;
  --color-teal-700: #0f5c6b;
  --color-teal-600: #14707f;
  --color-teal-100: #e3eef0;
  --color-copper-600: #b8632f;
  --color-copper-500: #cf7a3f;
  --color-copper-100: #f6e6d8;
  --color-sand: #f6f1e7;
  --color-cream: #fbf9f4;
  --color-ink: #1f2a2e;
  --color-ink-soft: #4a5a5f;
  --color-white: #ffffff;
  --color-border: #e4ddcd;

  --font-heading: "Roboto Slab", serif;
  --font-body: "Montserrat", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(11, 61, 68, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 61, 68, 0.12);

  --container-width: 1180px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
html {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background-color: var(--color-cream);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-teal-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

a:link,
a:visited {
  color: var(--color-teal-700);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--color-copper-600);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-copper-500);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 1.5rem;
}

.section--alt {
  background-color: var(--color-sand);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-copper-600);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.section-lede {
  max-width: 62ch;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
}

/* Simple coastal wave divider used as a signature accent */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.9em 1.9em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--color-copper-500);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:focus-visible {
  background-color: var(--color-copper-600);
  color: var(--color-white);
}

.btn-outline {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-teal-900);
}

.btn-lg {
  padding: 1.1em 2.6em;
  font-size: 1.15rem;
}

.btn-outline:focus-visible {
  background-color: var(--color-white);
  color: var(--color-teal-900);
}

/* Hover effects only apply on devices that support real hovering
   (a mouse/trackpad) — this stops buttons getting "stuck" looking
   hovered after a tap on touch screens. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }

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

  .btn-outline:hover {
    background-color: var(--color-sand);
    color: var(--color-teal-900);
  }
}

/* ---------- Header logo (shared id used across pages) ---------- */
#maclogo {
  width: 150px;
  height: auto;
}

/* ---------- Footer ---------- */
footer {
  background-color: var(--color-teal-900);
  color: var(--color-sand);
  padding-top: 3rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 0.35rem;
}

.footer-content .num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.03em;
}

.footer-content a.email {
  font-size: 1rem;
  color: var(--color-sand);
}

.footer-content a.email:hover {
  color: var(--color-copper-500);
}

.footer-content p {
  font-size: 0.9rem;
  color: var(--color-sand);
  opacity: 0.85;
  margin: 0.25rem 0 1.5rem;
}

.socials {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0.5rem 0 1.5rem;
  font-size: 1.3rem;
}

.socials a,
.socials i {
  color: var(--color-sand);
}

.socials a:hover,
.socials i:hover {
  color: var(--color-copper-500);
}

.call-buton .cc-calto-action-ripple {
  z-index: 1;
  background: var(--color-copper-500);
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.6rem;
  border-radius: 100%;
  box-sizing: border-box;
  color: #ffffff;
  animation: cc-calto-action-ripple 1.8s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.call-buton .cc-calto-action-ripple i {
  transition: transform 0.2s ease;
  font-size: 1.1rem;
}

.call-buton .cc-calto-action-ripple:hover i {
  transform: rotate(20deg);
}

@keyframes cc-calto-action-ripple {
  0% {
    box-shadow: 0 4px 10px rgba(207, 122, 63, 0.25), 0 0 0 0 rgba(207, 122, 63, 0.25);
  }
  100% {
    box-shadow: 0 4px 10px rgba(207, 122, 63, 0.25), 0 0 0 16px rgba(207, 122, 63, 0);
  }
}

#copy {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  color: var(--color-sand);
  opacity: 0.65;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 600px) {
  .section {
    padding: 3rem 1.25rem;
  }

  .socials {
    gap: 1.5rem;
  }
}
