/* ==========================================================================
   HorizonPulse — Mobile-first responsive theme
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --color-primary: #0d4f5c;
  --color-primary-dark: #083540;
  --color-primary-light: #1a7a8c;
  --color-accent: #e8a838;
  --color-accent-hover: #d4952a;
  --color-text: #1a1a2e;
  --color-text-muted: #5c5c6f;
  --color-text-light: #8a8a9a;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7f8;
  --color-bg-dark: #0a2e36;
  --color-border: #e2e8ec;
  --color-overlay: rgba(10, 46, 54, 0.72);

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);

  --header-height: 64px;
  --container-padding: 1.25rem;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: var(--color-primary-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

p {
  margin-bottom: var(--space-sm);
}

ul, ol {
  list-style: none;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.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;
}

.section {
  padding: var(--space-xl) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.section-header--flex {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  text-align: left;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.section-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-text);
  border-color: var(--color-accent);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-text);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover,
.btn--outline:focus {
  background-color: var(--color-primary);
  color: #fff;
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-branding .custom-logo {
  max-height: 40px;
  width: auto;
}

.site-title,
.footer-site-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.site-title:hover,
.footer-site-title:hover {
  color: var(--color-primary-light);
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navigation */
.main-navigation {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--color-bg);
  padding: calc(var(--header-height) + var(--space-md)) var(--space-md) var(--space-md);
  transform: translateX(100%);
  transition: transform var(--transition);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  z-index: 999;
}

.main-navigation.is-open {
  transform: translateX(0);
}

.primary-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.primary-menu li a {
  display: block;
  padding: var(--space-sm) 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.primary-menu li a:hover,
.primary-menu li a:focus,
.primary-menu .current-menu-item > a {
  color: var(--color-primary);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 998;
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* --- Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-height) + var(--space-xl)) var(--container-padding) var(--space-xl);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-sm);
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(232, 168, 56, 0.4);
  border-radius: 50px;
}

.hero__title {
  margin-bottom: var(--space-md);
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: #fff;
  line-height: 1.15;
}

.hero__subtitle {
  margin-bottom: var(--space-lg);
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}

.hero__scroll span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* --- Services --- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__image img {
  transform: scale(1.05);
}

.service-card__body {
  padding: var(--space-md);
}

.service-card__title {
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Testimonial --- */
.testimonial__quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.testimonial__text {
  margin-bottom: var(--space-md);
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 3.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--color-text);
}

.testimonial__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent);
}

.testimonial__cite {
  font-style: normal;
}

.testimonial__author {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}

.testimonial__role {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* --- Blog / Post Grid --- */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.post-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.post-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-card__link:hover {
  color: inherit;
}

.post-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card__image img {
  transform: scale(1.04);
}

.post-card__body {
  padding: var(--space-md);
}

.post-card__title {
  margin-bottom: var(--space-xs);
  font-size: 1.125rem;
  line-height: 1.35;
  transition: color var(--transition);
}

.post-card:hover .post-card__title {
  color: var(--color-primary);
}

.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.55;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.meta-sep {
  margin: 0 0.125rem;
}

.blog-placeholder-notice {
  margin-top: var(--space-md);
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* --- About --- */
.about__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__eyebrow {
  margin-bottom: var(--space-xs);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-light);
}

.about__title {
  margin-bottom: var(--space-md);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.about__text p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- CTA --- */
.cta {
  position: relative;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.cta__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.cta__title {
  margin-bottom: var(--space-sm);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  color: #fff;
}

.cta__subtitle {
  margin-bottom: var(--space-lg);
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.cta__email {
  margin-top: var(--space-md);
  font-size: 0.9375rem;
}

.cta__email a {
  color: var(--color-accent);
}

.cta__email a:hover {
  color: #fff;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--space-xl);
}

.footer-widgets {
  margin-bottom: var(--space-lg);
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-site-title {
  color: #fff;
  font-size: 1.375rem;
}

.footer-tagline {
  margin: var(--space-xs) 0 var(--space-sm);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
}

.footer-menu a:hover {
  color: var(--color-accent);
}

/* Friend Links */
.friend-links__title {
  margin-bottom: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.friend-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.friend-links__list a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.friend-links__list a:hover {
  color: var(--color-accent);
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0;
  transition: background var(--transition);
}

.social-links a:hover {
  background: var(--color-accent);
}

.social-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.social-icon--twitter {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
}

.social-icon--linkedin {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
}

.social-icon--instagram {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z'/%3E%3C/svg%3E");
}

.social-icon--github {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
}

.site-footer__bottom {
  padding: var(--space-md) 0;
  text-align: center;
}

.copyright {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* --- Content Pages --- */
.content-area {
  padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-xl);
}

.page-header {
  margin-bottom: var(--space-lg);
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.archive-description {
  margin-top: var(--space-xs);
  color: var(--color-text-muted);
}

/* Single Post */
.single-post__header {
  margin-bottom: var(--space-md);
}

.single-post__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: var(--space-sm);
}

.single-post__featured {
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.single-post__featured img {
  width: 100%;
  height: auto;
}

.single-post__content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
}

.single-post__content h2,
.single-post__content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.single-post__content p {
  margin-bottom: var(--space-md);
}

.single-post__content img {
  border-radius: var(--radius-sm);
  margin: var(--space-md) 0;
}

.single-post__footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.single-post__footer .label {
  font-weight: 600;
  color: var(--color-text);
}

.post-navigation {
  margin: var(--space-lg) 0;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.post-navigation .nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.post-navigation a {
  font-size: 0.9375rem;
}

.post-navigation .nav-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

/* Page */
.page-content__header {
  margin-bottom: var(--space-md);
}

.page-content__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-content__featured {
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-content__body {
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* 404 */
.error-404 {
  text-align: center;
  padding: var(--space-xl) 0;
}

.error-404__code {
  font-size: clamp(4rem, 15vw, 8rem);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.error-404__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-sm);
}

.error-404__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Form */
.search-form {
  display: flex;
  gap: var(--space-xs);
  max-width: 480px;
  margin: 0 auto var(--space-lg);
}

.search-form__input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
}

.search-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 79, 92, 0.15);
}

.search-form__submit {
  flex-shrink: 0;
}

/* Comments */
.comments-area {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.comments-title,
.comment-reply-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.comment-list {
  margin-bottom: var(--space-lg);
}

.comment-list .comment {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Pagination */
.pagination {
  margin-top: var(--space-lg);
  text-align: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  margin: 0 0.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* No Results */
.no-results {
  text-align: center;
  padding: var(--space-xl) 0;
}

.no-results__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.no-results__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* Entry content (Gutenberg) */
.entry-content .alignwide {
  margin-left: calc(-1 * var(--container-padding));
  margin-right: calc(-1 * var(--container-padding));
}

.entry-content .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

/* ==========================================================================
   Tablet (768px+)
   ========================================================================== */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
    --header-height: 72px;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section-header--flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid .service-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .services__grid .service-card:last-child .service-card__image {
    aspect-ratio: auto;
    height: 100%;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__inner {
    flex-direction: row;
    align-items: center;
  }

  .about__image {
    flex: 1;
  }

  .about__content {
    flex: 1;
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial__footer {
    flex-direction: row;
    justify-content: center;
  }

  .post-navigation .nav-links {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Desktop (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .main-navigation {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    transform: none;
    box-shadow: none;
    overflow: visible;
    background: transparent;
  }

  .primary-menu {
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
  }

  .primary-menu li a {
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    border-bottom: none;
    position: relative;
  }

  .primary-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
  }

  .primary-menu li a:hover::after,
  .primary-menu .current-menu-item > a::after {
    width: 100%;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services__grid .service-card:last-child {
    grid-column: auto;
    display: block;
  }

  .services__grid .service-card:last-child .service-card__image {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-grid--archive {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__main {
    grid-template-columns: 2fr 1fr 2fr;
    align-items: start;
  }

  .content-area--single,
  .content-area--page {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   Large Desktop (1280px+)
   ========================================================================== */
@media (min-width: 1280px) {
  :root {
    --container-padding: 2.5rem;
  }

  .hero__content {
    max-width: 800px;
  }
}
