/* SMC Trading (Pty) Ltd - Corporate Website Styles */
/* Theme: Dark Green, Gold, White, Charcoal - derived from company logo */

:root {
  --primary: #0d3b2e;
  --primary-dark: #082820;
  --primary-light: #1a5c47;
  --gold: #c9a227;
  --gold-light: #e0c15a;
  --gold-dark: #a8841a;
  --charcoal: #2c2c2c;
  --grey: #4a4a4a;
  --light-grey: #f5f5f5;
  --white: #ffffff;
  --text: #333333;
  --border: #e0e0e0;
  --success: #1a7a4c;
  --error: #c0392b;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

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

/* ========== HEADER ========== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

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

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
}

.logo-text span {
  color: var(--gold);
}

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

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(13, 59, 46, 0.06);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: var(--primary-light) !important;
  color: var(--white) !important;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero .tagline {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 1.75rem;
  font-weight: 400;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--primary-dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

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

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

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

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

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

.btn-dark:hover {
  background: #1a1a1a;
  color: var(--white);
}

/* ========== SECTIONS ========== */
section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--grey);
  font-size: 1.1rem;
}

.bg-light {
  background: var(--light-grey);
}

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

.bg-primary h2,
.bg-primary h3 {
  color: var(--white);
}

.bg-primary h2::after {
  background: var(--gold);
}

.bg-primary p {
  color: rgba(255,255,255,0.9);
}

/* ========== CARDS ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(201, 162, 39, 0.3);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--grey);
  flex-grow: 1;
}

.card .card-link {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card .card-link:hover {
  color: var(--gold-dark);
}

/* ========== WHY US ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.why-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.why-item .icon-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(13, 59, 46, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  border: 2px solid rgba(201, 162, 39, 0.3);
}

.why-item h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.why-item p {
  font-size: 0.95rem;
  color: var(--grey);
  margin: 0;
}

/* ========== CTA BAND ========== */
.cta-band {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-band p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.75rem;
  font-size: 1.1rem;
}

.cta-band .btn-primary {
  font-size: 1.05rem;
  padding: 1rem 2.25rem;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--gold-light);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* ========== CONTENT ========== */
.content-section {
  padding: 3.5rem 0;
}

.prose {
  max-width: 800px;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose ul, .prose ol {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.value-item {
  background: var(--light-grey);
  padding: 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

.value-item strong {
  color: var(--primary-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.info-box {
  background: var(--light-grey);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-box h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.info-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.5rem;
}

.info-box dt {
  font-weight: 600;
  color: var(--charcoal);
}

.info-box dd {
  color: var(--grey);
}

.placeholder-note {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  color: #7a5c00;
}

.placeholder-note strong {
  color: #5c4500;
}

/* ========== FORMS ========== */
.form-section {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
  font-size: 0.95rem;
}

.form-group label .required {
  color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 59, 46, 0.12);
}

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

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

.form-actions {
  margin-top: 1.75rem;
}

.form-note {
  font-size: 0.9rem;
  color: var(--grey);
  margin-top: 1rem;
}

.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 1.5rem;
}

.form-success.show {
  display: block;
}

.form-error {
  display: none;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

/* ========== DOCUMENTS ========== */
.doc-list {
  display: grid;
  gap: 1rem;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}

.doc-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.doc-icon {
  width: 48px;
  height: 48px;
  background: rgba(13, 59, 46, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.doc-info {
  flex-grow: 1;
}

.doc-info h4 {
  margin-bottom: 0.2rem;
}

.doc-info p {
  font-size: 0.9rem;
  color: var(--grey);
  margin: 0;
}

.doc-item .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 0;
}

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

.footer-brand img {
  height: 48px;
  margin-bottom: 1rem;
  filter: brightness(1.1);
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom a {
  color: var(--gold-light);
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  h1 { font-size: 2.1rem; }
  .hero h1 { font-size: 2.25rem; }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .main-nav.open {
    max-height: 500px;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .main-nav a {
    padding: 0.85rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    margin: 0.75rem 0 0 !important;
    text-align: center;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

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

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

  section {
    padding: 3rem 0;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .logo-link img {
    height: 48px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Simple icons using CSS / Unicode for no external deps */
.icon {
  font-style: normal;
  font-weight: 700;
}
