/*
Theme Name: Birdit
Theme URI: https://www.birdit.eu
Author: Birdit SRL
Author URI: https://www.birdit.eu
Description: Professional, modern WordPress theme for Birdit IT solutions company
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: birdit
Tags: business, portfolio, one-column, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==================== CSS Reset & Base ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand identity — preserved */
  --primary-color: #2a819d;
  --primary-dark: #1f6178;
  --primary-light: #3ba3c5;
  --gradient: linear-gradient(135deg, #2a819d 0%, #3ba3c5 100%);

  /* Neutral palette — refined for professional feel */
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-muted: #eef2f6;
  --surface: #ffffff;
  --border: #e4e9ee;
  --border-strong: #d6dde4;
  --text-dark: #0f2231;
  --text-body: #334756;
  --text-light: #64768a;
  --white: #ffffff;

  /* Elevation — softer, more corporate */
  --shadow-xs: 0 1px 2px rgba(15, 34, 49, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 34, 49, 0.05), 0 1px 2px rgba(15, 34, 49, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 34, 49, 0.07), 0 2px 6px rgba(15, 34, 49, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 34, 49, 0.10), 0 4px 12px rgba(15, 34, 49, 0.05);
  --shadow-ring: 0 0 0 3px rgba(42, 129, 157, 0.15);

  /* Structure */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --header-height: 76px;
  --content-max: 1160px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ==================== Header & Navigation ==================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: transform 0.35s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.main-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.main-header.scroll-down {
  transform: translateY(-100%);
}

.navbar {
  padding: 0.75rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  align-items: center;
}

.nav-menu a {
  position: relative;
  display: inline-block;
  color: var(--text-body);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: calc(100% - 1.9rem);
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transition: transform 0.25s var(--ease-out);
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu li.current-menu-item > a::after,
.nav-menu li.current_page_item > a::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Social icons in nav */
.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--border);
}

.nav-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  background: transparent;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.nav-social-link:hover {
  transform: translateY(-1px);
}

.nav-social-link--linkedin:hover {
  color: #fff;
  background: #0a66c2;
}

.nav-social-link--facebook:hover {
  color: #fff;
  background: #1877f2;
}

/* Hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.mobile-menu-toggle:hover {
  background: var(--bg-soft);
  border-color: var(--border-strong);
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==================== Buttons ==================== */
.cta-button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  background: var(--gradient);
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(42, 129, 157, 0.22);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), filter 0.25s var(--ease-out);
}

.cta-button:hover,
.btn:hover {
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(42, 129, 157, 0.30);
  filter: brightness(1.03);
}

.cta-button:active,
.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  filter: none;
}

/* ==================== Hero Section ==================== */
.hero {
  position: relative;
  padding: 96px 32px 104px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(59, 163, 197, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(42, 129, 157, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 34, 49, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 34, 49, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
}

.hero-text {
  animation: fadeUp 0.7s var(--ease-out) both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(42, 129, 157, 0.08);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.hero-title .accent,
.hero-title em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.75;
  max-width: 560px;
}

.hero-image {
  animation: fadeUp 0.7s 0.1s var(--ease-out) both;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== Section Header ==================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header h3 {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(42, 129, 157, 0.08);
  border-radius: var(--radius-pill);
}

.heading-line {
  width: 48px;
  height: 3px;
  background: var(--gradient);
  margin: 1.25rem auto 0;
  border-radius: 2px;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-top: 1rem;
}

/* ==================== Services Section ==================== */
.services {
  padding: 96px 32px;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  position: relative;
  background: var(--white);
  padding: 2rem 1.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 129, 157, 0.08);
  border-radius: var(--radius-md);
  transition: background 0.3s var(--ease-out);
}

.service-card:hover .service-icon {
  background: rgba(42, 129, 157, 0.14);
}

.service-icon img {
  width: 34px;
  height: 34px;
}

.service-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ==================== Contact Section ==================== */
.contact {
  padding: 96px 32px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.contact-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
}

.contact-info h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.contact-info > p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 2.25rem;
  line-height: 1.75;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: var(--radius-sm);
}

.contact-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.contact-item h5 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.contact-item p {
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.5;
  font-weight: 500;
}

.contact-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-illustration img {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* ==================== Footer ==================== */
.main-footer {
  background: #0b1c29;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
}

.main-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--gradient);
  opacity: 0.9;
}

.footer-inner {
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  max-width: 360px;
}

.footer-brand img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.footer-tagline strong,
.footer-tagline .accent {
  color: var(--primary-light);
  font-weight: 600;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.footer-social-link:hover {
  transform: translateY(-2px);
  border-color: transparent;
}

.footer-social-link--linkedin:hover {
  color: #fff;
  background: #0a66c2;
}

.footer-social-link--facebook:hover {
  color: #fff;
  background: #1877f2;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 1.15rem;
}

.footer-col span,
.footer-col a,
.footer-col p {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.9;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom .footer-socials {
  margin: 0;
}

/* Hide old wave block if still present in markup */
.footer-wave {
  display: none;
}

/* ==================== Page / Blog Content ==================== */
main {
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
  padding-top: var(--header-height);
}

.page-content {
  padding: 4rem 0 5rem;
}

.entry-header {
  margin-bottom: 2rem;
}

.entry-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.post-thumbnail {
  margin: 1.5rem 0 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.entry-content p {
  margin-bottom: 1.15rem;
  color: var(--text-body);
}

.entry-content h2,
.entry-content h3 {
  margin: 2.25rem 0 1rem;
}

/* ==================== Responsive ==================== */
@media (max-width: 968px) {
  .hero {
    padding: 72px 32px 84px;
  }

  .hero-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-subtitle,
  .contact-info > p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 380px;
  }

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

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .contact-item {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 22px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.25rem 1rem;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
    gap: 0;
  }

  .nav-right.active {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav-menu a {
    padding: 0.7rem 0.9rem;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-socials {
    display: flex;
    justify-content: center;
    margin-left: 0;
    padding: 1rem 0 0;
    border-left: none;
    border-top: 1px solid var(--border);
    margin-top: 0.75rem;
  }

  .hero {
    padding: 56px 22px 72px;
  }

  .services,
  .contact {
    padding: 72px 22px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .service-card {
    padding: 1.85rem 1.6rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 48px 18px 64px;
  }

  .services,
  .contact {
    padding: 64px 18px;
  }

  .service-card {
    padding: 1.6rem 1.35rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .cta-button,
  .btn {
    padding: 0.85rem 1.7rem;
    font-size: 0.95rem;
  }
}

/* ==================== Contact Form 7 ==================== */
.wpcf7-form {
  background: transparent;
}

.wpcf7-form .row {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.wpcf7-form p {
  margin: 0;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel,
.wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  box-sizing: border-box;
}

.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-tel:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-ring);
}

.wpcf7-form-control.wpcf7-text::placeholder,
.wpcf7-form-control.wpcf7-email::placeholder,
.wpcf7-form-control.wpcf7-tel::placeholder,
.wpcf7-form-control.wpcf7-textarea::placeholder {
  color: var(--text-light);
  opacity: 0.85;
}

.wpcf7-form-control.wpcf7-textarea {
  min-height: 150px;
  resize: vertical;
}

.wpcf7-form-control.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.1rem;
  background: var(--gradient);
  color: var(--white);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(42, 129, 157, 0.22);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), filter 0.25s var(--ease-out);
}

.wpcf7-form-control.wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(42, 129, 157, 0.30);
  filter: brightness(1.03);
}

.wpcf7-spinner {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.75rem;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(42, 129, 157, 0.25);
  border-top-color: var(--primary-color);
  border-radius: 50%;
}

.wpcf7-not-valid {
  border-color: #e5484d !important;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.15) !important;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #e5484d;
}

.wpcf7-response-output {
  margin-top: 1.25rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  border: none !important;
}

.wpcf7-form.sent .wpcf7-response-output {
  background: rgba(42, 129, 157, 0.10);
  color: var(--primary-dark);
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
  background: rgba(229, 72, 77, 0.10);
  color: #b42a2f;
}

.hidden-fields-container {
  display: none;
}

/* ==================== Full-Width Section Override ==================== */
/*
 * Gutenberg wraps pasted HTML in group blocks with `is-layout-constrained`,
 * which applies a max-width. Force full-width for main sections.
 */
.hero,
.services,
.contact {
  width: 100%;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* ==================== Scroll animations ==================== */
.animate-in {
  animation: fadeUp 0.6s var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
