/*
Theme Name: ERA Professional
Theme URI: https://edgeroiadvisors.com
Description: Template-driven theme for Edge ROI Advisors - Cloud, Data & AI consulting
Author: Edge ROI Advisors
Version: 1.494
License: GNU General Public License v2 or later
Text Domain: era-theme
*/

:root {
  --primary: #1a5490;
  --secondary: #2c7cc1;
  --accent: #4a9fd8;
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
  --gray-light: #adb5bd;
  --border: #dee2e6;
  --success: #155724;
  --success-bg: #d4edda;
  --danger: #dc3545;
  --danger-bg: #f8d7da;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --radius: 6px;
  --radius-lg: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

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

/* ============================================================================
   HEADER
   ============================================================================ */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.site-branding { display: flex; align-items: center; gap: 12px; }

.custom-logo-link { display: block; line-height: 0; }
.custom-logo { max-height: 36px; width: auto; height: auto; display: block; }

.site-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.site-title:hover { color: var(--secondary); }

/* ============================================================================
   HAMBURGER MENU
   ============================================================================ */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  margin: 6px 0;
}

.menu-toggle.is-active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================================
   NAVIGATION
   ============================================================================ */
#site-navigation ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

#site-navigation a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

#site-navigation a:hover,
#site-navigation .current-menu-item a {
  background: var(--light);
  color: var(--primary);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: #f0f4f8;
  color: #1a5490;
  border-color: #dee2e6;
}
.btn-outline:hover {
  background: #1a5490;
  color: #ffffff;
  border-color: #1a5490;
  transform: translateY(-1px);
}

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

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: var(--white);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d3a6a 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
  margin: -40px -24px 0;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 19px;
  max-width: 640px;
  margin: 0 auto 32px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================================
   SECTION UTILITIES
   ============================================================================ */
.section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-header p {
  font-size: 18px;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-alt {
  background: var(--light);
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
}

/* ============================================================================
   HOME — SERVICE CARDS (3 col)
   ============================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-card .btn { font-size: 14px; padding: 8px 20px; }

.service-card-link {
  text-decoration: none;
  cursor: pointer;
}

.service-card-link h3,
.service-card-link p {
  color: inherit;
}

.service-card-link h3 {
  color: var(--primary);
}

.service-card-link p {
  color: var(--gray);
}

.services-cta {
  text-align: center;
  margin-top: 36px;
}

/* ============================================================================
   HOME — PROOF BAR
   ============================================================================ */
.proof-bar {
  background: #1a1a1a;
  padding: 28px 24px;
  margin-left: -24px;
  margin-right: -24px;
  margin-bottom: 20px;
}

.proof-bar .proof-items {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.proof-bar .proof-item {
  text-align: center;
  flex: 1 1 0%;
}

.proof-bar .proof-number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.proof-bar .proof-label {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* ============================================================================
   HOME — WHY ERA
   ============================================================================ */
.why-era-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.why-era-grid .value-prop {
  border-left: 4px solid #1a5490;
  padding: 20px 24px;
  transition: background 0.2s;
  border-radius: 0 6px 6px 0;
  margin-bottom: 0;
}

.why-era-grid .value-prop:hover { background: #ffffff; }

.why-era-grid .value-prop h3 {
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.why-era-grid .value-prop p {
  font-size: 15px;
  color: #6c757d;
  line-height: 1.6;
}

/* ============================================================================
   HOME — FOUNDER SECTION
   ============================================================================ */
.section-founder {
  background: var(--white);
}

.founder-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.founder-photo-wrap {
  flex-shrink: 0;
}

.founder-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--white);
  outline: 1px solid var(--border);
}

.founder-name {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.founder-title {
  font-size: 14px;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.founder-content > p {
  font-size: 16px;
  color: var(--dark);
  line-height: 1.65;
  margin-bottom: 14px;
}

.founder-linkedin {
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.founder-linkedin:hover {
  color: var(--secondary);
}

/* ============================================================================
   HOME / OFFERINGS — CTA BANNER
   ============================================================================ */
.cta-banner {
  text-align: center;
  padding: 60px 24px;
  background: var(--light);
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.cta-banner h2 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 10px;
}

.cta-banner p {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 24px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.section-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.section-cta h2 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-cta p {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 28px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================================
   OFFERINGS PAGE — ANCHOR NAV
   ============================================================================ */
.offerings-nav {
  background: #ffffff;
  border-bottom: 1px solid #dee2e6;
  padding: 8px 24px;
  margin-left: -24px;
  margin-right: -24px;
  position: sticky;
  top: 60px;
  z-index: 90;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.offerings-nav-items {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.offerings-nav-link {
  display: block;
  padding: 10px 20px;
  color: #1a5490;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  background: #f0f4f8;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.offerings-nav-link:hover {
  background: #1a5490;
  color: #ffffff;
  border-color: #1a5490;
}

section[id] {
  scroll-margin-top: 120px;
}

/* ============================================================================
   OFFERINGS PAGE — DETAIL CARDS (2 col)
   ============================================================================ */
.offerings-hero {
  text-align: center;
  padding: 50px 24px;
  margin: -40px -24px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0d3a6a 100%);
  color: var(--white);
}

.offerings-hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.offerings-hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.offerings-single {
  max-width: 700px;
  margin: 0 auto;
}

.offering-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
}

.offering-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.offering-card-body {
  padding: 28px;
}

.offering-card h3 {
  font-size: 21px;
  color: var(--primary);
  margin-bottom: 10px;
}

.offering-card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 10px;
}

.offering-card .who-label {
  font-weight: 600;
  color: var(--dark);
  font-size: 14px;
  margin-bottom: 4px;
}

.cover-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
}

.cover-details {
  margin: 4px 0 14px 0;
}

.cover-details > summary {
  font-weight: 600;
  color: var(--dark);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  padding: 6px 0;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.cover-details > summary::-webkit-details-marker {
  display: none;
}

.cover-details > summary::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--primary);
  transition: transform 0.2s;
}

.cover-details[open] > summary::before {
  transform: rotate(180deg);
}

.cover-details > summary:hover {
  color: var(--primary);
}

.cover-details[open] > .cover-list {
  margin-top: 8px;
}

.cover-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 6px;
}

.cover-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a5490;
}

.offering-card .btn-link {
  display: inline-block;
  color: #1a5490;
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
  padding: 8px 18px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #f0f4f8;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.offering-card .btn-link:hover {
  background: #1a5490;
  color: #ffffff;
  border-color: #1a5490;
}
.offering-card .btn-link::after { content: ' \2192'; }

/* ============================================================================
   CONTACT PAGE
   ============================================================================ */
.contact-hero {
  text-align: center;
  padding: 50px 24px;
  margin: -40px -24px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0d3a6a 100%);
  color: var(--white);
}

.contact-hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  padding: 50px 0;
}

.contact-form-wrap h2 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-intro {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 24px;
}

.era-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--dark);
}

.form-group .required { color: var(--danger); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,84,144,0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select:invalid,
.form-group select option[value=""] {
  color: var(--gray-light);
}

.form-group select option {
  color: var(--dark);
}

/* Honeypot — hidden from real users, visible to naive bots. */
.era-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-success {
  background: var(--success-bg);
  border: 1px solid #c3e6cb;
  color: var(--success);
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.form-success h3 { margin-bottom: 6px; color: var(--success); }

.form-error {
  background: var(--danger-bg);
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 15px;
}

/* Contact sidebar */
.contact-sidebar h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-sidebar .btn { margin-bottom: 24px; width: 100%; text-align: center; }

.contact-details {
  padding: 24px;
  background: var(--light);
  border-radius: var(--radius-lg);
}

.contact-details p {
  margin-bottom: 6px;
  color: var(--gray);
  font-size: 15px;
}

.contact-details p:first-child { color: var(--dark); font-weight: 600; }

/* ============================================================================
   FOOTER
   ============================================================================ */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 36px 0 20px;
  margin-top: 60px;
}

.footer-content { text-align: center; }

.footer-content p {
  margin: 8px 0;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.footer-content a { color: var(--accent); text-decoration: none; }
.footer-content a:hover { text-decoration: underline; }

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

  #site-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 16px;
  }

  #site-navigation.is-open { display: block; }

  #site-navigation ul { flex-direction: column; gap: 0; }

  #site-navigation a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }

  #site-navigation li:last-child a { border-bottom: none; }

  .hero { padding: 50px 20px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 17px; }

  .offerings-hero { padding: 40px 20px; }
  .offerings-hero h1 { font-size: 30px; }

  .contact-hero { padding: 40px 20px; }
  .contact-hero h1 { font-size: 30px; }

  .proof-bar .proof-items {
    flex-wrap: wrap;
    gap: 20px 0;
  }
  .proof-bar .proof-item {
    flex: 0 0 50%;
  }
  .proof-bar .proof-number { font-size: 24px; }

  .services-grid { grid-template-columns: 1fr; }
  .offerings-nav {
    top: 85px;
  }

  .offerings-nav-items {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .offerings-nav-link {
    padding: 9px 10px;
    font-size: 12px;
    text-align: center;
    flex: 1 1 0%;
  }

  .offerings-grid { grid-template-columns: 1fr; }
  .why-era-grid { grid-template-columns: 1fr; }

  .founder-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .founder-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .section { padding: 50px 0; }
  .section-header h2 { font-size: 26px; }
}
