/*
Theme Name: Noriega Brothers
Theme URI: https://noriegabrothers.com
Author: Noriega Brothers
Description: Custom one-page theme for Noriega Brothers Towing & Scrap Car Buyers, San Antonio, TX.
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: noriega-brothers
*/

/* ===== Variables & Reset ===== */
:root {
  --navy: #0d1b2a;
  --navy-light: #1b2e44;
  --orange: #f4a623;
  --orange-dark: #d98c0f;
  --gray-bg: #f4f5f7;
  --text: #2b2b2b;
  --white: #ffffff;
}

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

body {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { font-weight: 700; color: var(--navy); }

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section { padding: 70px 0; }
.alt-bg { background: var(--gray-bg); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--navy);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }
.btn-call {
  background: var(--orange);
  color: var(--navy);
  padding: 8px 18px;
}
.btn-call:hover { background: var(--orange-dark); }

/* ===== Header ===== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
}
.logo-icon { width: 36px; height: 36px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  color: var(--white);
  font-weight: 500;
}
.main-nav a:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 110px 20px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero p {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: #d7dde5;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Services ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.card {
  background: var(--white);
  border: 1px solid #e4e6ea;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.card-icon { width: 70px; height: 70px; margin: 0 auto 16px; }
.card h3 { margin-bottom: 14px; }
.card ul li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}
.card ul li:last-child { border-bottom: none; }

/* ===== About ===== */
.about-inner {
  display: flex;
  align-items: center;
  gap: 50px;
}
.about-text { flex: 1; }
.about-text h2 { text-align: left; }
.about-text p { margin-bottom: 14px; }
.about-img { flex: 1; max-width: 380px; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.gallery-grid img {
  border-radius: 8px;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid #e4e6ea;
}

/* ===== Contact ===== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info h2, .contact-form h2 { text-align: left; }
.contact-info p { margin-bottom: 12px; }
.placeholder-note { color: #999; font-size: 0.85rem; }
.map-wrap { margin-top: 20px; border-radius: 8px; overflow: hidden; }

.contact-form {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #e4e6ea;
}
.contact-form label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
.contact-form button { margin-top: 20px; width: 100%; }
.form-note { font-size: 0.8rem; color: #888; margin-top: 10px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: #c8cdd4;
  text-align: center;
  padding: 26px 20px;
  font-size: 0.9rem;
}
.site-footer p { margin: 4px 0; }

/* ===== Responsive ===== */
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .about-inner { flex-direction: column; }
  .contact-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
