/* =====================================
   HOME PAGE STYLES (hero, tiers, why-us)
   ===================================== */

.section {
  padding: var(--section-space) 1rem;
}
.section--panel { background: var(--color-panel); }
.section--white { background: var(--color-white); }

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 80vh; /* slightly taller = more authority */
  background: var(--color-white);
  padding: 0; /* remove section padding */
  overflow: hidden;
}

.hero__content {
  padding-left: clamp(2rem, 5vw, 6rem);
  padding-right: 2rem;
  z-index: 1;
}

.hero__content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero__content p {
  font-size: 1.1rem;
  max-width: 500px;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__media{
  height: 100%;
  background:
    linear-gradient(
      270deg,
      rgba(255,255,255,0) 55%,
      rgba(255,255,255,0.85) 85%,
      rgba(255,255,255,1) 100%
    ),
    url('/Images/code-bg-banner-hero.png') center/cover no-repeat;
}

/* Audit tiers (and reuse the same spacing rhythm elsewhere) */
.audit-tiers{
  background: var(--color-panel);
  padding: calc(var(--section-space) * 1.1) 1rem;

}

.audit-tiers .container{
  max-width: 1100px;              /* stops it feeling stretched */
  text-align: center;            /* centers the heading and intro */
}

.audit-tiers h2{
  color: var(--color-primary);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.audit-tiers .section__intro{
  margin: 0.75rem auto 0;
  max-width: 65ch;
  color: var(--color-muted);
  line-height: 1.65;
  text-align: center;
}

.audit-tiers {
  text-align: center;
}

.audit-tiers h2,
.audit-tiers .section__intro {
  text-align: center;
}

.tiers-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(1.25rem, 3vw, 2.25rem);
  align-items: stretch;
}




.how-it-works {
  background: var(--color-white);
  padding: var(--section-space) 1rem;
}
.how-it-works__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.step-number {
  width: 38px;
  height: 38px;
  background: var(--color-secondary);
  color: var(--color-text);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.step-text h3 {
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}
.step-text p {
  color: var(--color-muted);
}
.how-it-works__image img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.why-us {
  background: var(--color-panel);
  padding: var(--section-space) 1rem;
  text-align: center;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.why-card h3 {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.why-card p {
  color: var(--color-text);
}

/* ===== TRUST PANEL ===== */
.trust-panel {
  background: var(--color-white);
  padding: var(--section-space) 1rem;
}

.trust-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.trust-panel__text h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.trust-panel__text p {
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.trust-panel__text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.trust-panel__text li {
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-size: 1rem;
}

@media (max-width: 992px) {
  .trust-panel__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trust-panel__image img {
    margin: 0 auto 2rem;
  }
}


.trust-panel__image img {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--color-white),
              0 0 16px rgba(225, 0, 106, 0.2),
              0 0 24px rgba(255, 183, 3, 0.15);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.trust-panel__image img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 4px var(--color-white),
              0 0 22px rgba(225, 0, 106, 0.4),
              0 0 32px rgba(255, 183, 3, 0.3);
}

@media (max-width: 992px) {
  .trust-panel__image img {
    margin: 0 auto 1.5rem;
    width: 80%;
    max-width: 320px;
  }
}


/* ===== TESTIMONIALS PANEL ===== */
.testimonials {
  background: var(--color-panel);
  padding: var(--section-space) 1rem;
  text-align: center;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.testimonial-card p {
  color: var(--color-text);
  font-style: italic;
}
.testimonial-card h4 {
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 1rem;
}



/* ===== BLOG ===== */

.latest-blogs {
  background: var(--color-panel);
  padding: var(--section-space) 1rem;
  text-align: center;
}

.latest-blogs .section__title {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.latest-blogs .section__intro {
  color: var(--color-text);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.latest-blogs .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card__content {
  padding: 1.2rem;
  text-align: left;
}

.blog-card__content h3 {
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-card__content p {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.8rem;
}

.read-more {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: var(--color-accent);
}

.blog-footer-link {
  text-align: center;
}

.blog-footer-link .btn {
  font-weight: 600;
}

.latest-blogs.featured-layout {
  
  padding: 6rem 1rem 5rem;
  position: relative;
  z-index: 1;
}

.latest-blogs.featured-layout .section__title {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.latest-blogs.featured-layout .section__intro {
  text-align: center;
  color: var(--color-text);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.6;
}

.blog-featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem; /* stops overlap with button */
}

.featured-post {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 420px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.featured-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.featured-image {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  filter: brightness(0.6);
  transition: filter 0.3s ease;
}

.featured-post:hover .featured-image {
  filter: brightness(0.8);
}

/* Pink-tinted overlay gradient for the Hurd pop 💖 */
.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: var(--color-white);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 10%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.featured-overlay h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  color: var(--color-white);
}

.featured-overlay p {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 0.8rem;
}

.side-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.side-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.side-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.side-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.side-card__content {
  padding: 1rem 1.2rem;
  text-align: left;
}

.side-card__content h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.side-card__content p {
  color: var(--color-text);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}



/* Centered button spacing fix */
.blog-footer-link {
  text-align: center;
  margin-top: 3rem;
  position: relative;
  z-index: 3;
}

/* Responsive layout */
@media (max-width: 900px) {
  .blog-featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-post {
    min-height: 300px;
  }
}


.helper-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.glossary-link {
  color: var(--color-accent);
  font-weight: 600;
}
.glossary-link:hover {
  color: var(--color-primary);
}

.tier-card ul,
.trust-panel__text ul{
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* Standard spacing for section headings */
section h2{
  margin-bottom: 1.25rem;
}

/* Give the “plain English” section proper breathing room */
.testimonials{
  padding: var(--section-space) 1rem;
}

/* Make the grid breathe */
.testimonials .why-grid{
  margin-top: 2rem;
  gap: 2rem;
}

/* Ensure the cards aren't glued to the title */
.testimonials h2{
  margin-bottom: 1.75rem;
}

@media (max-width: 900px){
  .hero{
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 0;
  }
  .hero__content{
    padding: 0 1.25rem;
  }
  .hero__media{
    min-height: 260px;
  }
}


/* =============================================
   HOMEPAGE OVERRIDES - new page structure
   ============================================= */

/* Hero image column -- uses services-hero__media like other pages */
.services-hero__media {
  height: 100%;
  min-height: 500px;
  background:
    linear-gradient(
      270deg,
      rgba(255,255,255,0) 55%,
      rgba(255,255,255,0.85) 85%,
      rgba(255,255,255,1) 100%
    ),
    url('/Images/code-bg-banner-hero.png') center/cover no-repeat;
}

/* Section background alternation for new homepage sections */
.trust-panel {
  background: var(--color-panel);
}

.services-section.section--panel {
  background: var(--color-white);
}

.how-it-works {
  background: var(--color-panel);
}

.why-us {
  background: var(--color-white);
}

/* Tiers grid two-column variant */
.tiers-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .tiers-grid--two {
    grid-template-columns: 1fr;
  }
  .services-hero__media {
    min-height: 260px;
  }
}

/* Homepage how it works - 3 column process grid */
.how-it-works .process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .how-it-works .process-grid {
    grid-template-columns: 1fr;
  }
}

/* Services section - more breathing room */
.services-section.section--panel {
  padding: clamp(3rem, 5vw, 5rem) 1rem;
}

/* Fix highlighted card - border accent only, no pink text */
.services-section .tier-card--featured h3,
.services-section .tier-card--featured p,
.services-section .tier-card--featured li,
.services-section .tier-card--featured .service-card__note {
  color: inherit;
}

.services-section .tier-card--featured {
  border: 2px solid var(--color-accent);
}

/* Process steps for homepage how-it-works - 
   copied here so home.css is self-contained (services.css not loaded on homepage) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.process-step {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 26px rgba(0,0,0,.05);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.process-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,.08);
}

.process-step__number {
  width: 46px;
  height: 46px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(0,150,136,.12);
  border: 1px solid rgba(0,150,136,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.process-step h3 {
  margin: 0 0 0.5rem;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.process-step p {
  margin: 0;
  color: var(--color-muted);
  font-size: .95rem;
  line-height: 1.6;
}

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