/* ══════════════════════════════════════
   ALMA THEME — Main Stylesheet
   Propuesta Final: Ultra Minimal + Header C
   ══════════════════════════════════════ */

:root {
  --primary: #4b6039;
  --primary-light: rgba(75, 96, 57, 0.08);
  --primary-hover: #3d4f2e;
  --accent: #f4a13d;
  --accent-light: rgba(244, 161, 61, 0.10);
  --accent-hover: #e0912e;
  --pink: #f4c1c0;
  --pink-light: rgba(244, 193, 192, 0.15);
  --sage: #aeb884;
  --cream: #f2eee9;
  --dark: #1d2835;
  --stone: #5a6670;
  --sand: #ddd8d2;
  --white: #FFFFFF;
  --mist: #8a9099;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;

  /* Legacy aliases */
  --terracotta: var(--primary);
  --terracotta-light: var(--primary-light);
  --terracotta-hover: var(--primary-hover);
  --charcoal: var(--dark);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 15px;
}

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

a { color: inherit; }

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════
   NAVIGATION
   ══════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 238, 233, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(221, 216, 210, 0.5);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-search {
  flex: 1;
  max-width: 380px;
  position: relative;
}

.nav-search input {
  width: 100%;
  height: 40px;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-pill);
  padding: 0 16px 0 40px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-search input::placeholder { color: var(--mist); }

.nav-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.nav-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mist);
  font-size: 14px;
  pointer-events: none;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  flex-shrink: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--stone);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--charcoal); }
.nav-links a[aria-current="page"],
.nav-links .current-menu-item a {
  color: var(--primary);
  background: var(--primary-light);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--charcoal);
  cursor: pointer;
  padding: 4px;
}

/* ══════════════════════════════════
   HERO (front-page)
   ══════════════════════════════════ */

.hero {
  text-align: center;
  padding: 80px 24px 40px;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  color: var(--primary);
  font-style: italic;
}

.hero-desc {
  font-size: 17px;
  color: var(--stone);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-search {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--sand);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: transparent;
  outline: none;
  color: var(--charcoal);
}

.hero-search input::placeholder { color: var(--mist); }

.hero-search button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 5px;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
  flex-shrink: 0;
}

.hero-search button:hover { background: var(--accent-hover); }

/* ── Stats Line ── */
.stats-line {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 8px 0 56px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════
   SECTIONS (shared)
   ══════════════════════════════════ */

.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.section-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.section-title--accent {
  color: var(--accent);
}

.section-link:hover { opacity: 0.7; }

/* ══════════════════════════════════
   CATEGORIES GRID
   ══════════════════════════════════ */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.category-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s ease;
}

.category-card:hover { transform: translateY(-4px); }

.category-card-image {
  aspect-ratio: 3 / 2;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  transition: box-shadow 0.25s ease;
}

.category-card:hover .category-card-image {
  box-shadow: 0 8px 30px rgba(29, 40, 53, 0.08);
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card span {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  display: block;
  text-align: center;
}

/* ══════════════════════════════════
   PROJECT CARDS
   ══════════════════════════════════ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.projects-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.project-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s ease;
}

.project-card:hover { transform: translateY(-4px); }

.project-card-image {
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  transition: box-shadow 0.25s;
}

.project-card:hover .project-card-image {
  box-shadow: 0 8px 30px rgba(29, 40, 53, 0.08);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.project-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--charcoal);
}

.project-card p {
  font-size: 13px;
  color: var(--stone);
  line-height: 1.5;
}

/* ══════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════ */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content .section-title em {
  color: var(--primary);
  font-style: normal;
}

.about-text {
  font-size: 15px;
  color: var(--stone);
  line-height: 1.7;
  margin: 20px 0 36px;
}

.about-stats {
  display: flex;
  gap: 40px;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ══════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════ */

.contact-block {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  color: var(--white);
}

.contact-left h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 12px;
}

.contact-left p {
  font-size: 14px;
  color: var(--mist);
  margin-bottom: 32px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.social-link:hover {
  border-color: var(--accent);
  background: rgba(244, 161, 61, 0.15);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.35); }

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }

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

.contact-form button,
.contact-form input[type="submit"],
.contact-form .wpcf7-submit {
  align-self: flex-start;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 44px;
}

.contact-form button:hover,
.contact-form input[type="submit"]:hover,
.contact-form .wpcf7-submit:hover { background: var(--accent-hover); }

/* ══════════════════════════════════
   PAGE HEADER (archive, pages)
   ══════════════════════════════════ */

.page-header {
  text-align: center;
  padding: 64px 24px 40px;
  max-width: 600px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 16px;
  color: var(--stone);
}

/* ══════════════════════════════════
   FILTERS BAR (archive)
   ══════════════════════════════════ */

.filters-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.search-row {
  display: flex;
  gap: 0;
  max-width: 560px;
  margin: 0 auto 28px;
  background: var(--white);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--sand);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-row input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: transparent;
  outline: none;
  color: var(--charcoal);
}

.search-row input::placeholder { color: var(--mist); }

.search-row button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 10px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin: 4px;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
  flex-shrink: 0;
  min-height: 44px;
}

.search-row button:hover { background: var(--accent-hover); }

.pills-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  justify-content: center;
  flex-wrap: wrap;
  -webkit-overflow-scrolling: touch;
}

.pills-scroll::-webkit-scrollbar { display: none; }

.pill {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--sand);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.results-count {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--mist);
  font-weight: 500;
}

/* ── Load More ── */
.load-more {
  text-align: center;
  padding: 56px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.load-more button {
  background: var(--white);
  border: 1.5px solid var(--sand);
  padding: 14px 40px;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 48px;
}

.load-more button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.load-more .count {
  font-size: 12px;
  color: var(--mist);
}

/* ══════════════════════════════════
   SINGLE DETAIL PAGE
   ══════════════════════════════════ */

.breadcrumb {
  padding: 24px 0 0;
  font-size: 13px;
  color: var(--mist);
}

.breadcrumb a {
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--mist); margin: 0 6px; }
.breadcrumb .current { color: var(--charcoal); font-weight: 500; }

.banner {
  margin-top: 24px;
}

.banner-image {
  width: 100%;
  aspect-ratio: 21 / 7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand);
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  padding: 48px 0 64px;
  align-items: start;
}

.detail-main .tag-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  text-decoration: none;
}

.detail-main h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.detail-main .tagline {
  font-size: 17px;
  font-style: italic;
  color: var(--stone);
  margin-bottom: 28px;
  line-height: 1.5;
}

.detail-main .description {
  font-size: 15px;
  color: var(--stone);
  line-height: 1.75;
  margin-bottom: 40px;
}

.gallery-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mist);
  margin-bottom: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sand);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Gallery Item as Link ── */
a.gallery-item--link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 40, 53, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.gallery-item-overlay svg {
  opacity: 0;
  color: var(--white);
  transition: opacity 0.25s, transform 0.25s;
  transform: translate(-4px, 4px);
}

a.gallery-item--link:hover .gallery-item-overlay {
  background: rgba(29, 40, 53, 0.35);
}

a.gallery-item--link:hover .gallery-item-overlay svg {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Brand History ── */
.brand-history {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--sand);
}

.brand-history-content {
  font-size: 15px;
  color: var(--stone);
  line-height: 1.75;
}

.brand-history-content p {
  margin-bottom: 16px;
}

/* ── Brand Title (green) ── */
.detail-title--brand {
  color: var(--primary) !important;
}

/* ── Sidebar ── */
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 88px;
  border: 1px solid rgba(221, 216, 210, 0.6);
}

.sidebar-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--charcoal);
}

.social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius);
  border: 1.5px solid var(--sand);
  background: var(--cream);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  transition: border-color 0.2s, background 0.2s;
  min-height: 44px;
}

.social-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.social-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Social Stack (full-width buttons) ── */
.social-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.social-btn-full {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--sand);
  background: var(--cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  min-height: 44px;
}

.social-btn-full svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-btn-full:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.social-btn--whatsapp:hover { border-color: #25d366; color: #25d366; }
.social-btn--instagram:hover { border-color: #e4405f; color: #e4405f; }
.social-btn--facebook:hover { border-color: #1877f2; color: #1877f2; }
.social-btn--tiktok:hover { border-color: #000; color: #000; }

.info-rows {
  margin-bottom: 28px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(221, 216, 210, 0.5);
  font-size: 14px;
}

.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--stone); font-weight: 400; }
.info-row .value { font-weight: 600; color: var(--charcoal); }

.cta-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 52px;
}

.cta-btn:hover { background: var(--accent-hover); }

/* ── Related ── */
.related-section {
  padding: 0 0 40px;
}

.related-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.related-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--charcoal);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--stone);
  text-decoration: none;
  padding: 12px 0;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--primary); }

/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */

.footer {
  padding: 48px 0 32px;
  text-align: center;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 36px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-logos img:hover { opacity: 1; }

.footer-copy {
  font-size: 12px;
  color: var(--mist);
}

/* ══════════════════════════════════
   GENERIC PAGE
   ══════════════════════════════════ */

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-content h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.page-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
  margin: 40px 0 16px;
}

.page-content p {
  color: var(--stone);
  line-height: 1.75;
  margin-bottom: 16px;
}

.page-content a {
  color: var(--primary);
}

/* ══════════════════════════════════
   LOADING STATE
   ══════════════════════════════════ */

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--sand);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */

@media (max-width: 1024px) {
  .categories-grid,
  .categories-grid--3col { grid-template-columns: repeat(3, 1fr); }
  .projects-grid--4col { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-search { display: none; }
  .nav-inner { height: 56px; }
  .nav-toggle { display: block; }

  .hero { padding: 64px 24px 32px; }
  .hero h1 { font-size: 34px; }
  .hero-search { flex-direction: column; border-radius: var(--radius); }
  .hero-search input { padding: 14px 18px; }
  .hero-search button { margin: 0 5px 5px; border-radius: var(--radius); }

  .stats-line { gap: 28px; padding-bottom: 40px; }
  .stat-num { font-size: 28px; }

  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }

  .categories-grid,
  .categories-grid--3col { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .projects-grid,
  .projects-grid--4col { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-stats { gap: 24px; }

  .contact-block {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }

  .section-header {
    flex-direction: column;
    gap: 8px;
  }

  .page-header { padding: 48px 24px 32px; }
  .pills-scroll { justify-content: flex-start; flex-wrap: nowrap; }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sidebar-card { position: static; }
  .banner-image { aspect-ratio: 16 / 7; }
}

@media (max-width: 480px) {
  .nav-links a { padding: 8px 10px; font-size: 13px; }
  .hero h1 { font-size: 28px; }
  .stats-line { flex-direction: column; gap: 16px; }
  .about-stats { flex-direction: column; gap: 16px; }
  .projects-grid,
  .projects-grid--4col { grid-template-columns: 1fr; gap: 28px; }
  .sidebar-card { padding: 24px; }
  .social-row { flex-wrap: wrap; }
  .social-btn { min-width: 100px; }
  .categories-grid,
  .categories-grid--3col { grid-template-columns: 1fr; gap: 20px; }
}
