/*
Theme Name: Euroneuf
Theme URI: 
Author: Arthur Ballan
Author URI: 
Description: Le thème officiel de Euroneuf
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: euroneuf
Tags: 
*/

/* =========================================
   1. BASE RESET & GLOBAL
   ========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--wp--preset--color--dark);
  background-color: var(--wp--preset--color--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   3. NAVIGATION - Header
   ========================================= */

nav a[href="#"],
nav a:not([href]) {
  pointer-events: none;
  cursor: default;
}

.wp-block-navigation__responsive-container.is-menu-open {
  padding: 2rem 1rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:not(:first-child) {
  margin-top: 1rem;
}

/* Desktop Navigation */
@media (min-width: 960px) {
  header nav {
    background-color: #fff;
    border: 1px solid var(--wp--custom--glass--border);
    border-radius: var(--wp--custom--radius--full);
    padding: 0.5rem 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--wp--preset--shadow--shadow-md);
  }

  .wp-block-navigation__responsive-container-open,
  .wp-block-navigation__responsive-container-close {
    display: none !important;
  }

  .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: block !important;
    position: static !important;
    background-color: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  header nav ul.wp-block-navigation > li > a {
    transition: var(--wp--custom--transition--smooth);
    text-shadow: 0 0 20px rgba(255, 255, 255, 1);
  }

  header nav ul.wp-block-navigation > li > a:hover {
    color: var(--wp--preset--color--secondary);
  }

  /* Submenu Dropdown */
  header nav ul ul {
    gap: 0;
    padding: 1rem 0 !important;
    position: absolute;
    top: calc(100% + 10px);
    background: var(--wp--preset--color--white);
    border-radius: var(--wp--custom--radius--md);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: var(--wp--preset--shadow--shadow-lg);
    border: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--wp--custom--transition--smooth);
  }

  header nav ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

header nav ul ul li {
  padding: 0;
  margin: 0;
}

header nav ul ul li a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--wp--preset--color--dark);
  transition: background-color 0.2s;
}

header nav ul ul li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

header nav ul ul ul {
  left: 100%;
  top: 0;
}

/* Mobile Navigation */
@media (max-width: 959px) {
  
  html :where(.is-position-sticky) {
    --wp-admin--admin-bar--position-offset: var(--wp-admin--admin-bar--height, 0px);
  }

  header nav {
    width: 100%;
    text-align: right;
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  header nav button.wp-block-navigation__responsive-container-open {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--wp--preset--color--white);
    border: 1px solid var(--wp--custom--glass--border);
    border-radius: var(--wp--custom--radius--full);
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: var(--wp--preset--shadow--shadow-md);
    transition: var(--wp--custom--transition--smooth);
    padding: 0;
  }

  header nav button.wp-block-navigation__responsive-container-open:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--wp--preset--shadow--shadow-lg);
  }

  header nav button.wp-block-navigation__responsive-container-open svg {
    fill: var(--wp--preset--color--primary);
    width: 24px;
    height: 24px;
  }

  header nav ul {
    margin: 0rem !important;
    padding: 0rem !important;
  }

  header nav li {
    margin: 0rem !important;
    padding: 1rem 0rem 0rem 1rem !important;
  }

  header nav a {
    margin: 0 !important;
    padding: 0 !important;
  }

  header nav ul li ul li ul {
    display: none !important;
  }

  nav a[href="#"],
  nav a:not([href]) {
    display: none;
  }

  .wp-block-navigation__responsive-container-close {
    background-color: var(--wp--preset--color--white);
    border: 1px solid var(--wp--custom--glass--border);
    border-radius: var(--wp--custom--radius--full);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--wp--preset--shadow--shadow-md);
    transition: var(--wp--custom--transition--smooth);
    margin-bottom: 2rem;
    padding: 0;
    margin-left: auto;
    top: 1rem;
    right: 1rem;
  }

  .wp-block-navigation__responsive-container-close:hover {
    transform: scale(1.05);
    box-shadow: var(--wp--preset--shadow--shadow-lg);
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
    gap: 0;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-container {
    padding-top: 0;
  }

  .site-header .wp-block-site-logo img {
    width: 120px;
    height: auto;
  }

  .site-main > .wp-block-group > .wp-block-group:first-child {
    padding-top: 100px;
    padding-bottom: 80px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Navbar CTA Button */
header nav .btn-cta a {
  background-color: var(--wp--preset--color--secondary) !important;
  color: var(--wp--preset--color--primary) !important;
  border-radius: 50px !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  transition: var(--wp--custom--transition--smooth) !important;
}

.btn-cta a:hover {
  box-shadow: 0 0 15px rgba(32, 226, 215, 0.4);
  transform: translateY(-2px);
}

footer .btn-cta a:hover {
  box-shadow: none;
}

/* =========================================
   4. NAVIGATION - Footer
   ========================================= */

footer nav ul li {
  flex-direction: column;
  align-items: flex-start;
}

footer nav ul.wp-block-navigation > li > a {
  opacity: 0.8;
  transition: var(--wp--custom--transition--smooth);
}

footer nav ul.wp-block-navigation > li > a:hover {
  opacity: 1;
  color: var(--wp--preset--color--secondary);
}

footer nav ul ul {
  display: none !important;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  position: static;
  padding: 0;
  margin-top: 0.5rem;
  margin-left: 0;
  background-color: transparent;
  border: none;
  width: 100%;
  height: auto;
  max-height: none;
  overflow: visible;
  transform: none;
}

footer nav ul ul li {
  padding: 0;
  margin: 0;
}

footer nav ul ul li a {
  padding: 0.25rem 0;
  background-color: transparent;
}

footer nav ul ul,
footer .wp-block-navigation__submenu-icon,
footer .wp-block-navigation-submenu__toggle {
  display: none;
}

footer.site-footer {
  background-color: #051A2E;
}

/* =========================================
   5. BUTTONS & LINKS
   ========================================= */

.wp-block-button__link {
  position: relative;
  overflow: hidden;
  transition: var(--wp--custom--transition--smooth);
  box-shadow: var(--wp--preset--shadow--shadow-md);
}

.wp-block-button__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(32, 226, 215, 0.5);
  filter: brightness(1.1);
}

/* Outline buttons on dark backgrounds */
.has-primary-background-color .wp-block-button.is-style-outline .wp-block-button__link {
  color: #ffffff;
  border-color: #ffffff;
  background-color: transparent;
}

.has-primary-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: #ffffff;
  color: var(--wp--preset--color--primary);
}

a.wp-block-read-more {
  font-size: 0.85rem;
  border-radius: 50px;
  transition: var(--wp--custom--transition--smooth);
  box-shadow: var(--wp--preset--shadow--shadow-md);
  background: transparent;
  border: 2px solid currentColor;
  color: var(--wp--preset--color--primary);
  padding: 0.667em 1.33em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

a.wp-block-read-more:hover {
  transform: translateY(-3px);
  box-shadow: var(--wp--preset--shadow--shadow-lg);
  filter: brightness(1.1);
}

/* =========================================
   6. FORMS (Contact Form 7)
   ========================================= */

.wpcf7-inline-wrapper {
  display: flex;
  flex-flow: row nowrap;
  gap: 1rem;
  margin-top: 1rem;
}

.wpcf7-inline-field {
  flex: 1 1 auto;
  margin: 0;
}

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

.wpcf7-acceptance {
  font-size: 0.9rem;
}

input:not([type="checkbox"]),
textarea {
  padding: 1rem 1.5rem;
  border: 1px solid var(--wp--custom--glass--border);
  background-color: var(--wp--preset--color--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--wp--preset--color--dark);
  border-radius: var(--wp--custom--radius--md);
  transition: var(--wp--custom--transition--smooth);
  box-shadow: var(--wp--preset--shadow--shadow-sm);
  width: 100%;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--secondary);
  box-shadow: 0 0 0 4px rgba(32, 226, 215, 0.1);
}

::placeholder {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--wp--preset--color--muted);
  opacity: 1;
}

@media (max-width: 781px) {
  .wpcf7-inline-wrapper {
    flex-wrap: wrap;
  }
}

/* CTA Glass Form (light form inside dark section) */
.cta-glass-form label {
  color: var(--wp--preset--color--primary);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.cta-glass-form input:not([type="submit"]):not([type="checkbox"]),
.cta-glass-form textarea {
  background: var(--wp--preset--color--light);
  border: 1px solid #e2e8f0;
  color: var(--wp--preset--color--primary);
  border-radius: 12px;
  padding: 1rem 1.5rem;
}

.cta-glass-form input:focus,
.cta-glass-form textarea:focus {
  border-color: var(--wp--preset--color--secondary);
  box-shadow: 0 0 0 4px rgba(32, 226, 215, 0.1);
  background: #ffffff;
}

.cta-glass-form .wpcf7-submit {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  border: none;
  border-radius: 12px;
}

/* =========================================
   7. LISTS (Custom Checkmarks)
   ========================================= */

ul.wp-block-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

ul.wp-block-list > li {
  position: relative;
  padding-left: 1.75rem;
  margin-top: 0.5rem;
}

ul.wp-block-list > li::before {
  content: "\f00c";
  position: absolute;
  left: 0;
  top: 0;
  font: normal normal normal 14px / 1 FontAwesome;
  font-size: inherit;
  color: var(--wp--preset--color--secondary);
  line-height: inherit;
}

/* =========================================
   8. TABLES
   ========================================= */

.wp-block-table {
  overflow: hidden;
  box-shadow: var(--wp--preset--shadow--shadow-md);
  transition: var(--wp--custom--transition--smooth);
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table thead {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}

.wp-block-table th {
  padding: 1.5rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--white);
  border: none;
}

.wp-block-table td {
  padding: 1rem 1.5rem;
  border: none;
  color: var(--wp--preset--color--dark);
  font-size: 1rem;
  line-height: 1.6;
}

.wp-block-table tbody tr:hover {
  background-color: rgba(32, 226, 215, 0.05);
}

.wp-block-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 1rem;
}

.wp-block-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 1rem;
}

@media (max-width: 599px) {
  .wp-block-table {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
  }

  .wp-block-table th,
  .wp-block-table td {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }

  .wp-block-table th {
    font-size: 0.8125rem;
  }

  .wp-block-table tbody tr:hover {
    transform: none;
  }
}

/* =========================================
   9. SCHEMA FAQ (Yoast)
   ========================================= */

.schema-faq {
  width: 100%;
  margin: 2rem 0;
}

.schema-faq-section {
  width: 100%;
  margin: 0 0 1rem 0;
  padding: 1.5rem;
  cursor: pointer;
  border: 1px solid var(--wp--custom--glass--border);
  background: var(--wp--preset--color--white);
  box-shadow: var(--wp--preset--shadow--shadow-sm);
  border-radius: var(--wp--custom--radius--lg);
  transition: var(--wp--custom--transition--smooth);
}

.schema-faq-section:hover {
  border-color: var(--wp--preset--color--secondary);
  box-shadow: var(--wp--preset--shadow--shadow-md);
  transform: translateY(-2px);
}

.schema-faq-question {
  display: block;
  background: transparent;
  color: var(--wp--preset--color--primary);
  padding: 0;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
  position: relative;
  transition: var(--wp--custom--transition--smooth);
}

.schema-faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--wp--preset--color--light);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--wp--preset--color--primary);
  transition: var(--wp--custom--transition--smooth);
}

.schema-faq-section.active .schema-faq-question::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}

.schema-faq-answer {
  margin: 1rem 0 0 0;
  color: var(--wp--preset--color--dark);
  font-size: 1rem;
  line-height: 1.7;
}

.schema-faq-answer p {
  margin: 0;
}

body:not(.block-editor-page) .schema-faq-section:not(:first-child) .schema-faq-answer {
  display: none;
}

body:not(.block-editor-page) .schema-faq-section.active .schema-faq-answer {
  display: block;
}

.editor-styles-wrapper .schema-faq-section .schema-faq-answer {
  display: block;
}

@media (max-width: 599px) {
  .schema-faq-section {
    padding: 1.25rem;
    border-radius: 0.625rem;
  }

  .schema-faq-question {
    font-size: 1rem;
    padding-right: 1.75rem;
  }

  .schema-faq-question::after {
    font-size: 1.25rem;
  }

  .schema-faq-answer {
    font-size: 0.9375rem;
  }
}

/* =========================================
   10. SCHEMA HOW-TO (Yoast)
   ========================================= */

.schema-how-to {
  width: 100%;
  margin: 2rem 0;
  counter-reset: steps-counter;
}

.schema-how-to ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.schema-how-to-total-time {
  margin: 0 0 1.5rem 0;
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  border: 1px solid var(--wp--preset--color--secondary);
  background: var(--wp--preset--color--white);
  box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.10);
  border-radius: 18px;
  transition: var(--wp--custom--transition--smooth);
}

.schema-how-to-duration-time-text {
  font-weight: 500;
  color: var(--wp--preset--color--dark);
}

.schema-how-to-duration-time {
  font-weight: 600;
  color: var(--wp--preset--color--dark);
}

.schema-how-to-step {
  border: 1px solid var(--wp--custom--glass--border);
  background: var(--wp--preset--color--white);
  box-shadow: var(--wp--preset--shadow--shadow-sm);
  padding: 2rem;
  border-radius: var(--wp--custom--radius--lg);
  transition: var(--wp--custom--transition--smooth);
  position: relative;
  margin-bottom: 1rem;
}

.schema-how-to-step:hover {
  transform: translateY(-2px);
  border-color: var(--wp--preset--color--secondary);
  box-shadow: var(--wp--preset--shadow--shadow-md);
}

.schema-how-to-step::before {
  counter-increment: steps-counter;
  content: counter(steps-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  border-radius: var(--wp--custom--radius--full);
  font-weight: 700;
  box-shadow: var(--wp--preset--shadow--shadow-md);
  margin-bottom: 1rem;
  transition: var(--wp--custom--transition--smooth);
}

.schema-how-to-step:hover::before {
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--primary);
  transform: scale(1.1);
}

.schema-how-to-step-name {
  display: block;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--wp--preset--color--dark);
  line-height: 1.4;
  background: transparent;
  padding: 0;
}

.schema-how-to-step-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--wp--preset--color--dark);
}

.schema-how-to-step-text p {
  margin: 0;
}

@media (max-width: 599px) {
  .schema-how-to {
    padding: 1.5rem;
  }

  .schema-how-to-total-time {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }

  .schema-how-to-step {
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  }

  .schema-how-to-step::before {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    left: -1rem;
    margin-bottom: 0;
    position: absolute;
    top: 1.5rem;
  }

  .schema-how-to-step-name {
    font-size: 1rem;
    padding-left: 0.5rem;
  }

  .schema-how-to-step-text {
    font-size: 0.9375rem;
    padding-left: 0.5rem;
  }
}

/* =========================================
   11. BREADCRUMBS (Yoast)
   ========================================= */

body.home .yoast-breadcrumbs {
  display: none;
}

.yoast-breadcrumbs {
  margin-top: 2rem;
}

.yoast-breadcrumbs > span > span {
  padding: 0 0.25rem;
}

.yoast-breadcrumbs > span > span:first-child {
  padding-left: 0;
}

.yoast-breadcrumbs a {
  text-decoration: none;
}

header.site-header .yoast-breadcrumb {
  margin-top: 1rem;
  width: 100%;
}

/* =========================================
   12. CTA SECTION
   ========================================= */

section.alignfull.has-primary-background-color {
  overflow: hidden;
  position: relative;
}

section.alignfull.has-primary-background-color::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(32, 226, 215, 0.08), transparent 40%);
  pointer-events: none;
}

section.alignfull.has-primary-background-color h2 {
  color: var(--wp--preset--color--secondary);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
  text-shadow: none;
}

section.alignfull.has-primary-background-color ul {
  margin-top: 2rem;
  padding-left: 0;
}

@media (max-width: 781px) {
  section.alignfull.has-primary-background-color {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .cta-glass-form {
    padding: 1.5rem;
  }
}

/* =========================================
   13. PREMIUM CARDS
   ========================================= */

.premium-card {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--custom--glass--border);
  border-radius: var(--wp--custom--radius--xl);
  padding: 2.5rem;
  box-shadow: var(--wp--preset--shadow--shadow-md);
  transition: var(--wp--custom--transition--smooth);
  height: 100%;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--wp--preset--shadow--shadow-lg);
  border-color: var(--wp--preset--color--secondary);
}

/* =========================================
   14. INTERNAL PAGES TYPOGRAPHY
   ========================================= */

body:is(.template-page, .template-single) {
  background-color: var(--wp--preset--color--light);
}

body:is(.template-page, .template-single) h1.wp-block-post-title,
body:is(.template-page, .template-single) h1.wp-block-heading,
body:is(.template-page, .template-single) .page-title {
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
  position: relative;
  display: block;
  width: 100%;
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 1.5rem;
}

body:is(.template-page, .template-single) h1.wp-block-post-title::after,
body:is(.template-page, .template-single) h1.wp-block-heading::after,
body:is(.template-page, .template-single) .page-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--wp--preset--color--secondary);
  border-radius: 2px;
}

body.template-page:not(.home) h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  color: var(--wp--preset--color--primary);
  position: relative;
}

body:is(.template-page, .template-single) h2:first-child {
  margin-top: 0;
}

body:is(.template-page, .template-single) h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--wp--preset--color--primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
}

body:is(.template-page, .template-single) .entry-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* Elegant Content Links */
body:is(.template-page, .template-single) .wp-block-post-content a:not(.wp-block-button__link),
body:is(.template-page, .template-single) .entry-content a:not(.wp-block-button__link) {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  background-image: linear-gradient(var(--wp--preset--color--secondary), var(--wp--preset--color--secondary));
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.3s ease;
  font-weight: 600;
}

main .wp-block-post-content a:not(.wp-block-button__link):hover {
  background-size: 100% 4px;
  color: var(--wp--preset--color--primary-light);
}

body:is(.template-page, .template-single) .entry-content ul:not(.wp-block-navigation__container) {
  margin-bottom: 2rem;
  padding-left: 0.5rem;
}

body:is(.template-page, .template-single) figure.wp-block-image img {
  border-radius: var(--wp--custom--radius--lg);
  box-shadow: var(--wp--preset--shadow--shadow-md);
  transition: var(--wp--custom--transition--smooth);
}

main figure.wp-block-image img:hover {
  transform: scale(1.02);
  box-shadow: var(--wp--preset--shadow--shadow-lg);
}

body:is(.template-page, .template-single) blockquote {
  border-left: none;
  padding: 2rem;
  background: var(--wp--preset--color--light);
  border-radius: var(--wp--custom--radius--lg);
  position: relative;
  font-style: italic;
  margin: 3rem 0;
}

main blockquote::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: 1rem;
  font-size: 5rem;
  color: var(--wp--preset--color--secondary);
  opacity: 0.3;
  font-family: serif;
}

/* =========================================
   15. SERVICES PAGE
   ========================================= */

.page-template-page-services .wp-site-blocks {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.page-template-page-services .wp-site-blocks > * {
  max-width: none;
  width: 100%;
}

.services-page-content .wp-block-post-template {
  gap: 3rem 2rem;
}

.services-page-content article.wp-block-group {
  transition: var(--wp--custom--transition--smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.services-page-content article.wp-block-group:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(10, 38, 71, 0.12);
  border-color: var(--wp--preset--color--secondary);
}

.services-page-content article.wp-block-group h3.wp-block-post-title {
  margin-top: 0;
}

.services-page-content article.wp-block-group h3.wp-block-post-title a {
  text-decoration: none;
  color: var(--wp--preset--color--primary);
  transition: color 0.3s ease;
}

.services-page-content article.wp-block-group:hover h3.wp-block-post-title a {
  color: var(--wp--preset--color--secondary);
}

.services-page-content article.wp-block-group .wp-block-post-excerpt {
  flex-grow: 1;
}

.services-page-content .wp-block-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  align-self: flex-start;
}

.services-page-content article.wp-block-group:hover .wp-block-read-more {
  background: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--primary);
  box-shadow: 0 10px 20px rgba(32, 226, 215, 0.3);
}

.services-page-content :not(.has-primary-background-color) h2 {
  position: relative;
  padding-bottom: 1rem;
}

.services-page-content article.wp-block-group .wp-block-post-featured-image {
  overflow: hidden;
  margin-top: 0;
}

.services-page-content article.wp-block-group .wp-block-post-featured-image img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: auto;
  display: block;
}

.services-page-content article.wp-block-group:hover .wp-block-post-featured-image img {
  transform: scale(1.08);
}

.services-page-content .wp-block-column h2:first-child {
  margin-top: 0;
}

@media (max-width: 781px) {
  .services-page-content .wp-block-post-template {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-page-content .wp-block-columns {
    flex-direction: column;
  }

  .services-page-content .wp-block-column {
    flex-basis: 100%;
    margin-bottom: 2rem;
  }
}

@media (min-width: 782px) and (max-width: 1200px) {
  .services-page-content .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================
   16. BLOG PAGE
   ========================================= */

.blog-page-content {
  background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
}

.blog-page-content article.wp-block-group.blog-card {
  transition: var(--wp--custom--transition--smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.blog-page-content article.wp-block-group.blog-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(10, 38, 71, 0.15);
  border-color: var(--wp--preset--color--primary);
}

.blog-page-content article.wp-block-group.blog-card .wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
}

.blog-page-content article.wp-block-group.blog-card .wp-block-post-featured-image img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: auto;
  display: block;
}

.blog-page-content article.wp-block-group.blog-card:hover .wp-block-post-featured-image img {
  transform: scale(1.08);
}

.blog-page-content article.wp-block-group.blog-card h3.wp-block-post-title a {
  text-decoration: none;
  color: var(--wp--preset--color--primary);
  transition: color 0.3s ease;
}

.blog-page-content article.wp-block-group.blog-card:hover h3.wp-block-post-title a {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-page-content article.wp-block-group.blog-card .wp-block-post-excerpt {
  flex-grow: 1;
}

.blog-page-content article.wp-block-group.blog-card .wp-block-post-excerpt p {
  margin: 0;
}

.blog-page-content .wp-block-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
}

.blog-page-content article.wp-block-group.blog-card:hover .wp-block-read-more {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.blog-page-content .wp-block-query-pagination {
  display: none;
}

@media (max-width: 781px) {
  .blog-page-content .wp-block-post-template {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-page-content article.wp-block-group.blog-card h3.wp-block-post-title {
    font-size: 1.25rem;
  }
}

@media (min-width: 782px) and (max-width: 1200px) {
  .blog-page-content .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wp-block-post-featured-image :where(img) {
  transition: all 0.3s ease;
}

.wp-block-post-featured-image :where(img):hover {
  transform: scale(1.02);
  box-shadow: var(--wp--preset--shadow--shadow-lg);
}

/* =========================================
   17. CAROUSELS (CSS Scroll Snap)
   ========================================= */

:has(> .abcs)::after,
:has(> .google-reviews-carousel)::after {
  background-color: var(--wp--preset--color--dark);
  color: var(--wp--preset--color--dark);
}

@supports selector(::scroll-marker) {
  .abcs > *::scroll-marker {
    background: var(--wp--preset--color--dark);
  }

  .google-reviews-carousel .google-review-item::scroll-marker {
    background: var(--wp--preset--color--dark);
  }
}

/* =========================================
   18. ADMIN BAR & MISC
   ========================================= */

@media screen and (max-width: 599px) {
  #wpadminbar {
    position: fixed;
  }
}

@media (min-width: 600px) and (max-width: 1200px) {
  .wp-block-post-template-is-layout-grid {
    grid-template-columns: 1fr 1fr;
  }
}

article {
  height: 100%;
}

article .text > *:first-child {
  margin-top: 0;
}

figure {
  margin-block-start: 0px;
}

main p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.wp-block-group,
.wp-block-column {
  transition: var(--wp--custom--transition--smooth);
}

.wp-block-navigation-item__label {
  transition: var(--wp--custom--transition--smooth);
}