/*
Theme Name: SAFI - South African Furniture Initiative
Theme URI: https://southafricanfurnitureinitiative.co.za
Author: Andrew Wheeler
Author URI: https://cotomo.com
Description: A custom WordPress theme for the South African Furniture Initiative
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: safi
Tags: custom-theme, furniture, industry, responsive
*/

/* =============================================================================
   CSS RESET & BASE STYLES - UPDATED WITH FONTS
   ============================================================================= */

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

html {
  font-size: 18px;
  line-height: 1.3;
}

body {
  font-family: var(--font-family-body);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--color-text);
  background-color: var(--color-background);
  font-weight: 200;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 200;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 300;
}

h2 {
  font-size: 3rem;
  font-weight: 300;
}

h3 {
  font-size: 2.5rem;
  font-weight: 300;
}

h4 {
  font-size: 2rem;
  font-weight: 300;
}

h5 {
  font-size: 1.5rem;
  font-weight: 300;
}

h6 {
  font-size: 1.25rem;
  font-weight: 300;
}

p {
  font-family: var(--font-family-body);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* UI elements use system fonts for better performance */
.nav-menu,
.btn,
.form-control,
input,
select,
textarea,
button {
  font-family: var(--font-family-ui);
}

/* Logo specific font */
.logo-text,
.site-branding {
  font-family: var(--font-family-logo);
}

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

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

a:hover {
  color: var(--color-accent);
}

/* Lists */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background-color: var(--color-background-light);
  font-weight: 300;
  color: var(--color-primary);
}

/* Form elements */
input,
select,
textarea {
  font-family: var(--font-family-ui);
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  h4 {
    font-size: 1.5rem;
  }
}