/* Blue Ram Redesigns — Eclectic, teal/warm grey */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --teal: #1a7a72;
  --teal-light: #e8f5f3;
  --teal-dark: #0f4f49;
  --warm-grey: #6b5e54;
  --warm-grey-light: #f7f4f1;
  --cream: #fdfbf8;
  --text: #3d3530;
  --text-muted: #8a7e76;
  --white: #ffffff;
  --border: #e8e2dc;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 740px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- NAV ---- */
header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--teal-dark);
  text-decoration: none;
}
.brand-icon { width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; margin-right: 6px; }


.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a {
  color: var(--warm-grey);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---- HERO ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  align-items: center;
}

.hero-text {
  padding: 3rem 2rem 3rem 0;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--teal-dark);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-img {
  height: 100%;
  min-height: 400px;
  overflow: hidden;
  border-left: 4px solid var(--teal);
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

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

.btn-outline {
  border: 2px solid var(--teal);
  color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

/* ---- PAGE HERO ---- */
.page-hero {
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
  background: var(--teal-light);
  border-bottom: 2px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--teal-dark);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- SECTIONS ---- */
section { padding: 4.5rem 0; }
.section-alt { background: var(--warm-grey-light); }
.section-teal { background: var(--teal-light); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--teal-dark);
  margin-bottom: 0.8rem;
}

h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1rem; }

/* ---- GRID ---- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body { padding: 1.3rem 1.5rem; }
.card-body h3 { margin-bottom: 0.4rem; }
.card-body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }

/* ---- BEFORE / AFTER GALLERY ---- */
.gallery-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.gallery-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.gallery-images figure {
  position: relative;
  overflow: hidden;
}

.gallery-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-images figcaption {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--teal);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
}

.gallery-body { padding: 1.5rem 2rem; }
.gallery-body h3 { font-size: 1.3rem; }
.gallery-body p { color: var(--text-muted); font-size: 0.95rem; }

/* ---- PROCESS STEPS ---- */
.steps {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--teal);
  background: var(--teal-light);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { color: var(--teal-dark); margin-bottom: 0.3rem; }
.step p { color: var(--text-muted); margin-bottom: 0; }

/* ---- ARTICLE ---- */
.article-header {
  padding: 5rem 1.5rem 2.5rem;
  text-align: center;
  background: var(--teal-light);
  border-bottom: 2px solid var(--border);
}

.article-header h1 {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  color: var(--teal-dark);
  max-width: 650px;
  margin: 0 auto 0.6rem;
}

.article-header .meta {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.article-body { padding: 3rem 0 4rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.article-body p { font-size: 1.02rem; line-height: 1.8; }

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.article-body li { margin-bottom: 0.5rem; line-height: 1.7; }

.article-body blockquote {
  border-left: 4px solid var(--teal);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--teal-light);
  border-radius: 0 6px 6px 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-img {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ---- CTA ---- */
.cta {
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: var(--teal-dark);
  color: var(--white);
}

.cta h2 { color: var(--white); font-size: 2rem; margin-bottom: 0.6rem; }
.cta p { color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 2rem; }

.cta .btn-primary {
  background: var(--white);
  color: var(--teal-dark);
}

.cta .btn-primary:hover {
  background: var(--teal-light);
}

/* ---- FOOTER ---- */
footer {
  padding: 2.5rem 0;
  border-top: 2px solid var(--border);
  background: var(--warm-grey-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links { display: flex; gap: 1.3rem; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--teal); }

.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-img { min-height: 300px; border-left: none; border-top: 4px solid var(--teal); }
  .hero-text { padding: 2.5rem 0; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    padding: 1.2rem 1.5rem;
    gap: 0.8rem;
  }
  .nav-toggle { display: block; }

  .hero-text h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .article-header h1 { font-size: 1.7rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery-images { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
