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

:root {
  --accent:       #546E7A;
  --accent-dark:  #37474F;
  --accent-light: #78909C;
  --bg:           #F0F0F0;
  --bg-white:     #FFFFFF;
  --text:         #212121;
  --text-muted:   #616161;
  --border:       #CFD8DC;
  --font-heading: 'Bitter', Georgia, serif;
  --font-body:    'Montserrat', Arial, sans-serif;
  --container:    1100px;
  --radius:       6px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

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

section { padding: 4rem 0; }

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 700px;
}

/* =============================================
   HEADER & NAV
   ============================================= */
.site-header {
  background: var(--accent-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}
.site-logo img {
  max-height: 40px;
  width: auto;
}
.site-logo:hover { color: #CFD8DC; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  color: #CFD8DC;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
  text-align: left;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.9);
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.hero-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-text .btn-group {
  justify-content: flex-start;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: #fff;
  color: var(--accent-dark);
}
.btn-primary:hover {
  background: #CFD8DC;
  color: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #fff;
}

/* =============================================
   HIGHLIGHT STAT BANNER
   ============================================= */
.stat-banner {
  background: var(--bg-white);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.stat-banner .stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-banner .stat-label {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* =============================================
   COST COMPARISON TABLE (HOME)
   ============================================= */
.cost-section {
  background: var(--bg);
}

.cost-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 0.95rem;
}

.cost-table th {
  background: var(--accent-dark);
  color: #fff;
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
}

.cost-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr:nth-child(even) td { background: #F9FAFB; }
.cost-table .highlight td { background: #E8F5E9; font-weight: 600; }
.cost-table .savings { color: #2E7D32; font-weight: 700; }

/* =============================================
   3-COLUMN FEATURE / USE-CASE GRID
   ============================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-top: 4px solid var(--accent);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--accent-dark);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   CHALLENGE / SOLUTION TWO-COLUMN
   ============================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.two-col h2 {
  font-size: 1.6rem;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.two-col p { color: var(--text-muted); }

/* =============================================
   HOW IT WORKS — COMPONENT CARDS
   ============================================= */
.component-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.component-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.component-card h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

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

/* =============================================
   EXAMPLES — CASE STUDY CARDS
   ============================================= */
.case-study {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.case-study-header {
  background: var(--accent-dark);
  color: #fff;
  padding: 1.5rem 2rem;
}

.case-study-header h2 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.case-study-header .client {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.case-study-body {
  padding: 2rem;
}

.case-study-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.case-study-body ul li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.case-study-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.savings-box {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.savings-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg);
}

.savings-item.total-savings {
  background: #E8F5E9;
}

.savings-item .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.savings-item .value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.savings-item.total-savings .value { color: #2E7D32; }

/* =============================================
   SERVICES PAGE
   ============================================= */
.services-intro {
  background: var(--accent-dark);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.services-intro h1 { color: #fff; font-size: 2.5rem; margin-bottom: 1rem; }
.services-intro p { color: rgba(255,255,255,0.85); max-width: 680px; margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.service-card h3 {
  color: var(--accent-dark);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

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

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section {
  padding: 4rem 0;
}

.contact-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.contact-wrapper h1 {
  font-size: 2rem;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.contact-wrapper .lead {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Form layout */
.contact-form {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.required { color: var(--accent); }
.optional { font-weight: 400; color: var(--text-muted); }

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(84,110,122,0.15);
  background: var(--bg-white);
}

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

/* Status message */
.form-status {
  font-size: 0.92rem;
  padding: 0;
  border-radius: var(--radius);
  display: none;
}

.form-status--success {
  display: block;
  background: #E8F5E9;
  color: #2E7D32;
  padding: 0.75rem 1rem;
  border: 1px solid #A5D6A7;
}

.form-status--error {
  display: block;
  background: #FFEBEE;
  color: #C62828;
  padding: 0.75rem 1rem;
  border: 1px solid #EF9A9A;
}

.contact-form .btn {
  align-self: flex-start;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
}

/* =============================================
   BACKGROUND ALTERNATING SECTIONS
   ============================================= */
.bg-white { background: var(--bg-white); }
.bg-light  { background: var(--bg); }
.bg-accent { background: var(--accent-dark); color: #fff; }
.bg-accent h2, .bg-accent p { color: #fff; }

/* =============================================
   INLINE CTA STRIP
   ============================================= */
.cta-strip {
  background: var(--accent);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.cta-strip h2 { color: #fff; font-size: 1.8rem; margin-bottom: 1rem; }
.cta-strip p  { color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; }

/* =============================================
   SIDE BY SIDE (text + image)
   ============================================= */
.side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.side-image img {
  width: 100%;
  border-radius: var(--radius);
}

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

/* =============================================
   FOOTNOTE
   ============================================= */
.footnote {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* =============================================
   USE CASE LIST
   ============================================= */
.use-case-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.use-case-list li {
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* =============================================
   IMAGES
   ============================================= */
.hero-logo {
  max-height: 64px;
  width: auto;
  margin: 0 auto 1.5rem;
}

.hero-image-wrap img {
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.section-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--accent-dark);
  color: rgba(255,255,255,0.6);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--accent-dark);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav a { display: block; padding: 0.6rem 0.85rem; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }

  .hero-two-col {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text .btn-group { justify-content: center; }

  .hero { padding: 4rem 0 3rem; }

  .savings-box { flex-direction: column; }
}

@media (max-width: 480px) {
  section { padding: 2.5rem 0; }
  .case-study-body { padding: 1.25rem; }
}
