/*
Theme Name: Industrial Property Theme
Theme URI: https://github.com/your-org/industrial-property-theme
Author: Your Agency
Author URI: https://yourwebsite.com
Description: A premium, mobile-first WordPress theme template for industrial property developments. All content, colours, images, labels and settings are managed through the Customizer — zero code editing required per project. Optimised for speed, SEO and accessibility.
Version: 2.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: industrial-property
Tags: industrial, property, real-estate, one-page, responsive, fast, seo, customizer
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Brand Colours */
  --c-ore:       #1A1A1A;   /* Deep forge black */
  --c-iron:      #2C2C2C;   /* Secondary dark */
  --c-steel:     #4A4A4A;   /* Mid-tone */
  --c-slate:     #6B7280;   /* Body text secondary */
  --c-concrete:  #F4F2EE;   /* Warm off-white bg */
  --c-light:     #FAFAF8;   /* Page background */
  --c-white:     #FFFFFF;
  --c-copper:    #B87333;   /* Primary accent — warm industrial */
  --c-copper-lt: #D4914A;   /* Hover copper */
  --c-copper-bg: #FDF6EE;   /* Copper tint bg */
  --c-line:      #E5E2DC;   /* Dividers */

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Sizing */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --shadow-card: 0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-hover: 0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);

  /* Layout */
  --max-w: 1280px;
  --gap: clamp(1rem, 4vw, 2rem);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.7;
  color: var(--c-ore);
  background: var(--c-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-ore);
}

h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 600; }
h4 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; }

p { max-width: 68ch; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--c-steel);
  line-height: 1.6;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-copper);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section--alt { background: var(--c-concrete); }
.section--dark { background: var(--c-ore); color: var(--c-light); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--gap); }

.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-sm { display: flex; flex-direction: column; gap: 0.5rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-copper);
  color: var(--c-white);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--c-copper-lt);
  box-shadow: 0 4px 20px rgba(184,115,51,.35);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--c-copper);
  border: 1.5px solid var(--c-copper);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--c-copper);
  color: var(--c-white);
}

.btn--ghost {
  background: rgba(255,255,255,.12);
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn--ghost:hover { background: rgba(255,255,255,.2); }

.btn--lg { padding: 1.125rem 2.5rem; font-size: 1rem; }

/* ============================================================
   SITE HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
  height: 70px;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.15rem;
}

.site-logo__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-ore);
  letter-spacing: -0.02em;
}

.site-logo__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-copper);
}

/* Primary Nav */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-nav a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-steel);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .current-menu-item a {
  color: var(--c-ore);
  background: var(--c-copper-bg);
}

.primary-nav .btn { margin-left: 0.75rem; padding: 0.625rem 1.25rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-ore);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - 70px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--c-ore);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26,26,26,.85) 0%, rgba(44,44,44,.6) 100%),
    url('assets/hero-bg.jpg') center/cover no-repeat;
  z-index: 0;
}

/* Subtle industrial grid overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,115,51,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,115,51,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--c-white);
  padding-block: 4rem;
}

.hero__label {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--c-copper-lt);
}

.hero__title {
  color: var(--c-white);
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: normal;
  color: var(--c-copper-lt);
}

.hero__lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,.75);
  margin-bottom: 2.5rem;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Launch badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 0.625rem 1.25rem;
  background: rgba(184,115,51,.15);
  border: 1px solid rgba(184,115,51,.3);
  border-radius: 999px;
  color: var(--c-copper-lt);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-copper-lt);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--c-ore);
  color: var(--c-white);
  padding-block: 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.stats-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-around;
}

.stat {
  text-align: center;
  flex: 1 1 120px;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--c-copper-lt);
  line-height: 1;
}

.stat__label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.55);
  margin-top: 0.35rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header .label { margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header .lead { margin-bottom: 0; }

/* ============================================================
   ABOUT / DEVELOPMENT OVERVIEW
   ============================================================ */
.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--c-concrete);
}

.about__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about__media:hover img { transform: scale(1.03); }

.about__accent {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--c-ore);
  color: var(--c-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--c-copper);
}

.about__accent strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--c-copper-lt);
  line-height: 1;
}

.about__accent span { font-size: 0.8125rem; color: rgba(255,255,255,.6); }

.about__body { display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
.about__body p { color: var(--c-steel); }

.about__highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.highlight-item {
  padding: 1rem;
  background: var(--c-concrete);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--c-copper);
}

.highlight-item strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.highlight-item span { font-size: 0.8125rem; color: var(--c-slate); }

/* ============================================================
   UNITS / PROPERTIES CARDS
   ============================================================ */
.unit-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

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

.unit-card__media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-concrete);
}

.unit-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.unit-card:hover .unit-card__media img { transform: scale(1.05); }

.unit-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
}

.unit-card__media { position: relative; }

.badge--available { background: #D1FAE5; color: #065F46; }
.badge--coming-soon { background: var(--c-copper-bg); color: var(--c-copper); }
.badge--reserved { background: #FEE2E2; color: #991B1B; }

.unit-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.unit-card__title { font-size: 1.125rem; }
.unit-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.spec {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--c-slate);
}

.spec__icon { width: 16px; height: 16px; color: var(--c-copper); flex-shrink: 0; }

.unit-card__price {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.unit-card__price strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--c-ore);
}

.unit-card__price span { font-size: 0.8125rem; color: var(--c-slate); }

/* ============================================================
   FEATURES / AMENITIES
   ============================================================ */
.feature-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--transition);
}

.feature-card:hover { box-shadow: var(--shadow-hover); }

.feature-card__icon {
  width: 48px; height: 48px;
  background: var(--c-copper-bg);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--c-copper);
  flex-shrink: 0;
}

.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.05rem; }
.feature-card p { font-size: 0.9rem; color: var(--c-slate); margin: 0; }

/* ============================================================
   LOCATION / MAP SECTION
   ============================================================ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.location-info { display: flex; flex-direction: column; gap: 1.5rem; }

.distance-list { display: flex; flex-direction: column; gap: 0.75rem; }

.distance-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--c-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.distance-item__icon {
  width: 36px; height: 36px;
  background: var(--c-copper-bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--c-copper);
  flex-shrink: 0;
}

.distance-item__name { font-weight: 600; font-size: 0.9375rem; }
.distance-item__dist { font-size: 0.8125rem; color: var(--c-slate); }
.distance-item__time { margin-left: auto; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--c-copper); font-weight: 600; }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--c-concrete);
  box-shadow: var(--shadow-card);
}

.map-embed iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}

/* ============================================================
   CONTACT / ENQUIRY FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 2rem; }

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

.contact-detail__icon {
  width: 40px; height: 40px;
  background: var(--c-copper-bg);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--c-copper);
  flex-shrink: 0;
}

.contact-detail h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.contact-detail p { font-size: 0.9rem; color: var(--c-slate); margin: 0; }

/* Form */
.enquiry-form {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-ore);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--c-ore);
  background: var(--c-light);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-md);
  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(--c-copper);
  box-shadow: 0 0 0 3px rgba(184,115,51,.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }
.form-group--full { grid-column: 1 / -1; }

.form-note {
  font-size: 0.8125rem;
  color: var(--c-slate);
  margin-top: 0.75rem;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 0.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-item {
  overflow: hidden;
  background: var(--c-concrete);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 5; }
.gallery-item:nth-child(3) { grid-column: span 3; }
.gallery-item:nth-child(4) { grid-column: span 2; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  padding: 2rem;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--c-ore);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: auto;
}

.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-concrete);
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-card__name { font-weight: 600; font-size: 0.9375rem; }
.testimonial-card__role { font-size: 0.8125rem; color: var(--c-slate); }

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--c-copper);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--c-ore);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184,115,51,.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .label { color: var(--c-copper-lt); }
.cta-section h2 { color: var(--c-white); }
.cta-section .lead { color: rgba(255,255,255,.65); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: #111;
  color: rgba(255,255,255,.65);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand__logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 28ch; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a { font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--c-copper-lt); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: 0.8125rem;
}

.footer-bottom a:hover { color: var(--c-copper-lt); }

/* ============================================================
   SKIP TO CONTENT (ACCESSIBILITY)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  background: var(--c-copper);
  color: var(--c-white);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   WORDPRESS GUTENBERG ALIGNMENT CLASSES
   ============================================================ */
.wp-block-image.alignwide, .alignwide { max-width: 1100px; margin-inline: auto; }
.wp-block-image.alignfull, .alignfull { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 0.875rem; color: var(--c-slate); margin-top: 0.5rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.page-numbers {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1.5px solid var(--c-line);
  color: var(--c-steel);
  transition: all var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--c-copper);
  border-color: var(--c-copper);
  color: var(--c-white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-rows: repeat(4, 200px); }
  .gallery-item:nth-child(1) { grid-column: span 12; grid-row: span 1; }
  .gallery-item:nth-child(2) { grid-column: span 12; }
  .gallery-item:nth-child(3) { grid-column: span 6; }
  .gallery-item:nth-child(4) { grid-column: span 6; }
}

@media (max-width: 768px) {
  .primary-nav {
    display: none;
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--c-white);
    padding: 1.5rem;
    z-index: 99;
    overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0.25rem; }
  .primary-nav a { padding: 0.75rem 1rem; font-size: 1.05rem; }
  .primary-nav .btn { width: 100%; justify-content: center; margin: 0.75rem 0 0; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .about__highlights { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-bar__inner { gap: 1.5rem; }
  .gallery-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; aspect-ratio: 4/3; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(n) { grid-column: span 1; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn, .hero__actions { display: none; }
  body { font-size: 12pt; color: #000; }
  h1, h2, h3 { page-break-after: avoid; }
}

/* ============================================================
   SINGLE POST / UNIT LAYOUT
   ============================================================ */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.single-article { min-width: 0; }

.single-hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
  background: var(--c-concrete);
}

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

.single-header { margin-bottom: 2rem; }

.single-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: .75rem;
}

.single-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--c-iron);
}

.single-content p  { margin-bottom: 1.5rem; max-width: 70ch; }
.single-content h2 { margin: 2.5rem 0 1rem; font-size: 1.75rem; }
.single-content h3 { margin: 2rem 0 .75rem; font-size: 1.35rem; }
.single-content h4 { margin: 1.75rem 0 .5rem; }
.single-content ul,
.single-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.single-content li { margin-bottom: .5rem; }
.single-content blockquote {
  border-left: 3px solid var(--c-copper);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--c-copper-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
}
.single-content img {
  border-radius: var(--radius-md);
  margin-block: 1.5rem;
}
.single-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .9375rem;
}
.single-content th {
  background: var(--c-concrete);
  padding: .625rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--c-line);
}
.single-content td {
  padding: .5rem 1rem;
  border-bottom: 1px solid var(--c-line);
}
.single-content code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--c-concrete);
  padding: .1em .4em;
  border-radius: 3px;
}
.single-content pre {
  background: var(--c-ore);
  color: var(--c-concrete);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.single-content pre code { background: none; padding: 0; }
.single-content hr {
  border: none;
  border-top: 1px solid var(--c-line);
  margin-block: 2.5rem;
}
.single-content a {
  color: var(--c-copper);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.single-content a:hover { color: var(--c-copper-lt); }

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  padding: 1rem 1.25rem;
  background: var(--c-concrete);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--c-line);
  transition: border-color var(--transition), background var(--transition);
}

.post-navigation .nav-next { text-align: right; }

.post-navigation a {
  display: block;
  color: var(--c-ore);
  font-weight: 500;
  font-size: .9375rem;
}

.post-navigation a:hover .label { color: var(--c-copper-lt); }
.post-navigation a:hover {
  border-color: var(--c-copper);
}

/* Tags */
.single-tags a {
  display: inline-block;
  padding: .25rem .75rem;
  background: var(--c-concrete);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  margin: .25rem .2rem;
  color: var(--c-steel);
  border: 1px solid var(--c-line);
  transition: all var(--transition);
}
.single-tags a:hover {
  background: var(--c-copper-bg);
  border-color: var(--c-copper);
  color: var(--c-copper);
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Entry content — shared between page.php and single.php */
.entry-content { min-width: 0; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.site-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.widget {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--c-copper);
  color: var(--c-ore);
}

.widget ul { display: flex; flex-direction: column; gap: .5rem; }
.widget li { font-size: .9375rem; }
.widget a  { color: var(--c-steel); transition: color var(--transition); }
.widget a:hover { color: var(--c-copper); }

/* ============================================================
   ARCHIVE — POST NAVIGATION (wp_pagenavi / core)
   ============================================================ */
.nav-links {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: .75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9375rem;
  border: 1.5px solid var(--c-line);
  color: var(--c-steel);
  transition: all var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--c-copper);
  border-color: var(--c-copper);
  color: var(--c-white);
}

.page-numbers.dots {
  border-color: transparent;
  background: none;
  cursor: default;
}

/* ============================================================
   SEARCH FORM (searchform.php)
   ============================================================ */
.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--c-copper);
  box-shadow: 0 0 0 3px rgba(184,115,51,.12);
}

/* ============================================================
   SINGLE — UNIT HERO
   ============================================================ */
.unit-hero { position: relative; overflow: hidden; }

.unit-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,115,51,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,115,51,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-line);
}

.comments-title { font-size: 1.35rem; margin-bottom: 1.5rem; }

.comment-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }

.comment-body {
  padding: 1.25rem 1.5rem;
  background: var(--c-concrete);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--c-line);
}

.comment-author .fn { font-weight: 600; }
.comment-metadata { font-size: .8125rem; color: var(--c-slate); margin-bottom: .75rem; }
.comment-metadata a { color: inherit; }
.comment-content p { font-size: .9375rem; margin: 0; }

.comment-respond {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.comment-reply-title { font-size: 1.15rem; margin-bottom: 1.25rem; }

.comment-form label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: .9375rem;
  background: var(--c-light);
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--c-copper);
  box-shadow: 0 0 0 3px rgba(184,115,51,.12);
}

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

.comment-form .submit {
  background: var(--c-copper);
  color: var(--c-white);
  padding: .875rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.comment-form .submit:hover {
  background: var(--c-copper-lt);
  transform: translateY(-1px);
}

/* ============================================================
   GUTENBERG BLOCK STYLES
   ============================================================ */
.wp-block-image img { border-radius: var(--radius-md); }
.wp-block-quote {
  border-left: 3px solid var(--c-copper);
  padding-left: 1.5rem;
  margin-left: 0;
  font-family: var(--font-display);
  font-style: italic;
}
.wp-block-pullquote {
  border-top: 3px solid var(--c-copper);
  border-bottom: 3px solid var(--c-copper);
  padding-block: 1.5rem;
  text-align: center;
}
.wp-block-button__link {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm) !important;
}
.wp-block-separator { border-color: var(--c-line); }
.wp-block-cover { border-radius: var(--radius-lg); }
.wp-block-table td,
.wp-block-table th { padding: .625rem 1rem; border-color: var(--c-line); }
.wp-block-table thead { background: var(--c-concrete); font-weight: 600; }
.is-style-stripes .wp-block-table tr:nth-child(odd) { background: var(--c-concrete); }

/* ============================================================
   RESPONSIVE — INNER TEMPLATES
   ============================================================ */
@media (max-width: 900px) {
  .single-layout,
  .page-layout { grid-template-columns: 1fr; }
  .site-sidebar { position: static; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
}

@media (max-width: 640px) {
  .single-content h2 { font-size: 1.4rem; }
  .single-content h3 { font-size: 1.15rem; }
  .unit-hero > .container { padding-block: 2.5rem; }
}

/* ============================================================
   SINGLE UNIT — PHOTO GALLERY GRID RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  /* Collapse the 3-col gallery to 2 col on mobile */
  .unit-gallery-grid { grid-template-columns: repeat(2,1fr) !important; }
}

/* ============================================================
   SINGLE UNIT — STICKY SIDEBAR RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  /* Stack the unit detail two-column layout */
  [style*="grid-template-columns:1fr 360px"] {
    grid-template-columns: 1fr !important;
  }
  [style*="position:sticky;top:90px;display:flex;flex-direction:column"] {
    position: static !important;
  }
}
