/* MERIDIAN SUPPLY INTELLIGENCE — Website Stylesheet
   Colors: Navy #1B2A4A | Copper #C17F3A | Gray #F4F5F7 | Text #1A1A2E
   Fonts: Libre Baskerville (headers) | Inter (body)
*/

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

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

/* BASE */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1A1A2E;
  background: #ffffff;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: 'Libre Baskerville', serif; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: #1B2A4A; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: #1B2A4A; }
h3 { font-size: 1.2rem; font-weight: 700; color: #1B2A4A; }
h4 { font-size: 1rem; font-weight: 700; color: #C17F3A; text-transform: uppercase; letter-spacing: 0.08em; font-family: 'Inter', sans-serif; }
p { margin-bottom: 1rem; color: #3A3A4A; }
a { color: #C17F3A; text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; color: #1B2A4A; }

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 80px 0; }
.section-alt { background: #F4F5F7; }

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #1B2A4A;
  z-index: 100;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo img { height: 36px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: #C17F3A; text-decoration: none; }

.nav-cta {
  background: #C17F3A;
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #A86B2E !important; color: white !important; }

/* HERO */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #1B2A4A 0%, #243558 60%, #1B2A4A 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C17F3A' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

.hero-tag {
  display: inline-block;
  background: rgba(193, 127, 58, 0.15);
  border: 1px solid rgba(193, 127, 58, 0.4);
  color: #C17F3A;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero h1 { color: #ffffff; margin-bottom: 1.5rem; max-width: 780px; }
.hero h1 span { color: #C17F3A; }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

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

.btn-primary {
  background: #C17F3A;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}
.btn-primary:hover { background: #A86B2E; color: white; text-decoration: none; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.85);
  padding: 0.875rem 2rem;
  border-radius: 3px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.7); color: white; text-decoration: none; }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.hero-stat-number {
  font-family: 'Libre Baskerville', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #C17F3A;
  display: block;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* PROBLEM SECTION */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) { .problem-grid { grid-template-columns: 1fr; } }

.problem-card {
  padding: 2rem;
  border-left: 3px solid #C17F3A;
  background: white;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.problem-card h3 { margin-bottom: 0.75rem; }
.problem-card p { margin: 0; font-size: 0.95rem; }

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  padding: 2rem;
  background: white;
  border: 1px solid #E2E5EA;
  border-top: 3px solid #1B2A4A;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-2px); }

.service-card.featured {
  border-top-color: #C17F3A;
  background: #1B2A4A;
  color: white;
}
.service-card.featured h3 { color: white; }
.service-card.featured p { color: rgba(255,255,255,0.75); }
.service-card.featured .service-price { color: #C17F3A; }
.service-card.featured .service-tag { background: rgba(193,127,58,0.2); color: #C17F3A; }

.service-tag {
  display: inline-block;
  background: #F4F5F7;
  color: #8A96A8;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.service-price {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1B2A4A;
  margin: 1rem 0 0.5rem;
}

.service-timeline {
  font-size: 0.8rem;
  color: #8A96A8;
  margin-bottom: 1rem;
}

/* REPORTS */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 768px) { .reports-grid { grid-template-columns: 1fr; } }

.report-card {
  background: white;
  border: 1px solid #E2E5EA;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.report-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.report-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C17F3A;
  margin-bottom: 0.5rem;
}

.report-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.report-card p { font-size: 0.9rem; flex: 1; }

.report-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.report-form input {
  flex: 1;
  min-width: 180px;
  padding: 0.6rem 0.875rem;
  border: 1px solid #D0D5DD;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.report-form input:focus { border-color: #1B2A4A; }

.report-form button {
  background: #1B2A4A;
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.report-form button:hover { background: #C17F3A; }

/* PROCESS */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .process-steps { grid-template-columns: 1fr; } }

.process-step { text-align: center; padding: 1.5rem 1rem; }

.step-number {
  width: 48px;
  height: 48px;
  background: #1B2A4A;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}

.process-step h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.875rem; margin: 0; }

/* CTA SECTION */
.cta-section {
  background: #1B2A4A;
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 2rem; }

/* CONTACT FORM */
.contact-form {
  max-width: 600px;
  margin: 3rem auto 0;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: #1B2A4A; margin-bottom: 0.4rem; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #D0D5DD;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #1A1A2E;
  outline: none;
  transition: border-color 0.2s;
  background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #1B2A4A; }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  background: #C17F3A;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.form-submit:hover { background: #A86B2E; }

/* ABOUT PAGE */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

.credential-list { list-style: none; margin: 1.5rem 0; }
.credential-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #E2E5EA;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.credential-list li::before { content: '—'; color: #C17F3A; font-weight: 700; flex-shrink: 0; }

/* FOOTER */
footer {
  background: #111827;
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand img { height: 32px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.8rem; color: rgba(255,255,255,0.4); max-width: 260px; }

.footer-links h4 { color: rgba(255,255,255,0.6); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: #C17F3A; text-decoration: none; }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.3); margin: 0; }
.footer-copper { color: #C17F3A; }

/* UTILITY */
.copper { color: #C17F3A; }
.navy { color: #1B2A4A; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.rule-copper { width: 48px; height: 3px; background: #C17F3A; margin: 1rem 0 1.5rem; }
.rule-copper-center { width: 48px; height: 3px; background: #C17F3A; margin: 1rem auto 1.5rem; }

/* ALERT BAR */
.alert-bar {
  background: #C17F3A;
  color: white;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.alert-bar a { color: white; text-decoration: underline; }

/* PAGE HEADER */
.page-header {
  padding: 130px 0 60px;
  background: linear-gradient(135deg, #1B2A4A 0%, #243558 100%);
  text-align: center;
}
.page-header h1 { color: white; }
.page-header p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 1rem auto 0; }

/* SUCCESS MESSAGE */
.form-success {
  display: none;
  background: #F0F8F0;
  border: 1px solid #27AE60;
  border-left: 4px solid #27AE60;
  padding: 1rem 1.25rem;
  border-radius: 3px;
  color: #1A5C2A;
  font-size: 0.9rem;
  margin-top: 1rem;
}
