/* ============================================
   Straightedge Solutions LLC — Stylesheet
   Brand Colors: Rust Red, Black, Gray, Forest Green
   ============================================ */

:root {
  --red: #8B3825;
  --red-light: #a84530;
  --black: #141414;
  --charcoal: #1e1e1e;
  --dark-gray: #2d2d2d;
  --mid-gray: #6b6b6b;
  --light-gray: #f2f2f0;
  --white: #ffffff;
  --green: #2e5c30;
  --green-light: #3a7a3d;
  --font-main: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Inter', 'Segoe UI', Arial, sans-serif;
  --transition: 0.25s ease;
  --max-width: 1160px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { font-size: 1.05rem; color: var(--dark-gray); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
  display: block;
}

/* ---- Layout Helpers ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-2px);
}

/* ====================================================
   NAVIGATION
   ==================================================== */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}

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

.nav-cta {
  color: var(--white) !important;
  background: var(--red);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--red-light) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
  display: block;
}

/* ====================================================
   HERO
   ==================================================== */
#hero {
  background: var(--black);
  color: var(--white);
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Geometric background accent */
#hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 680px;
  height: 680px;
  background: var(--red);
  opacity: 0.06;
  clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 420px;
  height: 420px;
  background: var(--green);
  opacity: 0.05;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

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

.hero-tagline-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 3px;
  margin-bottom: 1.5rem;
}

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

.hero-content h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero stats bar */
.hero-stats {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 0;
}

.hero-stats .container {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 0.35rem;
  display: block;
}

/* ====================================================
   ABOUT / MISSION
   ==================================================== */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-badge {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
  margin-bottom: 1.25rem;
}

.about-text h2 { margin-bottom: 1rem; color: var(--black); }

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--dark-gray);
  line-height: 1.75;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar {
  background: var(--light-gray);
  border-left: 3px solid var(--red);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
}

.pillar h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 0.25rem;
}

.pillar p {
  font-size: 0.88rem;
  color: var(--mid-gray);
  line-height: 1.5;
}

.about-visual {
  position: relative;
}

.about-card {
  background: var(--black);
  color: var(--white);
  border-radius: 10px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: var(--red);
  opacity: 0.12;
  clip-path: polygon(100% 0%, 100% 100%, 0% 0%);
}

.about-card-quote {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: var(--white);
  position: relative;
}

.about-card-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--red);
  line-height: 0;
  vertical-align: -0.75rem;
  margin-right: 0.15rem;
}

.about-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.about-card-title {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.2rem;
}

.green-accent-line {
  width: 48px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin: 1.25rem 0;
}

/* ====================================================
   SERVICES
   ==================================================== */
#services {
  background: var(--light-gray);
}

.services-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3.5rem;
}

.services-header h2 { margin-bottom: 0.75rem; }
.services-header p { font-size: 1.05rem; color: var(--mid-gray); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--red);
  border-radius: 0 0 0 8px;
  transition: width 0.35s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: transparent;
}

.service-card:hover::after { width: 100%; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon.red   { background: rgba(139,56,37,0.1); color: var(--red); }
.service-icon.green { background: rgba(46,92,48,0.1);  color: var(--green); }
.service-icon.dark  { background: rgba(20,20,20,0.07); color: var(--dark-gray); }

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--black);
}

.service-card p {
  font-size: 0.93rem;
  color: var(--mid-gray);
  line-height: 1.6;
}

/* ====================================================
   WHO WE HELP
   ==================================================== */
#who-we-help {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#who-we-help::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.01) 40px,
    rgba(255,255,255,0.01) 80px
  );
  pointer-events: none;
}

.who-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.who-text .section-label { color: var(--green-light); }

.who-text h2 { color: var(--white); margin-bottom: 1rem; }

.who-text p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.who-checklist { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
}

.check-item .check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--white);
  margin-top: 2px;
}

.differentiators {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.diff-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1.5rem;
  transition: background var(--transition);
}

.diff-card:hover { background: rgba(255,255,255,0.08); }

.diff-card h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.diff-card h3 span { color: var(--red); font-size: 1.2rem; }

.diff-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ====================================================
   CONTACT
   ==================================================== */
#contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 0.75rem; }
.contact-info > p {
  color: var(--mid-gray);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}

.contact-item-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 0.15rem;
}

.contact-item-text a,
.contact-item-text span {
  font-size: 0.98rem;
  color: var(--black);
  font-weight: 500;
}

.contact-item-text a:hover { color: var(--red); }

/* Contact Form */
.contact-form {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 2.5rem;
}

.contact-form h3 {
  font-size: 1.2rem;
  margin-bottom: 1.75rem;
  color: var(--black);
}

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

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-gray);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 5px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(139,56,37,0.12);
}

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

.form-submit { width: 100%; padding: 0.95rem; font-size: 1rem; }

.form-note {
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-top: 0.75rem;
  text-align: center;
}

/* ====================================================
   FOOTER
   ==================================================== */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.55);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo img { height: 36px; opacity: 0.85; }

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 0.82rem; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 900px) {
  .hero-inner        { padding-top: 7rem; text-align: center; }
  .hero-content      { max-width: 100%; }
  .hero-actions      { justify-content: center; }
  .about-grid        { grid-template-columns: 1fr; gap: 2.5rem; }
  .who-inner         { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid      { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row          { grid-template-columns: 1fr; }
  .footer-inner      { flex-direction: column; text-align: center; }
  .footer-links      { justify-content: center; }
  .about-pillars     { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section            { padding: 3.5rem 0; }
  .nav-links         { display: none; flex-direction: column; position: fixed; inset: 70px 0 0 0; background: rgba(20,20,20,0.98); padding: 2rem 1.5rem; gap: 1.25rem; justify-content: flex-start; }
  .nav-links.open    { display: flex; }
  .nav-toggle        { display: flex; }
  .services-grid     { grid-template-columns: 1fr; }
  .hero-stats .container { flex-direction: column; gap: 1.5rem; }
  .contact-form      { padding: 1.5rem; }
}
