/* ============================================================
   AnswerPoint.com — Main Stylesheet
   Brand: Navy #293643 | Orange #F6921E | Teal #90C0D5
   Typography: Montserrat
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --navy: #293643;
  --navy-dark: #1a252f;
  --navy-light: #3a4d5e;
  --orange: #F6921E;
  --orange-dark: #d47a0e;
  --orange-light: #fba94d;
  --teal: #90C0D5;
  --teal-dark: #6a9db5;
  --teal-light: #b5d6e5;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --mid-gray: #6c757d;
  --dark-gray: #343a40;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --shadow-sm: 0 2px 8px rgba(41,54,67,0.08);
  --shadow-md: 0 4px 20px rgba(41,54,67,0.12);
  --shadow-lg: 0 8px 40px rgba(41,54,67,0.16);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-dark); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.text-white { color: var(--white); }
.text-orange { color: var(--orange); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(246,146,30,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-lg { padding: 18px 42px; font-size: 1rem; }

/* --- Section Spacing --- */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-light { background: var(--off-white); }
.section-teal { background: var(--teal-light); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}
.section-header p { color: var(--text-light); font-size: 1.05rem; margin-top: 12px; }
.section-header .orange-bar {
  width: 60px;
  height: 4px;
  background: var(--orange);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(41,54,67,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(144,192,213,0.1);
  transition: var(--transition);
}

/* navbar container defined above with nav-logo */

.nav-logo {
  flex-shrink: 0;
  text-decoration: none !important;
  border-bottom: none !important;
}
.nav-logo:hover {
  text-decoration: none !important;
  border-bottom: none !important;
}

.nav-logo img {
  height: 40px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  text-decoration: none;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 12px 0 6px;
  gap: 12px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(246,146,30,0.15);
}

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 7px 14px !important;
}
.nav-cta:hover {
  background: var(--orange-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 40%, rgba(144,192,213,0.12) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--white), transparent);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--orange);
  display: block;
}

.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat .number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--orange);
  display: block;
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card .icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  padding: 40px 0;
  background: var(--off-white);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}
.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.trust-bar .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mid-gray);
  font-weight: 600;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.trust-logos span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-light);
  padding: 8px 16px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  background: var(--white);
  white-space: nowrap;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  position: relative;
}
.testimonial-card .quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--orange);
  opacity: 0.2;
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: Georgia, serif;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.testimonial-card .attribution {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.testimonial-card .role {
  font-size: 0.8rem;
  color: var(--mid-gray);
  font-weight: 400;
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.blog-card .card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.blog-card .card-image .icon-overlay {
  width: 60px;
  height: 60px;
}
.blog-card .card-image .category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-card .card-body { padding: 24px; }
.blog-card .card-body h3 { font-size: 1.05rem; margin-bottom: 10px; }
.blog-card .card-body p { font-size: 0.88rem; color: var(--text-light); }
.blog-card .card-body .meta {
  font-size: 0.75rem;
  color: var(--mid-gray);
  margin-top: 12px;
}

/* ============================================================
   ROI CALCULATOR
   ============================================================ */
.calculator-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.calc-header {
  background: var(--navy);
  padding: 32px;
  color: var(--white);
}
.calc-header h3 { color: var(--white); margin-bottom: 8px; }
.calc-header p { color: rgba(255,255,255,0.65); margin-bottom: 0; font-size: 0.9rem; }
.calc-body { padding: 36px 32px; }

.calc-field {
  margin-bottom: 24px;
}
.calc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.calc-field input, .calc-field select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
}
.calc-field input:focus, .calc-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(144,192,213,0.2);
}

.calc-results {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
}
.calc-results .result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
}
.calc-results .result-row:last-child { border-bottom: none; }
.calc-results .result-label { font-size: 0.85rem; color: var(--text-light); }
.calc-results .result-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}
.calc-results .result-value.savings { color: #28a745; }

/* ============================================================
   ASSESSMENT FORM
   ============================================================ */
.assessment-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(246,146,30,0.1);
}
.form-group textarea { min-height: 100px; resize: vertical; }

/* ============================================================
   RESOURCE LIBRARY
   ============================================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.resource-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}
.resource-card .type-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  width: fit-content;
}
.type-badge.checklist { background: #e8f5e9; color: #2e7d32; }
.type-badge.template { background: #e3f2fd; color: #1565c0; }
.type-badge.guide { background: #fff3e0; color: #e65100; }
.type-badge.whitepaper { background: #f3e5f5; color: #7b1fa2; }
.resource-card h4 { margin-bottom: 10px; }
.resource-card p { font-size: 0.88rem; color: var(--text-light); flex: 1; }
.resource-card .download-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
}
.resource-card .download-btn:hover { color: var(--orange-dark); }

/* ============================================================
   DOGOOD BADGE
   ============================================================ */
.dogood-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1a3a2a, #2d5e3f);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
}
.dogood-badge .badge-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* ============================================================
   CASE STUDIES
   ============================================================ */
.case-study-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--light-gray);
}
.case-study-card:last-child { border-bottom: none; }
.case-study-card:nth-child(even) { direction: rtl; }
.case-study-card:nth-child(even) > * { direction: ltr; }
.case-study-visual {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.case-study-visual .stat-big {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.case-study-visual .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  text-align: center;
}
.case-study-content h3 { margin-bottom: 12px; }
.case-study-content .tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.case-study-content .tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--teal-light);
  color: var(--navy);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-brand img { height: 29px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; max-width: 280px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0; padding-bottom: 0; line-height: 1.3; font-size: 0.85rem; }
.footer ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer ul a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.footer-bottom .dogood-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
}

/* ============================================================
   PAGE HEROES (internal pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 140px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ============================================================
   BLOG POST FULL
   ============================================================ */
.blog-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}
.blog-content h2 { margin: 40px 0 16px; font-size: 1.6rem; }
.blog-content h3 { margin: 32px 0 12px; font-size: 1.25rem; }
.blog-content p { font-size: 1rem; line-height: 1.8; }
.blog-content ul, .blog-content ol { margin: 16px 0 16px 24px; }
.blog-content li { margin-bottom: 8px; line-height: 1.7; }
.blog-content blockquote {
  border-left: 4px solid var(--orange);
  padding: 16px 24px;
  background: var(--off-white);
  margin: 24px 0;
  font-style: italic;
}
.blog-meta {
  font-size: 0.85rem;
  color: var(--mid-gray);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--light-gray);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .case-study-card { grid-template-columns: 1fr; }
  .case-study-card:nth-child(even) { direction: ltr; }
  .hero-stats { gap: 28px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .nav-toggle { display: flex; }
  
  .hero { min-height: 70vh; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  
  .section { padding: 50px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Orange accent underline for headings */
.accent-underline {
  position: relative;
  display: inline-block;
}
.accent-underline::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}
