/*
Theme Name: Solvyn
Theme URI: https://solvyn.example.com
Author: Solvyn
Author URI: https://solvyn.example.com
Description: A simple custom WordPress theme for Solvyn
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solvyn-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600;700&display=swap');

:root {
  --color-base: #ffffff;
  --color-dark: #002642;
  --color-light: #008FF5;
  --color-contrast: #F15152;
  --font-primary: 'Google Sans', sans-serif;
  --content-width: 1000px;
}

/* Basic reset and layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-base);
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  min-height: 50vh;
  padding: 6rem 0 2rem;
}

.singular-main {
  padding-top: 2rem;
}

/* Single post – content + sidebar layout */
.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.5rem;
  align-items: start;
}

.single-post-content {
  min-width: 0;
}

.single-sidebar {
  position: sticky;
  top: 6rem;
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 4px;
}

.sidebar-item {
  margin-bottom: 1.5rem;
}

.sidebar-item:last-child {
  margin-bottom: 0;
}

.sidebar-date,
.sidebar-category,
.sidebar-views {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--color-dark);
}

.sidebar-category a {
  color: var(--color-light);
  text-decoration: none;
}

.sidebar-category a:hover {
  text-decoration: underline;
}

.sidebar-views-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-eye {
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 0.75rem;
}

.sidebar-posts-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-post-card {
  display: block;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  border-radius: 4px;
}

.sidebar-post-card-image {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: rgba(0, 38, 66, 0.1);
}

.sidebar-post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-post-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-light);
  opacity: 0.2;
}

.sidebar-post-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.25rem 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient( to top, rgba(0, 0, 0, 0.75), transparent );
  line-height: 1.3;
  display: block;
}

.sidebar-see-more {
  display: block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-light);
  background: transparent;
  border: 1px solid var(--color-light);
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.sidebar-see-more:hover {
  color: #ffffff;
  background: var(--color-light);
}

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

  .single-sidebar {
    position: static;
  }
}

/* Post navigation – previous (newer) and next (older) */
.post-navigation {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 38, 66, 0.1);
}

.post-navigation-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  overflow: visible;
}

.post-nav-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.35s ease;
}

.post-nav-prev {
  transform-origin: right center;
}

.post-nav-prev:hover {
  transform: scaleX(1.08);
}

.post-nav-next {
  transform-origin: left center;
}

.post-nav-next:hover {
  transform: scaleX(1.08);
}

.post-nav-card-image {
  position: relative;
  height: 170px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-dark);
  overflow: hidden;
}

.post-nav-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient( to top, rgba(0, 38, 66, 0.85), rgba(0, 38, 66, 0.3) );
}

.post-nav-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  z-index: 1;
}

.post-nav-label {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  transition: color 0.2s;
}

.post-nav-card:hover .post-nav-label {
  color: var(--color-dark);
}

@media (max-width: 600px) {
  .post-navigation-inner {
    grid-template-columns: 1fr;
  }
}

/* About Us page */
.about-page .about-content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.about-intro {
  margin-bottom: 3rem;
}

.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 1rem;
}

.about-section {
  margin-bottom: 3rem;
}

.about-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 1rem;
}

.about-heading-centered {
  text-align: center;
  margin-bottom: 1.5rem;
}

.about-section p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--color-dark);
}

.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-timeline-placeholder {
  min-height: 120px;
  background: rgba(0, 38, 66, 0.06);
  border-left: 4px solid var(--color-light);
  border-radius: 0 4px 4px 0;
}

.about-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.about-principle {
  padding: 1.25rem;
  background: #f8f8f8;
  border-radius: 4px;
}

.about-principle h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 0.5rem;
}

.about-principle p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.about-list-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-focus-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.about-focus-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-light);
}

.about-process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 36rem;
  margin: 0 auto;
}

.about-process-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 38, 66, 0.1);
}

.about-process-list li:last-child {
  border-bottom: none;
}

.about-process-list h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 0.25rem;
}

.about-process-list p {
  margin: 0;
  font-size: 0.9375rem;
}

.about-vision-full {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.about-commitment {
  text-align: center;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.about-commitment-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  text-align: left;
}

.about-commitment-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
}

.about-commitment-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-light);
}

.about-commitment-close {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .about-two-col {
    grid-template-columns: 1fr;
  }

  .about-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .about-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Contact Us page */
.contact-page .contact-layout {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-content-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 1.25rem;
  line-height: 1.3;
}

.contact-features-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.contact-features-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-size: 0.9375rem;
}

.contact-features-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--color-light);
  font-weight: bold;
}

.contact-tagline {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-dark);
  margin: 0 0 2.5rem;
  font-style: italic;
}

.contact-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 1rem;
}

.contact-content-col p {
  margin: 0 0 0.5rem;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.contact-list-label {
  margin-top: 2rem !important;
}

.contact-dev-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.contact-dev-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

.contact-dev-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-light);
}

.contact-close {
  font-style: italic;
  font-size: 0.9375rem;
}

.contact-form-col {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 4px;
}

.contact-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--color-dark);
  border: 1px solid rgba(0, 38, 66, 0.2);
  border-radius: 4px;
  background: var(--color-base);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-light);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form p {
  margin: 0 0 1rem;
}

.contact-disclaimer {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.contact-disclaimer a {
  color: var(--color-light);
  text-decoration: none;
}

.contact-disclaimer a:hover {
  text-decoration: underline;
}

.contact-submit {
  padding: 0.65rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #ffffff;
  background: var(--color-light);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.contact-submit:hover {
  opacity: 0.9;
}

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

/* Page header banner - interior pages (40vh, featured image bg, title centered) */
.page-header-banner {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  height: 40vh;
  min-height: 200px;
  background-color: var(--color-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 38, 66, 0.6);
}

.page-header-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-header-title {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  padding: 0 1rem;
}

/* Hero - full width from top, dark background, header overlays it */
.hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 0;
  background-color: var(--color-dark);
  padding: 6rem 1rem 3rem; /* top padding clears fixed header */
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-lines-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: var(--color-light);
}

.hero-lines-svg {
  width: 100%;
  height: 100%;
  opacity: 0;
  stroke-width: 1.5;
}

.hero-lines-wrap.hero-lines-ready .hero-lines-svg {
  opacity: 0.35;
}

.hero-lines-wrap .hero-lines-svg path {
  stroke: currentColor;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-description {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.hero-tagline {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.hero-button {
  display: inline-block;
  background-color: var(--color-light);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.hero-button:hover {
  color: #ffffff;
  opacity: 0.9;
}

.hero-image-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-image-placeholder {
  width: 400px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-image-wrap {
    justify-content: center;
  }
}

/* Intro section – Software That Solves Real Problems */
.intro-section {
  background-color: rgba(0, 38, 66, 0.03);
  padding: 8rem 1rem;
  overflow: hidden;
}

.intro-section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.intro-section-content {
  will-change: transform;
  transition: transform 0.25s ease-out;
}

.intro-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 1.25rem;
  line-height: 1.25;
}

.intro-section-lead,
.intro-section-text {
  font-size: 1.0625rem;
  color: var(--color-dark);
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: 42rem;
}

.intro-section-mission-label {
  font-size: 1rem;
  color: var(--color-dark);
  margin: 1.5rem 0 0.25rem;
  font-weight: 500;
}

.intro-section-mission {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-light);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Why Solvyn – trust section under hero */
.why-solvyn {
  background-color: var(--color-base);
  padding: 4rem 1rem;
}

.why-solvyn-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  text-align: center;
}

.why-solvyn-intro {
  font-size: 1.125rem;
  color: var(--color-dark);
  opacity: 0.9;
  max-width: 36rem;
  margin: 0 auto 0.5rem;
  line-height: 1.6;
}

.why-solvyn-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2.5rem;
}

.why-solvyn-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.why-solvyn-item {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(0, 38, 66, 0.08);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 38, 66, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.why-solvyn-item:hover {
  border-color: var(--color-light);
  box-shadow: 0 4px 16px rgba(0, 143, 245, 0.12);
}

.why-solvyn-item-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
}

.why-solvyn-item-icon-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.why-solvyn-item-1 .why-solvyn-item-icon-bg { background-color: #91eda9; }
.why-solvyn-item-2 .why-solvyn-item-icon-bg { background-color: #ffb0ff; }
.why-solvyn-item-3 .why-solvyn-item-icon-bg { background-color: #b0cdff; }
.why-solvyn-item-4 .why-solvyn-item-icon-bg { background-color: #fff982; }

.why-solvyn-item:hover .why-solvyn-item-icon-bg {
  transform: translate(3px, -3px);
}

.why-solvyn-item-icon {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-dark);
  opacity: 0.9;
}

.why-solvyn-item-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 0.5rem;
}

.why-solvyn-item-desc {
  font-size: 0.9375rem;
  color: var(--color-dark);
  opacity: 0.85;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .why-solvyn-grid {
    grid-template-columns: 1fr;
  }
  .why-solvyn-title {
    font-size: 1.5rem;
  }
}

/* Products section */
.products-section {
  background-color: var(--color-base);
  padding: 4rem 1rem;
}

.products-section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.products-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 0.5rem;
}

.products-section-intro {
  font-size: 1.0625rem;
  color: var(--color-dark);
  opacity: 0.9;
  margin: 0 0 2rem;
  max-width: 36rem;
  line-height: 1.6;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.product-card {
  padding: 2rem;
  border: 1px solid rgba(0, 38, 66, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 38, 66, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: var(--color-light);
  box-shadow: 0 4px 20px rgba(0, 143, 245, 0.1);
}

.product-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 1rem;
}

.product-card-desc {
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.product-card-features-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 0.5rem;
}

.product-card-features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.product-card-features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  color: var(--color-dark);
  opacity: 0.9;
  line-height: 1.5;
}

.product-card-features li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-light);
  font-weight: 500;
}

.product-card-tagline {
  font-size: 0.9375rem;
  color: var(--color-dark);
  font-style: italic;
  margin: 0 0 1.25rem;
  opacity: 0.9;
}

.product-card-link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-light);
  text-decoration: none;
}

.product-card-link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Designed for Builders section */
.builders-section {
  background-color: rgba(0, 38, 66, 0.04);
  padding: 4rem 1rem;
}

.builders-section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.builders-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 0.75rem;
}

.builders-section-intro {
  font-size: 1.0625rem;
  color: var(--color-dark);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.builders-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.builders-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.6;
}

.builders-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background-color: var(--color-light);
  border-radius: 50%;
}

.builders-section-close {
  font-size: 1.0625rem;
  color: var(--color-dark);
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
  max-width: 36rem;
}

/* Latest posts – homepage under Designed for Builders */
.latest-posts-section {
  background-color: var(--color-base);
  padding: 4rem 1rem;
}

.latest-posts-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.latest-posts-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 2rem;
  text-align: center;
}

.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.latest-posts-grid .post-card {
  height: 100%;
}

.latest-posts-more {
  text-align: center;
  margin-top: 2rem;
}

.latest-posts-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #ffffff;
  background: var(--color-light);
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.latest-posts-btn:hover {
  color: #ffffff;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .latest-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .latest-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Our Vision – Beyond Plugins section */
.vision-section {
  background-color: var(--color-base);
  padding: 4rem 1rem;
}

.vision-section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.vision-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-light);
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}

.vision-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 1rem;
}

.vision-section-lead,
.vision-section-text {
  font-size: 1.0625rem;
  color: var(--color-dark);
  line-height: 1.7;
  margin: 0 0 1rem;
  max-width: 42rem;
}

.vision-section-list-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 1rem 0 0.5rem;
}

.vision-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.vision-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  color: var(--color-dark);
  opacity: 0.9;
  line-height: 1.5;
}

.vision-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background-color: var(--color-light);
  border-radius: 50%;
}

.vision-section-close {
  font-size: 1.0625rem;
  color: var(--color-dark);
  font-weight: 500;
  margin: 0;
  line-height: 1.6;
  max-width: 36rem;
}

/* Testimonials section – slider */
.testimonials-section {
  background-color: rgba(0, 38, 66, 0.04);
  padding: 4rem 0;
}

.testimonials-section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.testimonials-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 2rem;
  text-align: center;
}

.testimonials-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonials-slider-btn {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(0, 38, 66, 0.2);
  background: var(--color-base);
  color: var(--color-dark);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.testimonials-slider-btn:hover {
  border-color: var(--color-light);
  background: rgba(0, 143, 245, 0.08);
}

.testimonials-slider {
  flex: 1;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.6s ease-out;
  will-change: transform;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 68%;
  width: 68%;
  max-width: 560px;
  padding: 2rem;
  background: var(--color-base);
  border: 1px solid rgba(0, 38, 66, 0.08);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 38, 66, 0.06);
  transform: scale(0.92);
  transform-origin: center center;
  transition: transform 0.6s ease-out, box-shadow 0.6s ease-out;
}

.testimonial-card.is-centered {
  transform: scale(1);
  box-shadow: 0 4px 24px rgba(0, 38, 66, 0.1);
}

.testimonial-content {
  flex: 1 1 auto;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  margin-top: auto;
}

.testimonial-content p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-dark);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author-image {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
}

.testimonial-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-author-placeholder {
  background: var(--color-light);
  opacity: 0.3;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial-author-name {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 1rem;
}

.testimonial-author-meta {
  font-size: 0.875rem;
  color: var(--color-dark);
  opacity: 0.8;
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 38, 66, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.testimonial-dot:hover {
  background: rgba(0, 38, 66, 0.4);
}

.testimonial-dot.is-active {
  background: var(--color-light);
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 78%;
    width: 78%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .testimonials-slider-btn {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }
  .testimonial-card {
    flex: 0 0 90%;
    width: 90%;
  }
  .testimonial-card.is-centered {
    transform: scale(1);
  }
}

/* Team section */
.team-section {
  background-color: var(--color-base);
  padding: 4rem 1rem;
}

.team-section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.team-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 2rem;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.team-member-card {
  text-align: center;
  max-width: 220px;
}

.team-member-image {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 38, 66, 0.06);
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-member-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-light);
  opacity: 0.25;
}

.team-member-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 0.25rem;
}

.team-member-title {
  font-size: 0.9375rem;
  color: var(--color-dark);
  opacity: 0.85;
  margin: 0;
}

@media (min-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Newsletter – above footer, color-light background, overlaps footer */
.newsletter-section {
  background-color: var(--color-light);
  color: var(--color-base);
  padding: 4.5rem 2rem 5rem;
  margin-bottom: -6rem;
  position: relative;
  z-index: 1;
  border-radius: 4rem;
  box-shadow: 0 -4px 24px rgba(0, 38, 66, 0.12);
}

.newsletter-section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.newsletter-content {
  flex: 1 1 auto;
  max-width: 32rem;
}

.newsletter-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-base);
}

.newsletter-description {
  font-size: 1.25rem;
  opacity: 0.95;
  margin: 0 0 1.5rem;
  color: var(--color-base);
  line-height: 1.5;
}

.newsletter-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-base);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 38, 66, 0.1);
}

.newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.875rem 1.25rem;
  border: none;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-dark);
  background: var(--color-base);
}

.newsletter-input::placeholder {
  color: var(--color-dark);
  opacity: 0.5;
}

.newsletter-input:focus {
  outline: none;
}

.newsletter-submit {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--color-dark);
  color: var(--color-base);
  cursor: pointer;
  transition: opacity 0.2s;
}

.newsletter-submit:hover {
  opacity: 0.9;
}

.newsletter-submit-icon {
  flex-shrink: 0;
}

.newsletter-decoration {
  flex-shrink: 0;
  width: 12rem;
  height: 8rem;
  color: var(--color-base);
  opacity: 0.5;
}

.newsletter-email-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .newsletter-section-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-decoration {
    width: 10rem;
    height: 6.5rem;
    align-self: flex-end;
  }
}

/* Header - fixed, no background, white text, overlays hero */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: none;
  padding: 1.5rem 1rem;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.site-header.is-scrolled {
  background-color: var(--color-dark);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.site-header .custom-logo-link img,
.site-header .site-logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

.site-logo.site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.site-header .custom-logo-link {
  display: flex;
  align-items: center;
}

.primary-menu .menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.primary-menu a:hover {
  color: var(--color-light);
  opacity: 0.9;
}


/* Blog – posts grid (3 columns, card layout) */
.blog-main {
  padding-top: 2rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.post-card {
  margin: 0;
  height: 100%;
}

.post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-dark);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 38, 66, 0.12);
  border-color: var(--color-light);
}

.post-card-image {
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 38, 66, 0.08);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-light);
  opacity: 0.2;
}

.post-card-title {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
  padding: 1rem;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.post-card-link:hover .post-card-title {
  color: var(--color-light);
}

.load-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.load-more-btn {
  padding: 0.75rem 2rem;
  background: var(--color-light);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.load-more-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.load-more-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

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

article { margin-bottom: 2rem; }
article h2 { margin-bottom: 0.5rem; }
article h2 a { color: inherit; text-decoration: none; }
article h2 a:hover { color: var(--color-light); text-decoration: underline; }

/* Footer - color-dark background, color-base text, 4 columns + copyright row */
.site-footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background-color: var(--color-dark);
  color: var(--color-base);
  padding:12rem 1rem 1.5rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
}

.footer-col {
  font-size: 0.9rem;
}

.footer-col-logo .custom-logo-link img,
.footer-col-logo .footer-site-name {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-col-logo .custom-logo-link img {
  max-height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-site-name {
  color: var(--color-base);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-tagline {
  color: var(--color-base);
  opacity: 0.9;
  margin: 0;
  font-size: 0.9rem;
}

.footer-nav .footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav .footer-menu a {
  color: var(--color-base);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
}

.footer-nav .footer-menu a:hover {
  opacity: 0.85;
}

.footer-col-contact p {
  margin: 0.25rem 0;
}

.footer-social-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.footer-social-icons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-social-link {
  color: var(--color-base);
  text-decoration: none;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  font-size: 0.75rem;
}

.footer-social-link:hover {
  opacity: 0.9;
}

.footer-copyright {
  text-align: center;
  width: 100%;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

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

@media (max-width: 480px) {
  .footer-row {
    grid-template-columns: 1fr;
  }
}
