/* ============================================
   Preston Mitchell — Personal Brand Website
   Design System & Styles v3
   Palette: Turquoise · Espresso · Copper
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Core Palette */
  --color-espresso: #1C1614;
  --color-espresso-light: #2D2420;
  --color-charcoal: #3A3230;
  --color-slate: #5C5452;
  --color-turquoise: #1A8A7D;
  --color-turquoise-light: #23A899;
  --color-turquoise-dark: #147068;
  --color-copper: #B87333;
  --color-copper-light: #D4945C;
  --color-copper-muted: #9E6B3A;
  --color-sage: #7A8B6F;
  --color-sage-light: #95a886;

  /* Neutrals */
  --color-white: #FAF8F5;
  --color-cream: #F2EDE6;
  --color-light-gray: #E8E2DA;
  --color-mid-gray: #D1C9BF;
  --color-text: #1E1E1E;
  --color-text-light: #6B6B6B;

  /* Semantic */
  --color-link: var(--color-turquoise-dark);
  --color-link-hover: var(--color-copper);
  --color-accent: var(--color-turquoise);
  --color-accent-secondary: var(--color-copper);

  /* Typography */
  --font-heading: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Georgia', 'Times New Roman', serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1100px;
  --max-width-narrow: 740px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(28,22,20,0.06);
  --shadow-md: 0 4px 12px rgba(28,22,20,0.08);
  --shadow-lg: 0 8px 30px rgba(28,22,20,0.12);
  --shadow-card: 0 2px 8px rgba(28,22,20,0.06), 0 0 1px rgba(28,22,20,0.1);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-link-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-espresso);
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

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

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
.container--narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 var(--space-md); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Tag / category labels */
.tag {
  display: inline-block;
  background: var(--color-cream);
  color: var(--color-espresso);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-mid-gray);
  box-shadow: 0 1px 4px rgba(28,22,20,0.04);
}

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

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-espresso);
  letter-spacing: -0.01em;
}
.site-logo:hover { color: var(--color-espresso); }

.site-nav { display: flex; gap: var(--space-md); align-items: center; }

.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-slate);
  position: relative;
  padding: 0.25rem 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-turquoise);
  transition: width 0.25s ease;
}

.site-nav a:hover { color: var(--color-espresso); }
.site-nav a:hover::after,
.site-nav a.active::after { width: 100%; }
.site-nav a.active { color: var(--color-espresso); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-espresso);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
  padding: var(--space-2xl) 0 calc(var(--space-2xl) + 1rem);
  background: linear-gradient(170deg, var(--color-espresso) 0%, #2D2420 40%, #3A3230 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,138,125,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184,115,51,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-turquoise-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-sm);
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-md);
  font-size: 2.6rem;
}

.hero__text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}

.hero__photo {
  width: 300px;
  height: 360px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(4px);
}

/* Hero headshot image */
.hero__photo img {
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  object-fit: cover;
}

/* --- Section Styles --- */
.section { padding: var(--space-2xl) 0; }

.section--alt {
  background: var(--color-cream);
  border-top: 1px solid var(--color-light-gray);
  border-bottom: 1px solid var(--color-light-gray);
}

.section__header { margin-bottom: var(--space-xl); }
.section__header h2 { margin-bottom: var(--space-xs); }
.section__header p { font-size: 1.1rem; color: var(--color-slate); }

.section__label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-turquoise);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

/* CTA Teaser section */
.section--cta { text-align: center; }
.section--cta .section__subtitle {
  font-size: 1.1rem;
  color: var(--color-slate);
  margin-top: var(--space-sm);
}
.section--cta .btn { margin-top: var(--space-md); }

/* --- Ventures Cards --- */
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.venture-card {
  background: #fff;
  border: 1px solid var(--color-light-gray);
  border-left: 4px solid var(--color-turquoise);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.venture-card:nth-child(2) { border-left-color: var(--color-copper); }
.venture-card:nth-child(3) { border-left-color: var(--color-espresso); }
.venture-card:nth-child(4) { border-left-color: var(--color-sage); }
.venture-card:nth-child(5) { border-left-color: var(--color-copper-light); }
.venture-card:nth-child(6) { border-left-color: var(--color-turquoise-dark); }

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

.venture-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.venture-card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }

.venture-card__category {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-copper);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.venture-card p { color: var(--color-slate); font-size: 0.95rem; line-height: 1.7; }

.venture-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-turquoise);
  margin-top: var(--space-sm);
  transition: gap 0.2s ease;
}

.venture-card__link:hover { color: var(--color-espresso); gap: 0.6rem; }
.venture-card__link svg { width: 14px; height: 14px; }

/* --- About Page --- */
.about-content { max-width: var(--max-width-narrow); }

.about-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 2px solid var(--color-light-gray);
  position: relative;
}

.about-content h2::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-turquoise);
}

.about-content h2:first-of-type {
  margin-top: var(--space-lg);
  padding-top: 0;
  border-top: none;
}

.about-content h2:first-of-type::before { display: none; }

.about-content p { font-size: 1.05rem; color: var(--color-slate); }

/* About page figures (portraits, scenic) */
.about-figure {
  margin: 2.5rem 0;
  text-align: center;
}

.about-figure--top { margin: 0 0 2.5rem; }

.about-figure img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-figure--portrait img { max-width: 340px; }
.about-figure--medium img { max-width: 480px; }
.about-figure--wide img { max-width: 600px; }

/* --- Ventures Page Detail --- */
.venture-detail {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-mid-gray);
}

.venture-detail:last-of-type { border-bottom: none; }

.venture-detail__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.venture-detail__header h2 { margin: 0; }

.venture-detail__tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-turquoise-dark);
  background: rgba(26, 138, 125, 0.1);
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.venture-detail p {
  font-size: 1.05rem;
  color: var(--color-slate);
  max-width: var(--max-width-narrow);
}

.venture-detail a {
  color: var(--color-turquoise);
  border-bottom: 1px solid rgba(26, 138, 125, 0.3);
  transition: border-color 0.2s, color 0.2s;
}

.venture-detail a:hover {
  color: var(--color-espresso);
  border-color: var(--color-espresso);
}

/* Ventures page figures */
.venture-figure {
  margin: 2.5rem 0;
  text-align: center;
}

.venture-figure img {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* --- Blog --- */
.blog-grid { display: grid; gap: var(--space-lg); }
.blog-grid--narrow { max-width: 700px; }
.blog-grid--index { max-width: 800px; }

.blog-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  transition: background 0.2s, border-color 0.2s;
}

.blog-card--bordered {
  border-bottom: 1px solid var(--color-mid-gray);
  padding-bottom: var(--space-md);
}

.blog-card--last { padding-bottom: 0; border-bottom: none; }

.blog-card:hover {
  background: var(--color-cream);
  border-left-color: var(--color-turquoise);
}

.blog-card__meta {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-copper);
  font-weight: 600;
  margin-bottom: 0;
}

.blog-card h3 { margin-bottom: 0.4rem; }
.blog-card h3 a { color: var(--color-espresso); transition: color 0.2s; }
.blog-card h3 a:hover { color: var(--color-turquoise); }
.blog-card p { font-size: 0.95rem; color: var(--color-slate); margin-bottom: 0; }

/* Blog CTA wrapper */
.blog-cta { margin-top: var(--space-lg); }

/* --- Blog Post --- */
.post-header {
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 2px solid var(--color-light-gray);
}

.post-header .section__label { margin-bottom: var(--space-sm); }

.post-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--color-espresso);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.25;
}

.post-meta {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.post-meta span + span { margin-left: 0.25rem; }

.post-content {
  padding: var(--space-xl) 0;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.post-content h2 { margin-top: var(--space-lg); margin-bottom: var(--space-sm); }
.post-content p { font-size: 1.05rem; color: var(--color-slate); }

.post-content a {
  color: var(--color-turquoise);
  border-bottom: 1px solid rgba(26, 138, 125, 0.3);
}

.post-content blockquote {
  border-left: 3px solid var(--color-turquoise);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--color-slate);
  background: var(--color-cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --- Contact --- */
.contact-center { text-align: center; }
.contact-center .section__subtitle {
  margin-top: var(--space-md);
  font-size: 1.05rem;
  color: var(--color-slate);
}

.contact-detail { margin-top: var(--space-lg); }
.contact-detail + .contact-detail { margin-top: var(--space-md); }
.contact-detail h4 { margin-bottom: 0.5rem; }
.contact-detail a { font-size: 1.15rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info h3 { margin-bottom: var(--space-sm); }
.contact-info p { color: var(--color-slate); font-size: 1.05rem; }

.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-espresso);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-mid-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  margin-bottom: var(--space-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-turquoise);
  box-shadow: 0 0 0 3px rgba(26,138,125,0.1);
}

.contact-form textarea { resize: vertical; min-height: 150px; }

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

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--color-turquoise);
  color: #fff;
  border-color: var(--color-turquoise);
  box-shadow: 0 2px 8px rgba(26,138,125,0.3);
}

.btn--primary:hover {
  background: var(--color-turquoise-dark);
  border-color: var(--color-turquoise-dark);
  box-shadow: 0 4px 16px rgba(26,138,125,0.4);
  transform: translateY(-1px);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.btn--secondary {
  background: var(--color-espresso);
  color: #fff;
  border-color: var(--color-espresso);
}

.btn--secondary:hover {
  background: #2D2420;
  transform: translateY(-1px);
  color: #fff;
}

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

.site-footer {
  background: var(--color-espresso);
  color: #fff;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer__brand-desc {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 380px;
}

.footer__nav { display: flex; gap: 3rem; }

.footer__nav-group h4 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-turquoise-light);
  margin-bottom: 1rem;
}

.footer__nav-group a {
  display: block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer__nav-group a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* ========================================
   PAGE HEADERS (inner pages)
   ======================================== */

.page-header {
  background: linear-gradient(135deg, var(--color-espresso) 0%, #2D2420 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   RESPONSIVE — TABLET (768px)
   ======================================== */

@media (max-width: 768px) {
  :root {
    --space-lg: 2.5rem;
    --space-xl: 3rem;
  }

  .site-header .container { flex-wrap: wrap; }
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #fff;
    padding: 1rem 0;
    border-top: 1px solid var(--color-mid-gray);
    margin-top: 0.5rem;
  }

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

  .site-nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .hero { padding: 4rem 0 3.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { display: none; }

  .ventures-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__nav { gap: 2rem; }
  .section { padding: var(--space-lg) 0; }
  .post-content { padding: 0 1rem; }
}

/* ========================================
   RESPONSIVE — MOBILE (480px)
   ======================================== */

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .hero .btn { display: block; text-align: center; }
  .section__label { font-size: 0.7rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 0 1rem; }
  .footer__nav { flex-direction: column; gap: 1.5rem; }
  .blog-card { padding: 1.25rem; }
  .post-header h1 { font-size: 1.6rem; }
}
