/* ===================================================
   Global Reset & Base Typography
   =================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  background-color: #f8f9fa;
  line-height: 1.6;
}

/* ===================================================
   Links & Buttons
   =================================================== */
a { color: #0077c8; text-decoration: none; }
a:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #0077c8;
  color: #fff;
  border-radius: 4px;
  font-size: 1rem;
  transition: background 0.2s ease;
}
.btn:hover { background: #005a96; }
.btn-lg { padding: 1rem 2rem; font-size: 1.2rem; }

/* ===================================================
   Layout Helpers
   =================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.grid-3 {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 100%;
}

.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Generic card */
.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  text-align: center;
}
.card h3, .card h4 { color: #0077c8; }

/* ===================================================
   Header & Navigation
   =================================================== */
header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
header h1 { font-size: 1.5rem; font-weight: bold; color: #0077c8; }

nav ul { list-style: none; display: flex; }
nav li { margin-left: 1.5rem; }
nav a { font-weight: 500; color: #333; transition: color .2s; }
nav a:hover { color: #0077c8; }
/* active nav helper (opt-in per page) */
nav a.active { color: #0077c8; border-bottom: 2px solid #0077c8; padding-bottom: 2px; }

/* ===================================================
   Hero
   =================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
/* neutralize any inline bg if present */
.hero[style*="background-image"] { background: none !important; }

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1;
}
.hero .hero-content { position: relative; max-width: 800px; padding: 0 1rem; z-index: 2; }
.hero h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p  { font-size: 1.2rem; margin-bottom: 1.5rem; }
.hero-small { height: 40vh; }

/* ===================================================
   Section Headings
   =================================================== */
#features h2, #how h2, #testimonials h2, #pricing h2,
#usecases h2 {
  text-align: center;
  margin: 3rem 0 1.5rem;
  font-size: 2rem;
  color: #0077c8;
}
.section    { padding: 3rem 1rem; }
.section-bg { background: #f3f5f7; }
.section h3 { font-size: 1.8rem; color: #0077c8; margin-bottom: 1rem; text-align: center; }

/* ===================================================
   How It Works
   =================================================== */
.step-card {
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
}
.step-card span { font-size: 2rem; display: block; margin-bottom: .5rem; }

/* ===================================================
   Testimonials
   =================================================== */
.testimonial-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
#testimonials blockquote {
  background: #f9f9f9;
  border-left: 4px solid #0077c8;
  margin: 1rem 0;
  padding: 1rem;
}
#testimonials span { display: block; margin-top: .4rem; font-style: italic; color: #555; }

/* ===================================================
   Pricing Table
   =================================================== */
.pricing-table {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 2rem 0;
}
.plan {
  background: #fff;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  display: flex;               /* aligns button baseline */
  flex-direction: column;
  align-items: center;
}
.plan.popular { border: 2px solid #0077c8; }
.plan h3 { margin-bottom: .5rem; font-size: 1.4rem; }
.price   { font-size: 1.8rem; margin: .5rem 0 1rem; color: #0077c8; }
.plan ul { list-style: none; margin-bottom: 1rem; }
.plan li { margin: .4rem 0; }
.pricing-table .plan .btn { margin-top: auto; }  /* keep buttons aligned */

.note { text-align: center; font-size: .9rem; color: #666; }

/* ===================================================
   Contact page
   =================================================== */
.contact-wrap {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin: 3rem 0;
}
.contact-card {
  background: #fff;
  padding: 1.5rem 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.contact-card h3 { color: #0077c8; margin-bottom: 1rem; text-align: center; }
.contact-card form label { display: block; margin: .5rem 0 .2rem; font-size: .9rem; }
.contact-card input, .contact-card textarea {
  width: 100%;
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: .95rem;
}
.contact-card textarea { resize: vertical; }

.social-row { margin-top: 1rem; text-align: center; }
.social-row a {
  display: inline-block; width: 32px; height: 32px; line-height: 32px;
  border-radius: 50%; background: #0077c8; color: #fff;
  margin: 0 .25rem; font-size: .9rem; font-weight: bold;
}
.social-row a:hover { opacity: .8; }

/* ===================================================
   Callouts & Link Cards (sitewide)
   =================================================== */
.callout {
  background: #f3f7fb;
  border: 1px solid #e1eef8;
  border-left: 4px solid #0077c8;
  border-radius: 6px;
  padding: 1rem 1rem 1rem 1.25rem;
  margin: 1.25rem 0;
  color: #2a2a2a;
}
.more-link { font-weight: 600; }
.more-link::after { content: " →"; font-weight: 700; }

.link-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1.25rem 0 0;
  align-items: stretch;
}
.link-card {
  display: block;
  background: #fff;
  border: 1px solid #e7ebef;
  border-radius: 8px;
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.link-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); border-color: #dbe8f2; }
.link-card h4 { margin-bottom: .35rem; color: #0077c8; font-size: 1.05rem; }
.link-card p  { color: #555; font-size: .95rem; margin: 0; }

/* Home: center the Read More block to the pricing width and fix alignment */
section[aria-labelledby="home-read-more"] {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
section[aria-labelledby="home-read-more"] .link-cards {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
}
@media (max-width: 900px) {
  section[aria-labelledby="home-read-more"] .link-cards {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}
@media (max-width: 600px) {
  section[aria-labelledby="home-read-more"] .link-cards {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   Alignment & Equal Heights (home sections)
   =================================================== */
/* Left-align copy inside feature and step cards for readability */
#features .card, #features .card h3 { text-align: left; }
#how .step-card { text-align: left; }

/* Make common cards equal-height so bottoms align */
#features .grid-3 .card,
#how .grid-4 .step-card,
.link-cards .link-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (min-width: 768px) {
  #features .grid-3 .card { min-height: 180px; }
  #how .grid-4 .step-card { min-height: 150px; }
  .link-cards .link-card { min-height: 120px; }
}

/* ===================================================
   Footer
   =================================================== */
footer {
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: .9rem;
  color: #666;
}

/* ===================================================
   Responsive Tweaks
   =================================================== */
@media (max-width: 768px) {
  .hero { height: 50vh; }
  .hero h2 { font-size: 2rem; }
}
/* Home: align "Read More" block with Pricing */
section[aria-labelledby="home-read-more"]{
  max-width: 1200px;     /* same as .container */
  margin: 2rem auto;     /* center it */
  padding: 0 1rem;       /* same side padding as .container */
}

/* exactly 3 equal columns on desktop so it spans the full container width */
section[aria-labelledby="home-read-more"] .link-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* make each card fill its grid cell and align text nicely */
section[aria-labelledby="home-read-more"] .link-cards .link-card{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* responsive breakpoints */
@media (max-width: 900px){
  section[aria-labelledby="home-read-more"] .link-cards{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px){
  section[aria-labelledby="home-read-more"] .link-cards{
    grid-template-columns: 1fr;
  }
}
/* --- Home: force Read More to align with Pricing width and columns --- */
#home-read-more .container {
  /* uses your .container width (1200px) and padding */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

#home-read-more .link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* EXACTLY three equal columns */
  gap: 1rem;
}

#home-read-more .link-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 900px) {
  #home-read-more .link-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  #home-read-more .link-cards { grid-template-columns: 1fr; }
}
/* Reusable centered 3-column link section */
.links-3 .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.links-3 .link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.links-3 .link-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .links-3 .link-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .links-3 .link-cards { grid-template-columns: 1fr; }
}
