/*
Theme Name: Claude Theme
Theme URI: https://dauntlesscm.co.uk
Author: Edward Daunt
Version: 1.1
Text Domain: claude-theme
Description: Custom theme for Dauntless Credit Management Limited
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --navy:      #0f1f3d;
  --navy-mid:  #162847;
  --navy-light:#1e3a5f;
  --gold:      #b8912a;
  --gold-light:#d4a843;
  --cream:     #f7f4ee;
  --cream-dark:#ede9e0;
  --white:     #ffffff;
  --text:      #1a1a2e;
  --text-mid:  #3d4460;
  --text-light:#6b7280;
  --border:    rgba(15,31,61,0.1);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;

  --nav-h:     76px;
  --section-pad: 6rem 5%;
  --radius:    4px;
  --shadow:    0 4px 24px rgba(15,31,61,0.10);
  --shadow-lg: 0 12px 48px rgba(15,31,61,0.16);

  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* WordPress fixes */
.wp-block-group, .entry-content, .site { all: unset; }
#wpadminbar ~ .site-nav { top: 32px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

em { font-style: italic; color: var(--gold); }

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-nav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}

.nav-logo-top {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}

.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-top: 1px;
}

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--gold-light); }

.nav-links .nav-cta {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.nav-links .nav-cta:hover {
  background: var(--gold);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--navy);
  z-index: 998;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.mobile-menu.open {
  max-height: 400px;
  padding: 1.5rem 5% 2rem;
}

.mobile-menu ul { display: flex; flex-direction: column; gap: 1rem; }

.mobile-menu a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: block;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}

.mobile-menu a:hover { color: var(--gold-light); }
.mobile-menu .nav-cta { border: none; color: var(--gold-light); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-navy {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--transition);
}

.btn-navy:hover { background: var(--navy-light); }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--section-pad);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

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

.section-lead {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) 5% 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,145,42,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,145,42,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-accent-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero h1 { color: var(--white); margin-bottom: 1.5rem; }

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero-lead strong { color: var(--gold-light); font-weight: 700; }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.35rem;
}

/* ============================================================
   BAND
   ============================================================ */
.band {
  background: var(--gold);
  padding: 2.2rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.band-text {
  font-size: 1rem;
  color: var(--white);
  max-width: 640px;
}

.band-text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}

.band-text p {
  font-size: 0.88rem;
  opacity: 0.88;
  margin: 0.3rem 0 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.2rem;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 6px 6px 0 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold-light);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--navy);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.service-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-section { background: var(--cream); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: steps;
}

.process-step {
  position: relative;
  padding-left: 0;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.process-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   WHY DAUNTLESS
   ============================================================ */
.why-section {
  background: var(--navy);
  padding: var(--section-pad);
}

.why-eyebrow { color: var(--gold) !important; }

.why-title { color: var(--white) !important; }

.why-lead { color: rgba(255,255,255,0.72) !important; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.why-item {
  border-left: 2px solid rgba(184,145,42,0.3);
  padding: 1.5rem 1.5rem 1.5rem 1.8rem;
  transition: border-color var(--transition);
}

.why-item:hover { border-color: var(--gold); }

.why-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.why-item h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.why-item p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { background: var(--white); }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.about-image-wrap {
  position: relative;
  padding: 1.5rem;
}

.about-image-frame {
  aspect-ratio: 3/4;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.about-initials {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.25;
}

.about-placeholder-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}

.about-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold);
  border-style: solid;
}

.about-corner-tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.about-corner-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.about-badge {
  position: absolute;
  bottom: -0.5rem;
  right: -1rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.5;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-content p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.credential {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  padding-left: 1.2rem;
  position: relative;
}

.credential::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: var(--cream);
  padding: var(--section-pad);
}

.contact-section .section-inner { padding: var(--section-pad); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.contact-info > p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-light);
}

.contact-detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.contact-detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 1.8rem;
  color: var(--navy);
}

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

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,31,61,0.08);
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230f1f3d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  margin-top: 0.5rem;
}

.form-submit:hover { background: var(--navy-light); transform: translateY(-1px); }
.form-submit:active { transform: translateY(0); }

.form-note {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: var(--white); }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 5% 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo { margin-bottom: 1rem; display: flex; }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 280px;
  margin: 0;
}

.footer-links h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
}

.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5%;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}

.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { max-width: 380px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; --section-pad: 4rem 5%; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding-top: calc(var(--nav-h) + 3rem); }
  .hero-stats { gap: 2rem; }

  .band { flex-direction: column; align-items: flex-start; text-align: left; }

  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .hero-buttons { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .why-section { padding: 3rem 5%; }
}
