/* suedafrika.co.za — Mobile-first CSS */

:root {
  --earth: #8B6914;
  --earth-dark: #5C4509;
  --earth-light: #C9A84C;
  --sage: #5A7A4A;
  --sage-light: #7FA665;
  --sky: #E8F4F8;
  --cream: #FAF7F2;
  --charcoal: #2C2C2C;
  --mid: #555;
  --muted: #888;
  --border: #DDD5C8;
  --white: #FFF;
  --shadow: 0 2px 12px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.18);
  --radius: 8px;
  --transition: .2s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
}

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

a { color: var(--earth); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--earth-dark); }

/* ── Typography ── */

h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  line-height: 1.25;
  color: var(--charcoal);
}

h1 { font-size: clamp(1.75rem, 5vw, 3rem); margin-bottom: .5rem; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); margin-bottom: .75rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin-bottom: .5rem; }
h4 { font-size: 1.05rem; margin-bottom: .4rem; }

p { margin-bottom: 1.1rem; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }

.lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--mid);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* ── Layout ── */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--white);
}

.section--dark {
  background: var(--charcoal);
  color: var(--cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--cream);
}

.section--sage {
  background: var(--sage);
  color: var(--white);
}

.section--sage h1,
.section--sage h2,
.section--sage h3,
.section--sage p {
  color: var(--white);
}

/* ── Navigation ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}

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

.nav__logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--earth-dark);
  white-space: nowrap;
}

.nav__logo span { color: var(--sage); }

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
}

.nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.25rem;
  flex-direction: column;
  gap: .1rem;
}

.nav__menu.open { display: flex; }

.nav__menu a {
  display: block;
  padding: .55rem .25rem;
  font-size: .95rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border);
}

.nav__menu a:last-child { border-bottom: none; }
.nav__menu a:hover, .nav__menu a.active { color: var(--earth); }

@media (min-width: 768px) {
  .nav__toggle { display: none; }
  .nav__menu {
    display: flex;
    position: static;
    flex-direction: row;
    gap: .25rem;
    border: none;
    padding: 0;
    background: none;
  }
  .nav__menu a {
    padding: .35rem .65rem;
    border-radius: 4px;
    border-bottom: none;
    font-size: .88rem;
    letter-spacing: .02em;
  }
  .nav__menu a:hover { background: rgba(139,105,20,.08); }
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 2.5rem 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.hero__content h1 { color: var(--white); margin-bottom: .5rem; }
.hero__content p { color: rgba(255,255,255,.88); font-size: 1.1rem; margin-bottom: 1.25rem; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 100px;
  padding: .3rem .85rem;
  font-size: .82rem;
  color: var(--white);
  white-space: nowrap;
}

.badge--earth {
  background: var(--earth);
  border-color: var(--earth);
  color: var(--white);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.75rem;
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: .03em;
  text-decoration: none;
}

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

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

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}

.btn--outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  color: var(--white);
}

.btn--sage {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.btn--sage:hover {
  background: #4a6a3a;
  border-color: #4a6a3a;
  color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

/* ── Key Facts Bar ── */

.facts-bar {
  background: var(--earth-dark);
  color: var(--white);
  padding: 1.25rem 0;
}

.facts-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  align-items: center;
}

.fact {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
}

.fact__icon { font-size: 1.1rem; }
.fact__value { font-weight: 700; font-size: 1.1rem; }
.fact__label { opacity: .8; font-size: .8rem; }

/* ── Cards ── */

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

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

.card__body {
  padding: 1.25rem;
}

.card__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: .4rem;
}

/* ── Photo Gallery ── */

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

@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery__item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
}

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

.gallery__item:hover img { transform: scale(1.06); }

/* ── Gallery Feature ── */

.gallery-feature {
  display: grid;
  gap: .5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .gallery-feature {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
  }
  .gallery-feature__main { grid-row: 1 / 3; }
}

.gallery-feature__main img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-feature__side {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.gallery-feature__side img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ── Two-column layout ── */

.two-col {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col--reverse .two-col__img { order: -1; }
}

.two-col__img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Pricing ── */

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }

.pricing-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--white);
}

.pricing-card--featured {
  border-color: var(--earth);
  background: var(--cream);
}

.pricing-card__label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: .5rem;
}

.pricing-card__price {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--earth-dark);
  line-height: 1;
  margin-bottom: .25rem;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.pricing-card__features li {
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  display: flex;
  gap: .5rem;
  align-items: flex-start;
}

.pricing-card__features li::before {
  content: "✓";
  color: var(--sage);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Drive Time Table ── */

.drive-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.drive-table th {
  background: var(--earth-dark);
  color: var(--white);
  padding: .75rem 1rem;
  text-align: left;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.drive-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

.drive-table tr:last-child td { border-bottom: none; }
.drive-table tr:nth-child(even) td { background: var(--cream); }

/* ── Highlight boxes ── */

.highlight-box {
  border-left: 4px solid var(--earth);
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.highlight-box--sage {
  border-color: var(--sage);
}

/* ── Icon List ── */

.icon-list {
  list-style: none;
  padding: 0;
}

.icon-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}

.icon-list li:last-child { border-bottom: none; }
.icon-list__icon { font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }

/* ── Map ── */

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
}

/* ── Contact Form ── */

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

.form__group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form__label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--mid);
}

.form__input,
.form__select,
.form__textarea {
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition);
  width: 100%;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--earth);
}

.form__textarea { resize: vertical; min-height: 130px; }

/* ── Blog ── */

.blog-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.blog-card:hover { transform: translateY(-3px); }

.blog-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__body p { flex: 1; }

.article-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.article-body {
  max-width: 720px;
}

.article-body h2 { margin-top: 2rem; color: var(--earth-dark); }
.article-body h3 { margin-top: 1.5rem; color: var(--sage); }

/* ── Section heading ── */

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading__sub {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: .5rem;
}

.section-heading h2 {
  margin-bottom: .5rem;
}

.section-heading p {
  color: var(--mid);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Footer ── */

.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer__brand h3 { color: var(--white); margin-bottom: .5rem; }

.footer__nav h4 {
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.footer__nav ul { list-style: none; padding: 0; }
.footer__nav li { margin-bottom: .35rem; }
.footer__nav a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer__nav a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ── Page header ── */

.page-header {
  background: var(--earth-dark);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}

.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,.82); margin-bottom: 0; }

/* ── Breadcrumb ── */

.breadcrumb {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ── Utilities ── */

.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }

/* ── Lightbox ── */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox-overlay.open { display: flex; }

.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,.2);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Mobile fine-tuning ── */

@media (max-width: 599px) {
  .section { padding: 2.5rem 0; }
  .hero { min-height: 70vh; }
  .btn { padding: .65rem 1.35rem; font-size: .88rem; }
}
