/* ===== RJ Minerals — base styles ===== */

:root {
  --red-deep: #7a1e14;
  --red-bright: #9c2a1c;
  --red-dark: #4a0e08;
  --charcoal: #211a16;
  --stone-grey: #6b6560;
  --cream: #f5f1ec;
  --cream-dark: #ece4d8;
  --gold: #b8894b;
  --white: #ffffff;

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--stone-grey); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8em;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--red-deep);
  color: var(--white);
  border-color: var(--red-deep);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--red-deep); }

.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline-dark:hover { background: var(--charcoal); color: var(--white); }

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
}

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

.logo-link img { height: 44px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--charcoal);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red-deep);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--charcoal);
}

/* ===== Hero ===== */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-deep) 45%, var(--red-bright) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255,255,255,0.06) 0%, transparent 40%),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 40px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 110px 24px 100px;
}

.hero h1 { color: var(--white); max-width: 780px; }
.hero .lede { color: rgba(255,255,255,0.88); font-size: 1.15rem; max-width: 640px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 640px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.25);
}

.hero-stats .num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--white);
}
.hero-stats .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.75);
}

/* ===== Page header (non-home) ===== */

.page-hero {
  background: linear-gradient(135deg, var(--red-dark), var(--red-deep));
  color: var(--white);
  padding: 72px 24px 56px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto; }

/* ===== Sections ===== */

.section { padding: 88px 0; }
.section-alt { background: var(--cream); }
.section-header { max-width: 680px; margin-bottom: 48px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Feature grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  padding: 32px 28px;
  border-radius: 4px;
}
.card .icon-bar {
  width: 44px;
  height: 4px;
  background: var(--gold);
  margin-bottom: 20px;
}

/* Split section (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-media {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--red-deep), var(--red-dark));
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Table (specs) */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
.specs-table th, .specs-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.95rem;
}
.specs-table th {
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.4px;
}
.specs-table tr:nth-child(even) td { background: var(--cream); }

/* Finish swatches */
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.swatch {
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
}
.swatch-face {
  height: 110px;
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
}
.swatch-face.polished { filter: brightness(1.15) saturate(1.1); }
.swatch-face.flamed { filter: brightness(0.85) saturate(0.8) contrast(1.1); }
.swatch-face.honed { filter: brightness(1.0) saturate(0.9); }
.swatch-face.leather { filter: brightness(1.05) saturate(1.0) contrast(0.95); }
.swatch-info { padding: 14px 16px; }
.swatch-info h4 { margin: 0 0 4px; font-size: 1rem; }
.swatch-info p { margin: 0; font-size: 0.85rem; }

/* Project cards */
.project-card {
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  background: var(--white);
  padding: 32px;
}
.project-card + .project-card { margin-top: 32px; }
.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

/* CTA band */
.cta-band {
  background: var(--charcoal);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.75); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.contact-item {
  border: 1px solid var(--cream-dark);
  padding: 28px;
  border-radius: 4px;
}
.contact-item .icon-bar { width: 32px; height: 3px; background: var(--gold); margin-bottom: 16px; }
.contact-item a, .contact-item p { color: var(--charcoal); margin: 0; }

/* ===== Footer ===== */

.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--cream-dark);
    border-bottom: 1px solid var(--cream-dark);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 24px; border-bottom: 1px solid var(--cream-dark); border-radius: 0; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-inner { padding: 72px 24px 64px; }
  .hero-stats { grid-template-columns: 1fr; gap: 20px; }
  .hero-stats .num { font-size: 1.5rem; }
}
