/* Nicolas Caron — modern presentation layer
 * Preserves the existing Astra palette:
 * #046BD2, #045CB4, #1E293B, #334155, #FFFFFF, #F0F5FA, #D1D5DB
 */

:root {
  --nc-blue: #046BD2;
  --nc-blue-dark: #045CB4;
  --nc-ink: #1E293B;
  --nc-slate: #334155;
  --nc-white: #FFFFFF;
  --nc-soft: #F0F5FA;
  --nc-border: #D1D5DB;
  --nc-radius-lg: 24px;
  --nc-radius-md: 16px;
  --nc-shadow: 0 24px 70px rgba(30, 41, 59, 0.12);
  --nc-shadow-soft: 0 12px 36px rgba(30, 41, 59, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--nc-white);
  color: var(--nc-slate);
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header .ast-primary-header-bar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(209, 213, 219, 0.65);
  box-shadow: 0 8px 30px rgba(30, 41, 59, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header .ast-container {
  max-width: 1240px;
}

.main-header-menu > .menu-item > .menu-link {
  position: relative;
  font-weight: 600;
  color: var(--nc-ink);
  transition: color .2s ease;
}

.main-header-menu > .menu-item > .menu-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 10px;
  height: 2px;
  border-radius: 99px;
  background: var(--nc-blue);
  transition: left .2s ease, right .2s ease;
}

.main-header-menu > .menu-item:hover > .menu-link::after,
.main-header-menu > .current-menu-item > .menu-link::after {
  left: 16px;
  right: 16px;
}

.ast-header-button-1 .ast-custom-button {
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 10px 24px rgba(4, 107, 210, 0.18);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.ast-header-button-1 .ast-custom-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(4, 107, 210, 0.24);
}

/* Global content rhythm */
.elementor-page .elementor > .e-con,
.elementor-page .elementor > .elementor-section {
  position: relative;
}

.elementor-page .elementor > .e-con {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.elementor-page .elementor-heading-title {
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.elementor-widget-text-editor {
  color: var(--nc-slate);
}

.elementor-widget-text-editor p,
.elementor-widget-text-editor li {
  line-height: 1.75;
}

.elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

.elementor-button {
  border-radius: 999px !important;
  min-height: 48px;
  padding: 13px 24px !important;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(4, 107, 210, 0.16);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease !important;
}

.elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(4, 107, 210, 0.22);
}

/* Home */
.home .elementor-66 > .e-con:first-child {
  min-height: calc(100vh - 88px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 78% 24%, rgba(4, 107, 210, 0.13), transparent 34%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
  overflow: hidden;
}

.home .elementor-66 > .e-con:first-child::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -210px;
  bottom: -180px;
  border-radius: 50%;
  border: 1px solid rgba(4, 107, 210, 0.15);
  box-shadow: inset 0 0 0 70px rgba(4, 107, 210, 0.025);
  pointer-events: none;
}

.home .elementor-66 .elementor-widget-heading:first-child .elementor-heading-title {
  max-width: 980px;
  margin-inline: auto;
  color: var(--nc-ink);
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1.04;
}

.home .elementor-66 .elementor-widget-text-editor {
  max-width: 760px;
}

.home .elementor-66 .elementor-widget-image img {
  border-radius: 32px;
  box-shadow: var(--nc-shadow);
  border: 8px solid rgba(255,255,255,.9);
}

.home .elementor-66 .e-con-child:has(.elementor-widget-image) {
  position: relative;
}

.home .elementor-66 .e-con-child:has(.elementor-widget-image)::after {
  content: "Web • DevOps • Cloud";
  position: absolute;
  right: 12px;
  bottom: 22px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.88);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: var(--nc-shadow-soft);
}

/* Portfolio */
.page-id-2 .elementor-2 > .e-con:first-child {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
  text-align: center;
}

.page-id-2 .elementor-2 > .e-con:not(:first-child) {
  margin: 0 auto 34px;
  width: min(1180px, calc(100% - 40px));
  border: 1px solid rgba(209, 213, 219, 0.75);
  border-radius: var(--nc-radius-lg);
  background: #fff;
  box-shadow: var(--nc-shadow-soft);
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px);
}

.page-id-2 .elementor-widget-image img {
  border-radius: var(--nc-radius-md);
  box-shadow: 0 16px 40px rgba(30, 41, 59, 0.11);
}

.page-id-2 .elementor-widget-heading h2,
.page-id-2 .elementor-widget-heading h3 {
  color: var(--nc-ink);
}

.page-id-2 .elementor-widget-text-editor ul {
  margin: 20px 0 26px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-id-2 .elementor-widget-text-editor li {
  position: relative;
  padding-left: 28px;
}

.page-id-2 .elementor-widget-text-editor li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--nc-blue);
  font-weight: 800;
}

/* Contact */
.page-id-31 .elementor-31 > .e-con:first-child {
  padding-bottom: 28px;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
}

.page-id-31 .elementor-31 > .e-con:nth-child(2) {
  padding-top: 24px;
}

.page-id-31 .elementor-widget-text-editor:has(.wpcf7) {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(209, 213, 219, 0.8);
  border-radius: var(--nc-radius-lg);
  background: #fff;
  box-shadow: var(--nc-shadow);
}

.wpcf7 form p {
  margin-bottom: 18px;
}

.wpcf7 label {
  display: block;
  color: var(--nc-ink);
  font-weight: 700;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  margin-top: 8px;
  border: 1px solid var(--nc-border) !important;
  border-radius: 12px !important;
  background: #F8FAFC;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  border-color: var(--nc-blue) !important;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(4, 107, 210, 0.10) !important;
}

.wpcf7 input[type="submit"] {
  width: 100%;
  border-radius: 999px !important;
  min-height: 50px;
  font-weight: 800;
}

/* Footer */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(209, 213, 219, 0.65);
  background: var(--nc-ink);
  color: rgba(255,255,255,.82);
}

.site-footer a,
.site-footer .widget-title {
  color: #fff !important;
}

.site-footer .ast-footer-social-wrap .ast-builder-social-element,
.site-footer .footer-social-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 16px;
  margin: 4px 6px;
  border: 1px solid rgba(4, 107, 210, 0.22);
  border-radius: 999px;
  background: var(--nc-blue) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(4, 107, 210, 0.20);
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.site-footer .ast-footer-social-wrap .ast-builder-social-element svg,
.site-footer .footer-social-item svg,
.site-footer .social-item-label {
  color: #fff !important;
  fill: currentColor !important;
}

.site-footer a:hover {
  color: #8FC7FF !important;
}

.site-footer .ast-footer-social-wrap .ast-builder-social-element:hover,
.site-footer .footer-social-item:hover {
  background: var(--nc-blue-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(4, 107, 210, 0.28);
}

/* Accessibility + motion */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(4, 107, 210, .35) !important;
  outline-offset: 3px;
}

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

@media (max-width: 921px) {
  .site-header .ast-primary-header-bar {
    backdrop-filter: none;
  }

  .home .elementor-66 > .e-con:first-child {
    min-height: auto;
  }

  .home .elementor-66 .e-con-child:has(.elementor-widget-image)::after {
    right: 18px;
    bottom: 18px;
  }

  .page-id-2 .elementor-2 > .e-con:not(:first-child) {
    width: min(100% - 28px, 1180px);
  }
}

@media (max-width: 544px) {
  .elementor-page .elementor > .e-con {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .home .elementor-66 .elementor-widget-heading:first-child .elementor-heading-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .home .elementor-66 .elementor-widget-image img {
    border-radius: 22px;
    border-width: 5px;
  }

  .page-id-2 .elementor-2 > .e-con:not(:first-child),
  .page-id-31 .elementor-widget-text-editor:has(.wpcf7) {
    border-radius: 18px;
  }
}