/* =============================================
   Gold Spade Advisory — Main Stylesheet
   Colours: Gold (#C9A84C), Black (#0a0a0a), Light background (#f8f8f6)
   Mobile-first, no framework, no build step
   ============================================= */

/* --- Custom Properties (colour + spacing variables) --- */
:root {
  --gold: #C9A84C;
  --gold-dark: #a8873c;
  --black: #0a0a0a;
  --white: #ffffff;
  --light: #f8f8f6;
  --text: #1a1a1a;
  --text-muted: #666666;
  --border: #e0e0e0;
  --radius: 6px;
  --max-width: 1100px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-dark);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

/* Fluid font sizes: shrink on small screens, grow on large */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout Utilities --- */
.container {
  /* Centres content and adds side padding */
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* Light grey background variant */
.section--light {
  background: var(--light);
}

/* Dark (black) background variant */
.section--dark {
  background: var(--black);
  color: var(--white);
}

/* Small gold label that appears above section headings */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 640px;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.section--dark .section-intro {
  color: #aaa;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
  font-family: inherit;
}

/* Gold filled button */
.btn--gold {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--black);
}

/* Outlined gold button (used on dark backgrounds) */
.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--black);
}

/* Dark button (used on gold CTA banner) */
.btn--dark {
  background: var(--black);
  color: var(--gold);
  border-color: var(--black);
}

.btn--dark:hover {
  background: #222;
  color: var(--gold);
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Needed so the mobile dropdown menu positions itself relative to the nav bar */
  overflow: visible;
  background: var(--black);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo: spade symbol + company name */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav__spade {
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}

.nav__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* Desktop nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--gold);
}

.nav__cta {
  margin-left: 1rem;
}

/* Hamburger toggle button — hidden on desktop */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* --- Mobile Navigation --- */
@media (max-width: 768px) {
  /* Show the hamburger button */
  .nav__toggle {
    display: flex;
  }

  /* Hide the menu completely by default on mobile */
  .nav__menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--black);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    z-index: 99;
  }

  /* JS adds this class when the hamburger is clicked — shows the menu */
  .nav__menu.open {
    display: block;
  }

  /* Stack the links vertically */
  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav__links a {
    font-size: 1rem;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* --- Hero Section (homepage) --- */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
}

/* Subtle gold gradient line along the bottom of the hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: block;
}

.hero__headline {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: 1.1rem;
  color: #aaa;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

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

/* --- Page Hero (inner pages like Services, About, Contact) --- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0;
  border-bottom: 2px solid rgba(201, 168, 76, 0.25);
}

.page-hero__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.page-hero__title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.page-hero__sub {
  color: #aaa;
  max-width: 560px;
}

/* --- Service Cards --- */
.cards {
  /* Auto-fill grid: cards are at least 280px wide, fill available space */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--gold);
}

.card__icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.card__body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* --- About Teaser (two-column layout on homepage) --- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .about-teaser {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Contact Page --- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Contact form fields */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form__group input,
.form__group textarea {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
  width: 100%;
}

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

.form__group textarea {
  resize: vertical;
  min-height: 140px;
}

/* Success message shown after form submission */
/* Honeypot field — moved off-screen so humans never see it, but bots fill it in */
.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form__success {
  display: none;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  margin-top: 0.5rem;
}

/* Contact sidebar (LinkedIn links) */
.contact-sidebar h3 {
  margin-bottom: 0.75rem;
}

.contact-sidebar > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.linkedin-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Individual LinkedIn profile link button */
.linkedin-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.linkedin-link:hover {
  border-color: #0A66C2;
  color: #0A66C2;
  background: #f0f6ff;
}

.linkedin-link svg {
  flex-shrink: 0;
  color: #0A66C2;
}

.linkedin-link__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  font-weight: 400;
}

/* --- About Page Content --- */
.about-content {
  max-width: 760px;
}

.about-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
  color: var(--text);
}

.about-content p {
  color: var(--text-muted);
}

.about-content > p:first-child {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}

.about-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}

.about-content ul li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--gold);
  color: var(--black);
  padding: 4.5rem 0;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 0.75rem;
}

.cta-banner p {
  margin-bottom: 2rem;
  opacity: 0.75;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Privacy Policy Prose --- */
.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.prose ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.prose a {
  color: var(--gold);
}

/* --- Footer --- */
.footer {
  background: var(--black);
  color: #aaa;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

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

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.footer__spade {
  font-size: 1.4rem;
  color: var(--gold);
}

.footer__brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.footer__tagline {
  font-size: 0.85rem;
  color: #555;
  max-width: 320px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

@media (max-width: 600px) {
  .footer__links {
    align-items: flex-start;
  }
}

.footer__links a {
  font-size: 0.85rem;
  color: #777;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--gold);
}

/* Bottom bar: copyright + social links */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #444;
}

.footer__social {
  display: flex;
  gap: 1.25rem;
}

.footer__social a {
  color: #555;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer__social a:hover {
  color: var(--gold);
}

/* --- Responsive: reduce section padding on mobile --- */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 4rem 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
