/* =========================================
   Best Tutor in Texas — Base Styles
   ========================================= */

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

:root {
  --color-primary:   #bf4f0f;   /* Texas burnt orange */
  --color-secondary: #1a3a5c;   /* Deep blue */
  --color-accent:    #f5c518;   /* Star gold */
  --color-bg:        #ffffff;
  --color-bg-alt:    #f7f4f0;
  --color-text:      #222222;
  --color-text-muted:#666666;

  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
}

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

/* ----- Header ----- */
.site-header {
  background: var(--color-secondary);
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  opacity: .85;
  transition: opacity .15s;
}

nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ----- Hero ----- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8b2f07 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 1.25rem;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: .75rem;
}

.hero p {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text);
  font-weight: 700;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: filter .15s;
}

.btn:hover {
  filter: brightness(1.1);
}

/* ----- Sections ----- */
.section {
  padding: 4rem 0;
}

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

.section h2 {
  font-size: 1.9rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: .5rem;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ----- Cards ----- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid #e5e0d8;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: box-shadow .2s, transform .2s;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 2.25rem;
  margin-bottom: .75rem;
}

.card h3 {
  font-size: 1.15rem;
  color: var(--color-secondary);
  margin-bottom: .5rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: .95rem;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--color-secondary);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 1.5rem 0;
  font-size: .875rem;
}
