/* =========================================================
    WattWelt24 – Global Styles (Cleaned, Consolidated)
    Notes:
    - Kept visual behavior intact; removed duplicates & dead code.
    - Grouped by: Variables → Base → Layout → Components → Utilities → Responsive.
    - Mobile off-canvas nav uses #mobile-nav (accordion). Desktop uses .main-nav (hover dropdown).
    ========================================================= */
    
/* ============================
    Change the calendly filter
    ============================ */

/* Stronger accent (may tint neutrals slightly) ---*/
.calendly-overlay .calendly-popup iframe {
  filter: hue-rotate(170deg) saturate(1.5) brightness(1) contrast(1);
}
/* Target the inline Calendly widget */
.calendly-inline-widget iframe {
  filter: hue-rotate(165deg) saturate(1.5) brightness(1) contrast(1);
}

/* ============================
    VARIABLES & ROOT
    ============================ */
:root {
  --brand: #ff7a00;
  --brand-dark: #e86e00;
  --ink: #111318;
  --muted: #5f6368;
  --bg: #fafafa;
  --card: #fff;
  --border: #e5e7eb;
  --focus: 0 0 0 3px rgba(255, 122, 0, .35);
}

/* ============================
    RESET / BASE
    ============================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================
    LAYOUT HELPERS
    ============================ */
.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-intro {
  font-size: 18px;
  color: var(--muted);
  max-width: 75ch;
  margin: 0 auto 40px;
  text-align: center;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--brand-dark);
}

/* ============================
    HERO (with Plexus canvas)
    ============================ */
.hero.with-plexus {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(160deg, #2d3436 0%, #111318 100%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  overflow: hidden;
}

#plexus-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.hero .badge {
  padding: 10px 20px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 99px;
  color: #fff;
  font-weight: 700;
}

.animated-headline {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 122, 0, .5);
  min-height: 55px;
  margin: 15px 0 5px;
}

.animated-headline .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(.8);
  animation: char-in .5s cubic-bezier(.25, .46, .45, .94) forwards;
}

@keyframes char-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero p {
  font-size: 18px;
  color: #ccc;
  max-width: 65ch;
  margin-bottom: 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}

.btn-primary {
  background-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 122, 0, .2);
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 122, 0, .3);
}

.btn-secondary {
  background-color: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: #f8f8f8;
}

/* ============================
    TWO WORLDS SECTION
    ============================ */
.two-worlds .ampersand {
  color: var(--brand);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.4em;
  display: inline-block;
  animation: ampersand-glow 2.5s infinite alternate;
  position: relative;
  top: .1em;
}

@keyframes ampersand-glow {
  from {
    text-shadow: 0 0 5px rgba(255, 122, 0, .3);
  }

  to {
    text-shadow: 0 0 20px rgba(255, 122, 0, .7);
  }
}

.world-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 35px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.world-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--brand);
  color: #fff;
  border-radius: 50%;
  margin-bottom: 20px;
}

.world-icon svg.icon-path {
  width: 32px;
  height: 32px;
  stroke: #fff;
}

.icon-path path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  transition: stroke-dashoffset 1.5s cubic-bezier(.47, 0, .745, .715);
}

.world-card.animated .icon-path path {
  stroke-dashoffset: 0;
}

.world-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.world-card p {
  color: var(--muted);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.165, .84, .44, 1);
}

/* ============================
    OTHER CONTENT BLOCKS
    ============================ */
.feature-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  font-weight: 600;
}

.feature-pill svg {
  width: 24px;
  height: 24px;
  fill: var(--brand);
  flex-shrink: 0;
}

.cta-section {
  background-color: #f1f3f5;
  text-align: center;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Contact + Map */
.contact-map-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: start;
  margin-top: 20px;
}

.form-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .06);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 15px;
}

.form-group label .mandatory {
  color: var(--brand-dark);
}

.form-group .form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}

.form-group .form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus);
}

#map {
  height: 485px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .06);
  z-index: 1;
}

.form-message {
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ============================
    FOOTER
    ============================ */
.site-footer {
  background-color: #1a1c21;
  color: #ccc;
  padding: 50px 0;
  font-size: 15px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-about .logo {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.footer-about p {
  margin-top: 15px;
  max-width: 45ch;
  color: #aaa;
}

.footer-links h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #ccc;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 14px;
  color: #888;
}

/* ============================
    CALENDLY MODAL
    ============================ */
.calendly-modal[hidden] {
  display: none !important;
}

.calendly-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.calendly-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.calendly-dialog {
  position: relative;
  z-index: 201;
  width: min(900px, 92vw);
  height: min(760px, 90vh);
  margin: 5vh auto 0;
  background: #fff;
  border: 1px solid #eaecee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
  display: flex;
  flex-direction: column;
}

.calendly-title {
  font-size: 20px;
  font-weight: 800;
  padding: 14px 18px;
  margin: 0;
  background: #fff;
  color: #0f172a;
  border-bottom: 1px solid #eef0f3;
}

.calendly-dialog .calendly-inline-widget {
  flex: 1;
}

.calendly-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0f172a;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.calendly-close:hover {
  background: #0b1020;
}

/* ============================
    UTILITIES & MICRO-ANIMS
    ============================ */
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 10000;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -6px);
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.165, .84, .44, 1), transform .8s cubic-bezier(.165, .84, .44, 1);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
    RESPONSIVE
    ============================ */
@media (max-width:992px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-map-grid {
    grid-template-columns: 1fr;
  }

  #map {
    height: 300px;
  }
}

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

  .section-title,
  .animated-headline {
    font-size: 32px;
  }

  .hero.with-plexus {
    min-height: 50vh;
    padding: 80px 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .footer-about p {
    margin: 15px auto;
  }
}