/* ============================================================
   CENTURION PARTNERS — stylesheet
   All colours and fonts are defined as custom properties below.
   Retheme the whole site by editing this block only.
   ============================================================ */

:root {
  /* Colours */
  --color-bg: #0A0A0A;
  --color-bg-alt: #141414;
  --color-gold: #C9A227;
  --color-gold-light: #E5C76B;
  --color-text: #EAEAEA;
  --color-text-muted: #9A9A9A;
  --color-border: rgba(201, 162, 39, 0.35);
  --color-border-soft: rgba(234, 234, 234, 0.1);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-width: 1140px;
  --container-narrow: 720px;
  --section-padding: 7rem;
  --section-padding-mobile: 4rem;
}

/* ============================================================
   RESET
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */

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

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding-mobile) 0;
}

.section-charcoal {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
}

@media (min-width: 768px) {
  .section {
    padding: var(--section-padding) 0;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.95rem 2rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.btn-gold {
  background-color: var(--color-gold);
  color: #0A0A0A;
  border-color: var(--color-gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: rgba(234, 234, 234, 0.35);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--color-gold-light);
  color: var(--color-gold-light);
}

.btn-small {
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem;
}

.btn-large {
  padding: 1.15rem 2.75rem;
  font-size: 0.9rem;
}

/* ============================================================
   NAV
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-border-soft);
}

.nav {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  white-space: nowrap;
}

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

.nav-links a:not(.btn) {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn):focus-visible {
  color: var(--color-gold-light);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-gold);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    top: 65px;
    height: calc(100vh - 65px);
    background-color: var(--color-bg-alt);
    border-left: 1px solid var(--color-border-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 2rem 1.75rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a:not(.btn) {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border-soft);
  }

  .nav-links .btn {
    margin-top: 1.5rem;
  }
}

@media (min-width: 861px) {
  .menu-toggle {
    display: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 0 5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.08), transparent 60%),
    var(--color-bg);
}

.hero-inner {
  max-width: 780px;
}

.hero .label {
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  color: var(--color-text);
  margin-bottom: 1.75rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 2.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ============================================================
   PROBLEM
   ============================================================ */

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

.problem-item {
  text-align: center;
  padding: 0 0.5rem;
}

.problem-item h3 {
  font-size: 1.25rem;
  color: var(--color-gold-light);
  margin-bottom: 0.85rem;
}

.problem-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

/* ============================================================
   SERVICES — cards
   ============================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  border: 1px solid var(--color-border);
  padding: 2.5rem 2rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
}

.card-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

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

/* ============================================================
   PROCESS — timeline
   ============================================================ */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.75rem 2.5rem;
  border-left: 1px solid var(--color-border);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-gold);
}

.timeline-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.timeline-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 420px;
}

@media (min-width: 900px) {
  .timeline {
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
  }

  .timeline-item {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding: 2.5rem 1rem 0 0;
    flex: 1;
  }

  .timeline-item::before {
    left: 0;
    top: -5px;
  }

  .timeline-item p {
    max-width: none;
  }
}

/* ============================================================
   RESULTS
   ============================================================ */

.stats {
  margin-bottom: 4rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--color-gold);
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.testimonials {
  max-width: 900px;
  margin: 0 auto;
}

.testimonial {
  border-top: 1px solid var(--color-border-soft);
  padding-top: 2rem;
}

.testimonial p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-copy {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.about-copy:last-child {
  margin-bottom: 0;
}

/* ============================================================
   FINAL CTA
   ============================================================ */

.cta-band {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.06), transparent 40%),
    var(--color-bg-alt);
  border-top: 1px solid var(--color-border-soft);
}

.cta-band h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.cta-sub {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  background-color: transparent;
  border: 1px solid var(--color-border-soft);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

.contact-form .btn {
  align-self: flex-start;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border-soft);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-wordmark {
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-gold-light);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   FADE-UP ON LOAD (CSS only — no JS/scroll observer needed)
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    animation: fadeUp 0.8s ease both;
  }

  .hero-inner .fade-up:nth-child(1) { animation-delay: 0.05s; }
  .hero-inner .fade-up:nth-child(2) { animation-delay: 0.15s; }
  .hero-inner .fade-up:nth-child(3) { animation-delay: 0.25s; }
  .hero-inner .fade-up:nth-child(4) { animation-delay: 0.35s; }

  .grid-3 .fade-up:nth-child(1),
  .grid-2 .fade-up:nth-child(1) { animation-delay: 0.05s; }
  .grid-3 .fade-up:nth-child(2),
  .grid-2 .fade-up:nth-child(2) { animation-delay: 0.15s; }
  .grid-3 .fade-up:nth-child(3),
  .grid-2 .fade-up:nth-child(3) { animation-delay: 0.25s; }
  .grid-2 .fade-up:nth-child(4) { animation-delay: 0.35s; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
