/* Pedro Prime Fitness — site stylesheet. Colours are CSS variables in :root. */

:root {
  --background: #20334f;
  --background-rgb: 32, 51, 79;   /* same colour as --background, for translucent overlays */
  --card: #283d5c;
  --muted: #30486b;
  --foreground: #eceff2;
  --body-text: #d6e0ed;
  --muted-foreground: #a6b8d0;
  --border: #ffffff14;
  --ph-light: #3a5a88;            /* image-placeholder gradient */
  --ph-dark: #20334f;
  --radius: 0.625rem;

  /* Accent: --accent is used for fills (buttons, numbers, rules);
     --accent-text is a lighter tint for accent-coloured text on the background. */
  --accent: #2f5f9e;
  --accent-hover: #3a6db0;
  --accent-text: #c6daf2;
  --accent-foreground: var(--foreground);  /* text on accent fills */

  --font-heading: "Bebas Neue", sans-serif;
  --font-body: "Inter", sans-serif;
  --container: 72rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.muted { color: var(--muted-foreground); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary { background: var(--accent); color: var(--accent-foreground); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline { border-color: #ffffff40; color: var(--foreground); }
.btn-outline:hover { border-color: var(--foreground); }

.btn-sm { padding: 0.625rem 1.25rem; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(var(--background-rgb), 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
}

.brand span { color: var(--accent-text); }

.nav { display: flex; align-items: center; gap: 2rem; }

.nav a:not(.btn) {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color 0.15s;
}

.nav a:not(.btn):hover,
.nav a[aria-current="page"] { color: var(--foreground); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--foreground);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--background);
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 0.875rem 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 1rem; }
}

/* ---------- Image placeholders ----------
   Stand-ins for photos until real ones are supplied. Each carries a label
   describing the intended shot. Replace a .ph element with an <img>. */

.ph {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    linear-gradient(160deg, var(--ph-light) 0%, var(--ph-dark) 100%);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.ph::after {
  content: attr(data-label);
  margin: 1rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  border: 1px dashed #ffffff30;
  border-radius: 4px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
}

.hero .ph { position: absolute; inset: 0; align-items: flex-start; justify-content: flex-end; }
.hero .ph::after { margin-top: 6rem; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(var(--background-rgb),0.92) 0%, rgba(var(--background-rgb),0.6) 55%, rgba(var(--background-rgb),0.3) 100%);
}

.hero .container { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(3.5rem, 10vw, 8rem);
  max-width: none;
}

.hero p {
  max-width: 34rem;
  margin: 1.5rem 0 2.5rem;
  font-size: 1.125rem;
  color: var(--body-text);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Sections ---------- */

.section { padding: 6rem 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 3.5rem; max-width: 40rem; }
.section-head h2 { font-size: clamp(2.75rem, 6vw, 4.5rem); }
.section-head p { margin-top: 1rem; color: var(--muted-foreground); }

.page-hero { padding: 10rem 0 4rem; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(3.5rem, 9vw, 7rem); }
.page-hero p { max-width: 38rem; margin-top: 1.25rem; color: var(--muted-foreground); font-size: 1.125rem; }

/* ---------- Service cards (home) ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.service-card:hover { border-color: #ffffff30; }

.service-card .ph { aspect-ratio: 16 / 10; }

.service-card .body { padding: 2rem; display: flex; flex-direction: column; flex: 1; }

.num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent-text);
  letter-spacing: 0.1em;
}

.service-card h3 { font-size: 2.5rem; margin: 0.5rem 0 1rem; }
.service-card p { color: var(--muted-foreground); margin: 0 0 1.5rem; flex: 1; }

.link-arrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.link-arrow:hover { color: var(--foreground); }

@media (max-width: 760px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 0;
}

.testimonial .quote-mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 0.5;
  color: var(--accent-text);
  display: block;
  height: 1.5rem;
}

.testimonial blockquote { margin: 0 0 1.5rem; color: var(--body-text); }
.testimonial figcaption { font-weight: 600; }
.testimonial figcaption span { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted-foreground); }

@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */

.cta { text-align: center; }
.cta h2 { font-size: clamp(3rem, 7vw, 5.5rem); }
.cta p { max-width: 34rem; margin: 1.25rem auto 2.5rem; color: var(--muted-foreground); }
.cta .rule { width: 4rem; height: 3px; background: var(--accent); margin: 0 auto 2rem; border: 0; }

/* ---------- Services page (detail rows) ---------- */

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.service-row:last-child { border-bottom: 0; }
.service-row:nth-child(even) .ph { order: 2; }
.service-row .ph { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.service-row h2 { font-size: clamp(2.75rem, 5vw, 4rem); margin: 0.5rem 0 1.25rem; }
.service-row p { color: var(--muted-foreground); }

.ticks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.ticks li { padding: 0.5rem 0 0.5rem 1.75rem; position: relative; border-bottom: 1px solid var(--border); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.75rem;
  height: 2px;
  background: var(--accent-text);
}

@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 0; }
  .service-row:nth-child(even) .ph { order: 0; }
}

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.price-card .tag {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.price-card h3 { font-size: 2.25rem; }
.price-card .price { font-family: var(--font-heading); font-size: 3.5rem; margin: 1rem 0 0.25rem; }
.price-card .price small { font-family: var(--font-body); font-size: 0.875rem; color: var(--muted-foreground); }
.price-card .ticks { flex: 1; }

.note { margin-top: 2.5rem; text-align: center; font-size: 0.875rem; color: var(--muted-foreground); }

@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

.contact-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.contact-panel h2 { font-size: 2.75rem; margin-bottom: 1rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.steps li { counter-increment: step; display: flex; gap: 1rem; padding: 0.75rem 0; color: var(--body-text); }
.steps li::before {
  content: "0" counter(step);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--accent-text);
  min-width: 2rem;
}

.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.detail-list li:last-child { border-bottom: 0; }
.detail-list .label { display: block; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.25rem; }
.detail-list a { color: var(--accent-text); }
.detail-list a:hover { color: var(--foreground); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-top .tagline { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { font-size: 0.8125rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-foreground); }
.footer-nav a:hover { color: var(--foreground); }

.footer-bottom { padding-top: 2rem; font-size: 0.8125rem; color: var(--muted-foreground); }
