/*
Theme Name: Raquel Madrigal
Theme URI: https://raquelvmadrigal.com
Author: Raquel Madrigal
Author URI: https://instagram.com/raquelvmadrigal
Description: Portfolio block theme for Raquel Madrigal — Native New Mexican muralist, painter, and graphic designer. Helvetic Grid layout with a New Mexico palette: ivory, charcoal, forest green, terracotta, dusty blue, and muted gold. Flat, structural, zero border-radius.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: raquel-madrigal
Tags: portfolio, one-column, custom-colors, block-patterns, full-site-editing
*/

/* ═══════════════════════════════════════════════════════════
   WORDPRESS-SPECIFIC OVERRIDES
   (everything below the next divider is the original design CSS)
   ═══════════════════════════════════════════════════════════ */

/* Sticky nav — the template-part wrapper must be the sticky element,
   otherwise .nav can only stick within its own wrapper's height */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}
body.admin-bar header.wp-block-template-part { top: 32px; }

/* Neutralize default block margins inside our sections */
.wp-block-group :is(p, h1, h2, h3, cite) { margin-top: 0; }

/* ═══════════════════════════════════════════════════════════
   RAQUEL MADRIGAL — Website Stylesheet
   Design: Helvetic Grid + New Mexico Palette (Option 2)
   ═══════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Colors */
  --ivory:    #F5F1E8;
  --ivory-2:  #EDE9DF;
  --charcoal: #2F2F31;
  --char-60:  #6B6865;
  --green:    #355C4A;
  --terra:    #B86846;
  --blue:     #5F7C8A;
  --gold:     #C8A45A;
  --hairline: rgba(47, 47, 49, 0.13);

  /* Typography */
  --font-display: 'Inter Tight', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Layout */
  --section-gap: 88px;
  --container:   1200px;
  --gutter:      40px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ─── BASE ───────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--charcoal);
  background: var(--ivory);
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── TYPE UTILITIES ─────────────────────────────────────── */
.label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--char-60);
}

.link-arrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--char-60);
  transition: color 0.15s ease;
}
.link-arrow:hover { color: var(--terra); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
  background: var(--charcoal);
  color: var(--ivory);
  border: 1px solid var(--charcoal);
}
.btn--primary:hover { opacity: 0.82; }

.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--hairline);
}
.btn--outline:hover { border-color: var(--charcoal); }

.btn--ghost {
  background: transparent;
  color: var(--char-60);
  border: none;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.btn--ghost:hover { color: var(--charcoal); }

.btn--gold {
  background: var(--gold);
  color: var(--charcoal);
  border: none;
}
.btn--gold:hover { opacity: 0.88; }

/* ─── SECTION HEADER ─────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

/* ══════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__mark {
  width: 32px;
  height: 32px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  color: var(--ivory);
  letter-spacing: -0.02em;
}
.nav__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--char-60);
  transition: color 0.15s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--charcoal);
}
/* Active underline */
.nav__links a[aria-current="page"] {
  position: relative;
}
.nav__links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--terra);
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--hairline);
}
.hero__label { margin-bottom: 28px; }

.hero__headline {
  display: flex;
  flex-direction: column;
  margin-bottom: 52px;
}
.hero__line1,
.hero__line2 {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  display: block;
}
.hero__line1 { color: var(--charcoal); }
.hero__line2 {
  color: var(--terra);
  font-style: italic;
  position: relative;
  display: inline-block;
}
/* Terracotta underline rule */
.hero__rule {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 10px;
  overflow: visible;
}

.hero__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}
.hero__tagline {
  max-width: 460px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--char-60);
  letter-spacing: -0.003em;
}
.hero__cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   TICKER
══════════════════════════════════════════════════════════ */
.ticker {
  background: var(--green);
  overflow: hidden;
  padding: 12px 0;
}
.ticker__track {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.ticker__item {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
  padding: 0 32px;
}
.ticker__dot {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════
   PORTFOLIO
══════════════════════════════════════════════════════════ */
.portfolio {
  padding: var(--section-gap) 0;
}
.portfolio__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
}
.portfolio__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Base card */
.portfolio__card {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}
/* Gradient overlay for text readability */
.portfolio__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}
.portfolio__card-meta,
.portfolio__card-footer {
  position: relative;
  z-index: 1;
}
.portfolio__card-footer { margin-top: auto; }

/* Featured card */
.portfolio__card--featured { min-height: 380px; }
.portfolio__card--featured:not([style*="url"]) {
  background-color: var(--charcoal);
}

/* Small cards */
.portfolio__card--sm { min-height: 175px; }
.portfolio__card--terra:not([style*="url"]) { background-color: var(--terra); }
.portfolio__card--green:not([style*="url"]) { background-color: var(--green); }

/* Card interior */
.portfolio__tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(245,241,232,0.25);
  background: rgba(245,241,232,0.08);
  color: rgba(245,241,232,0.65);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.portfolio__card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--ivory);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.portfolio__card--sm .portfolio__card-title { font-size: 17px; }
.portfolio__card-sub {
  color: rgba(245,241,232,0.45);
  font-size: 9px;
  margin-bottom: 12px;
}
.portfolio__card-link {
  font-size: 12px;
  font-weight: 500;
  color: rgba(245,241,232,0.55);
  transition: color 0.15s;
}
.portfolio__card-link:hover { color: var(--ivory); }

/* ══════════════════════════════════════════════════════════
   PULL QUOTE
══════════════════════════════════════════════════════════ */
.pull-quote {
  padding: 0 0 var(--section-gap);
}
.pull-quote__inner {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 24px;
  align-items: start;
  max-width: 660px;
  font-style: normal;
}
.pull-quote__rule {
  width: 4px;
  min-height: 80px;
  background: var(--terra);
}
.pull-quote__text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.pull-quote__cite { color: var(--char-60); }

/* ══════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════ */
.about {
  background: var(--charcoal);
  padding: var(--section-gap) 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__label {
  color: rgba(200, 164, 90, 0.65);
  margin-bottom: 20px;
}
.about__headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  color: var(--ivory);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.about__body {
  font-size: 16px;
  color: rgba(245,241,232,0.5);
  line-height: 1.65;
  letter-spacing: -0.003em;
  margin-bottom: 24px;
}
.about__quote {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  color: var(--terra);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.about__link {
  color: rgba(245,241,232,0.35);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(245,241,232,0.12);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.about__link:hover {
  color: var(--ivory);
  border-color: rgba(245,241,232,0.4);
}

/* Photo */
.about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
}
.about__photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.about__photo-placeholder span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Tags */
.about__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════ */
.services {
  padding: var(--section-gap) 0;
}
.services__label { margin-bottom: 28px; }
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.services__item {
  background: var(--ivory);
  padding: 36px 32px;
}
.services__num {
  display: block;
  font-size: 11px;
  margin-bottom: 14px;
}
.services__num--terra { color: var(--terra); }
.services__num--green { color: var(--green); }
.services__num--blue  { color: var(--blue); }
.services__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin-bottom: 14px;
}
.services__body {
  font-size: 14px;
  color: var(--char-60);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════════════
   PRESS
══════════════════════════════════════════════════════════ */
.press {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}
.press__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.press__label { white-space: nowrap; }
.press__outlet {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--char-60);
}
.press__divider {
  width: 1px;
  height: 14px;
  background: var(--hairline);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   CTA
══════════════════════════════════════════════════════════ */
.cta {
  background: var(--green);
  padding: var(--section-gap) 0;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta__headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 900;
  color: var(--ivory);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.cta__sub {
  font-size: 15px;
  color: rgba(245,241,232,0.45);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--charcoal);
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copy {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: rgba(245,241,232,0.2);
  letter-spacing: -0.02em;
}
.footer__links { display: flex; gap: 24px; }
.footer__link {
  font-size: 12px;
  color: rgba(245,241,232,0.2);
  transition: color 0.15s;
}
.footer__link:hover { color: rgba(245,241,232,0.6); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root {
    --gutter: 24px;
    --section-gap: 64px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --section-gap: 52px;
  }

  /* Nav — hide text links, keep contact button */
  .nav__links a:not(.btn) { display: none; }

  /* Hero */
  .hero { padding: 40px 0 36px; }
  .hero__bottom {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero__cta { flex-wrap: wrap; }

  /* Portfolio — single column */
  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio__card--featured { min-height: 260px; }
  .portfolio__card--sm { min-height: 160px; }

  /* About — stack */
  .about__grid { grid-template-columns: 1fr; gap: 36px; }

  /* Services — stack */
  .services__grid { grid-template-columns: 1fr; }
  .services__item { padding: 28px 20px; }

  /* CTA — stack */
  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  /* Footer — center */
  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}


/* Zero out WP default block-gap margins - all spacing is explicit in this design */
body .wp-block-group > * { margin-block-start: 0; }
