/* Gordon Stone Financial — mobile-first */

:root {
  --stone: #2a3138;
  --stone-deep: #1e2429;
  --primary: #1671B9;
  --primary-light: #1e85d0;
  --paper: #f7f5f0;
  --paper-warm: #edeae3;
  --gold: #a88b3d;
  --text: #2e3439;
  --text-muted: #5c6570;
  --border: #d8d4cb;
  --white: #ffffff;
  --error: #9b2c2c;
  --success: #1671B9;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", Times, serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --header-height: 4.25rem;
  --max-width: 72rem;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--stone);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--stone-deep);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.brand {
  display: flex;
  flex-direction: column;
  color: var(--white);
  text-decoration: none;
  line-height: 1.2;
}

.brand:hover {
  color: var(--paper);
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle-icon {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.site-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--stone-deep);
  padding: var(--space-md) var(--space-sm);
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.75rem 0;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
  text-decoration: none;
}

.site-nav .nav-cta {
  margin-top: var(--space-sm);
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: var(--white);
  text-align: center;
  border: none;
  border-radius: var(--radius);
}

.site-nav .nav-cta:hover {
  background: var(--primary-light);
  color: var(--white);
}

/* Main layout */

main {
  min-height: calc(100vh - var(--header-height) - 12rem);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

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

.section-alt {
  background: var(--paper-warm);
}

/* Typography */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--stone);
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 var(--space-sm);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 var(--space-sm);
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 var(--space-xs);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 40rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--stone-deep);
  color: var(--white);
}

.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 36, 41, 0.78);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

.hero h1 {
  color: var(--white);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Images */

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--paper-warm);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-header--image {
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0 var(--space-lg);
  margin-bottom: 0;
  border-bottom: none;
  min-height: 12rem;
}

.page-header--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 36, 41, 0.72);
  z-index: 1;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-header-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.page-header--image h1,
.page-header--image .lead {
  color: var(--white);
}

.page-header--image .lead {
  color: rgba(255, 255, 255, 0.82);
}

.page-header--image .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.card-image {
  margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-sm);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Founder */

.founder-card {
  display: grid;
  gap: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  max-width: 52rem;
  align-items: start;
}

.founder-photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-warm);
  max-width: 16rem;
}

.founder-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.founder-role {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 var(--space-xs);
}

.founder-info p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .founder-card {
    grid-template-columns: 16rem 1fr;
  }
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  transition: background 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

.btn-dark {
  background: var(--stone);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--stone-deep);
  color: var(--white);
  text-decoration: none;
}

/* Cards grid */

.card-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.card h3 {
  color: var(--primary);
}

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

/* Pillars */

.pillar-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

/* Page header */

.page-header {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-md);
}

/* Lists */

.content-list {
  padding-left: 1.25rem;
  margin: var(--space-sm) 0;
}

.content-list li {
  margin-bottom: 0.5rem;
}

/* Two column */

.split {
  display: grid;
  gap: var(--space-md);
}

/* Contact form */

.form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-group .optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--paper);
}

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-status {
  margin-top: var(--space-sm);
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-status.is-success {
  background: #e8f2fa;
  color: var(--success);
  border: 1px solid #b8d4eb;
}

.form-status.is-error {
  background: #fce8e8;
  color: var(--error);
  border: 1px solid #e8c5c5;
}

.form-status[hidden] {
  display: none;
}

/* Footer */

.site-footer {
  background: var(--stone-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-lg);
}

.footer-grid {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-brand {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

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

.footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
}

/* 404 */

.error-page {
  text-align: center;
  padding: var(--space-xl) 0;
}

/* Desktop */

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

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: transparent;
    gap: var(--space-md);
    bottom: auto;
  }

  .site-nav a {
    font-size: 0.95rem;
    padding: 0;
    border: none;
  }

  .site-nav .nav-cta {
    margin-top: 0;
    margin-left: var(--space-xs);
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .hero {
    padding: var(--space-xl) 0;
  }

  .page-header--image {
    min-height: 16rem;
  }
}

@media (min-width: 1024px) {
  .header-inner,
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}
