/* ============================================================
   Comfort Breeze — global design tokens
   Source: Comfort Breeze/css/styles.css (HTML site)
   Section layouts stay in Elementor widgets; this file is the canvas.
   ============================================================ */

:root {
  --navy: #1176bc;
  --navy-deep: #0d5a91;
  --navy-text: #0e5f9a;
  --heading-blue: #0a295b;
  --orange: #be1f2f;
  --orange-deep: #8f1622;
  --orange-mid: #a51a28;
  --orange-soft: #d4293a;
  --white: #ffffff;
  --page: #f2f2f2;
  --surface-alt: #f7f7f7;
  --border: #dde1e6;
  --body: #5f6873;
  --text: #1e252d;
  --muted: #7d858d;
  --placeholder: #6d7480;
  --slate-social: #75849e;
  --fb: #1877f2;
  --gold: #f4b400;
  --green: #2e7d32;

  --font-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", Arial, sans-serif;

  --phi: 1.618;
  --text-base: 16px;
  --lh-body: 1.618;
  --text-xs: 10px;
  --text-sm: 13px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 26px;
  --text-2xl: 33px;
  --text-3xl: 42px;
  --text-4xl: 53px;
  --text-5xl: 68px;

  --container: 1240px;
  --section: 96px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.06);
  --shadow-panel: 0 18px 40px rgba(17, 118, 188, 0.12);
  --header-h: 134px;
}

@media (max-width: 1100px) {
  :root {
    --header-h: 122px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--lh-body);
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}

p {
  font-size: var(--text-md);
  line-height: var(--lh-body);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--heading-blue);
  font-weight: 600;
  line-height: 1;
  text-wrap: balance;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

.container {
  width: min(100% - 64px, var(--container));
  margin-inline: auto;
}

.site-main {
  min-height: 40vh;
}

.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;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  overflow: visible;
  clip: auto;
  background: var(--heading-blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ---------- Buttons ----------
   `.elementor a { box-shadow: none }` is (0,1,1) and loads after this file,
   so button rules must include `.elementor a.btn` to keep the HTML 3D ledge. */
a.btn,
button.btn,
.btn,
.elementor a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.elementor a.btn:hover,
a.btn:hover,
.btn:hover {
  transform: translateY(-2px);
}

.elementor a.btn:active,
a.btn:active,
.btn:active {
  transform: translateY(0) scale(0.98);
}

.elementor a.btn--orange,
a.btn--orange,
.btn--orange {
  background: linear-gradient(180deg, var(--orange-soft) 0%, var(--orange) 55%, var(--orange-mid) 100%);
  color: var(--white);
  box-shadow: 0 5px 0 var(--orange-deep), 0 14px 22px rgba(0, 0, 0, 0.28);
}

.elementor a.btn--orange:hover,
a.btn--orange:hover,
.btn--orange:hover {
  color: var(--white);
  box-shadow: 0 6px 0 var(--orange-deep), 0 16px 24px rgba(0, 0, 0, 0.32);
}

.elementor a.btn--white,
a.btn--white,
.btn--white {
  background: var(--white);
  color: var(--navy-text);
  box-shadow: 0 5px 0 #d5dbe6, 0 14px 22px rgba(0, 0, 0, 0.25);
}

.elementor a.btn--white:hover,
a.btn--white:hover,
.btn--white:hover {
  color: var(--navy);
  background: var(--white);
}

.elementor a.btn--navy,
a.btn--navy,
.btn--navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 5px 0 var(--navy-deep), 0 10px 18px rgba(17, 118, 188, 0.22);
}

.elementor a.btn--navy:hover,
a.btn--navy:hover,
.btn--navy:hover {
  color: var(--white);
  background: var(--navy-deep);
}

.elementor a.btn--ghost-light,
a.btn--ghost-light,
.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  box-shadow: none;
}

.elementor a.btn--ghost-light:hover,
a.btn--ghost-light:hover,
.btn--ghost-light:hover {
  background: var(--white);
  color: var(--navy);
}

.btn--sm,
.elementor a.btn--sm {
  height: 46px;
  font-size: var(--text-md);
  padding: 0 22px;
}

/* ---------- Section heads ---------- */
.sec-head { margin-bottom: 40px; }
.sec-head--center { text-align: center; }

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sec-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.sec-head h2 {
  font-size: var(--text-4xl);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.sec-head--center h2 {
  max-width: 24ch;
  margin-inline: auto;
}

.sec-head p {
  margin-top: 16px;
  max-width: 54ch;
  font-size: var(--text-lg);
}

.sec-head--center p { margin-inline: auto; }

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  height: auto;
  min-height: 140px;
  padding: 14px 16px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(17, 118, 188, 0.12);
}

label {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-blue);
}

/* ---------- Reveal (used by widgets later) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.45s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 150ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--left { transform: translate3d(-44px, 14px, 0); }
.reveal--right { transform: translate3d(44px, 14px, 0); }
.reveal--up { transform: translate3d(0, 40px, 0); }
.reveal.reveal--fade,
.reveal.reveal--fade.is-visible { transform: none; }

/* ---------- Elementor canvas ---------- */
.elementor-page .site-main {
  min-height: 0;
}

.elementor-kit-comfort-breeze,
.elementor-widget {
  font-family: var(--font-body);
}

.elementor-heading-title {
  font-family: var(--font-heading);
  color: var(--heading-blue);
}

/* ---------- Responsive type ---------- */
@media (max-width: 768px) {
  .container { width: min(100% - 36px, var(--container)); }

  :root {
    --text-xl: 20px;
    --text-2xl: 26px;
    --text-3xl: 33px;
    --text-4xl: 42px;
    --text-5xl: 53px;
    --section: 64px;
  }

  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .reveal--left,
  .reveal--right,
  .reveal--up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .btn:active,
  .cb-scroll-top:hover,
  .cb-scroll-top:active {
    transform: none;
  }

  .cb-scroll-top {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .cb-contact-rail__btn {
    transition: none;
  }
}

.elementor-popup-modal .dialog-widget-content:has(.cb-thanks) {
  border-radius: 12px;
  overflow: hidden;
}

.cb-thanks {
  padding: 12px 8px 4px;
  text-align: left;
}

.cb-thanks-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.1);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 26px;
}

.cb-thanks h3 {
  margin: 0 0 10px;
  color: var(--heading-blue);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.cb-thanks p {
  margin: 0;
  max-width: 46ch;
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--lh-body);
}

.cb-scroll-top {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--heading-blue);
  font-size: 18px;
  line-height: 1;
  background: var(--white);
  box-shadow: 0 4px 14px rgba(10, 41, 91, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.28s,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cb-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.cb-scroll-top.is-visible:hover {
  color: var(--white);
  background: var(--heading-blue);
  border-color: var(--heading-blue);
  box-shadow: 0 6px 16px rgba(10, 41, 91, 0.16);
}

.cb-scroll-top.is-visible:active {
  transform: translate3d(0, 1px, 0);
  box-shadow: 0 2px 8px rgba(10, 41, 91, 0.12);
}

.cb-scroll-top:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

body.elementor-editor-active .cb-scroll-top {
  display: none;
}

@media (max-width: 767px) {
  .cb-scroll-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media print {
  .cb-scroll-top,
  .cb-contact-rail {
    display: none !important;
  }
}

.cb-contact-rail {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateY(-50%);
  filter: drop-shadow(-2px 4px 12px rgba(10, 41, 91, 0.18));
}

.cb-contact-rail__btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  width: max-content;
  max-width: 48px;
  height: 48px;
  color: var(--white);
  text-decoration: none;
  overflow: hidden;
  transition: max-width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.cb-contact-rail__btn:first-child {
  border-radius: 8px 0 0 0;
}

.cb-contact-rail__btn:last-child {
  border-radius: 0 0 0 8px;
}

.cb-contact-rail__btn:hover,
.cb-contact-rail__btn:focus-visible {
  max-width: 220px;
  border-radius: 0;
}

.cb-contact-rail__btn--call {
  background: var(--navy);
}

.cb-contact-rail__btn--whatsapp {
  background: #25d366;
}

.cb-contact-rail__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.cb-contact-rail__icon img,
.cb-contact-rail__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.cb-contact-rail__label {
  padding: 0 4px 0 18px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.cb-contact-rail__btn:focus-visible {
  outline: 2px solid var(--heading-blue);
  outline-offset: 2px;
}

body.elementor-editor-active .cb-contact-rail {
  display: none;
}

@media (max-width: 767px) {
  .cb-contact-rail__btn {
    max-width: 44px;
    height: 44px;
  }

  .cb-contact-rail__icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .cb-contact-rail__btn:hover,
  .cb-contact-rail__btn:focus-visible {
    max-width: 200px;
    border-radius: 0;
  }
}
