/* Custom Font Import */
@font-face {
    font-family: 'Metric';
    src: url('../fonts/Metric-Regular.ttf') format('truetype');
    font-weight: 400; /* Regular */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metric';
    src: url('../fonts/Metric-Medium.ttf') format('truetype');
    font-weight: 500; /* Medium */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metric';
    src: url('../fonts/Metric-SemiBold.ttf') format('truetype');
    font-weight: 600; /* SemiBold */
    font-style: normal;
    font-display: swap;
}


:root {
    --orange: #f58535;
    --green: #72a84f;
    --dark-teal: #00567e;
    --purple: #9331cd;
    --pink: #e83477;
    --black: #000;
    --gray: #666666;
    --dark-gray: #333;
    --light-gray: #f2f2f2;
    --border-gray: #e0e0e0;
    --white: #fff;
    --error-red: #d93025;
    --gradient: linear-gradient(90deg, var(--pink) 0%, var(--purple) 100%);
    --validation-blue: #3b82f6;
    --validation-blue-light: #E8F0FE;

    /* --- FONT SIZE SCALE --- */
    --font-size-lg: 56px;
    --font-size-md: 26px;
    --font-size-sm: 22px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Metric', sans-serif;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
    font-size: var(--font-size-sm); /* Base font size */
    font-weight: 400; /* Regular */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    font-weight: 600; /* SemiBold */
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Header */
.main-header {
    background: var(--white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-header .logo-mc-img {
    height: 100px;
    transition: height 0.3s ease;
}

.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500; /* Medium */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-header, .btn-cta {
    padding: 0;
    background: transparent;
    gap: 0;
}

.btn-header img {
    width: 350px;
    max-width: 100%;
    height: auto;
}

.btn-cta {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 700px;
}

.btn-cta img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-header:hover, .btn-cta:hover {
    opacity: 0.9;
}

/* Hero Section */
.hero {
    line-height: 0; /* Removes bottom space from image */
}
.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
}


/* Features Section */
.features {
    padding: 60px 0;
    background: var(--white);
}
.features .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.feature-image-item {
    flex: 1;
    text-align: center;
    max-width: 350px;
}
.feature-image-item img {
    max-width: 100%;
    height: auto;
}


/* CTA Banner */
.cta-banner {
    padding: 60px 0;
    text-align: center;
}

/* --- LARGE FONT STYLES --- */
.solution-accordion h2,
.productivity-title,
.contact-form-wrapper h3,
.gracias-main h1 {
    font-size: var(--font-size-lg);
    line-height: 1.2;
}

/* Solution Accordion */
.solution-accordion {
    padding: 60px 0;
}
.solution-accordion .container {
    max-width: 960px;
}
.solution-accordion h2 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 40px;
}
.solution-accordion h2 .instant-on-text {
    font-weight: 600;
    color: var(--pink);
}
.solution-accordion h2 .solution-text {
    font-weight: 600;
    color: var(--purple);
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 960px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active {
    border-color: var(--orange);
    background-color: var(--orange);
}

.accordion-header {
    width: 100%;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border: none;
    padding: 30px 68px;
    text-align: center;
    font-size: var(--font-size-md);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    font-family: 'Metric', sans-serif;
    transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.accordion-header:hover {
    opacity: 0.9;
}

.accordion-item.active .accordion-header {
    background-color: var(--orange);
    color: var(--white);
}

.accordion-arrow {
    height: 32px;
    width: 32px;
    transition: transform 0.35s ease-in-out;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    fill: currentColor;
}

.accordion-item.active .accordion-arrow {
    transform: translateY(-50%) rotate(-45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
}

.accordion-content p {
    padding: 20px 24px 24px;
    color: var(--dark-gray);
    line-height: 1.6;
    font-weight: 500;
    font-size: var(--font-size-sm);
    opacity: 0;
    transition: opacity 0.2s ease-in-out, color 0.2s ease-in-out;
}

.accordion-item.active .accordion-content {
    max-height: 200px; /* Should be enough for content */
}

.accordion-item.active .accordion-content p {
    opacity: 1;
    transition-delay: 0.15s;
    color: var(--white);
}

/* Productivity Section */
.productivity {
    padding: 60px 0;
    background-color: var(--white);
    text-align: center;
}

.productivity-title {
    font-weight: 600;
    margin-bottom: 60px;
    color: var(--black);
}

.productivity-title .instant-on-text {
    font-weight: 600;
    color: var(--pink);
}

.productivity-title .environment-text {
    font-weight: 600;
    color: var(--purple);
}

.carousel-wrapper {
    position: relative;
    margin: 0 auto;
}
.carousel {
    overflow: hidden;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide {
    flex: 0 0 33.333%;
    padding: 0 15px;
    position: relative;
}
.carousel-slide img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 160px;
    height: 160px;
    cursor: pointer;
    z-index: 10;
    font-size: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
.carousel-button:hover {
    opacity: 0.8;
}
.carousel-button img {
    width: 72px;
    height: auto;
}
.carousel-button--left {
    left: -110px;
}
.carousel-button--right {
    right: -110px;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}
.contact-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    background: transparent;
    padding: 40px 0;
    border-radius: 8px;
}
.contact-image {
    flex: 0 0 354px;
    text-align: center;
}
.contact-image img {
    max-width: 100%;
}
.contact-form-wrapper {
    flex: 1;
}
.contact-form-wrapper h3 {
    margin-bottom: 24px;
    font-weight: 600;
    color: var(--black);
}
#lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row {
    display: flex;
    gap: 16px;
}
.form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}
#lead-form input, #lead-form select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-family: 'Metric', sans-serif;
    font-size: var(--font-size-sm);
    font-weight: 400;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
#lead-form input::placeholder {
    color: var(--gray);
}

#lead-form input:focus, #lead-form select:focus {
    outline: none;
    border-color: var(--validation-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

#lead-form input.invalid,
#lead-form select.invalid {
    border-color: var(--error-red);
}

#lead-form input.invalid:focus,
#lead-form select.invalid:focus {
    border-color: var(--error-red);
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.2);
}

#lead-form input:valid,
#lead-form select:valid {
    border-color: var(--validation-blue);
    background-color: var(--validation-blue-light);
}

#lead-form select {
    color: var(--gray);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666666'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
}
#lead-form select:invalid {
    color: var(--gray);
}

#lead-form select:valid {
    color: var(--dark-gray);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.cf-turnstile {
    margin: 0;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.btn-submit {
    background: transparent;
    padding: 0;
}
.btn-submit img {
    height: 70px;
    width: auto;
}
.btn-submit:hover {
    opacity: 0.9;
}

.btn-submit:disabled,
.btn-submit:disabled:hover {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Footer */
.main-footer {
    background: var(--white);
    padding: 20px 0;
    border-top: 1px solid var(--border-gray);
}
.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-logo-link {
    display: block;
}
.footer-logo {
    height: 70px;
    display: block;
}

/* Gracias Page */
.gracias-page {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.gracias-header {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 20px 24px 0;
}
.gracias-header img {
    width: 100%;
    display: block;
    border-radius: 8px;
}
.gracias-main {
    text-align: center;
    padding: 30px 24px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gracias-main .container {
    max-width: 960px;
}
.gracias-logo-container {
    margin-bottom: 40px;
}
.gracias-logo-container .logo-mc-img {
   height: 180px;
}

.gracias-main h1 {
    font-size: 92px; /* Overridden for gracias page */
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--dark-gray);
}
.gracias-main p {
    margin: 0 auto 40px;
    color: var(--gray);
    font-size: 28px; /* Overridden for gracias page */
    line-height: 1.6;
    font-weight: 500;
}

.actions-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 0 auto 40px;
}

.btn-gracias {
    transition: opacity 0.3s ease;
    display: block;
    height: clamp(80px, 12vw, 120px);
}
.btn-gracias img {
    width: auto;
    height: 100%;
    display: block;
}
.btn-gracias:hover {
    opacity: 0.8;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 4vw, 30px);
}
.social-links a {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease;
    height: clamp(80px, 12vw, 120px);
}
.social-links a:hover {
    opacity: 0.8;
}
.social-links a img {
    width: auto;
    height: 100%;
}

.gracias-footer {
    text-align: center;
    padding: 24px;
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.main-footer .container a:not(.footer-logo-link),
.gracias-footer a {
    font-size: var(--font-size-sm);
    color: var(--gray);
    transition: color 0.3s ease;
}

.main-footer .container a:not(.footer-logo-link):hover,
.gracias-footer a:hover {
    color: var(--dark-teal);
}


.gracias-footer {
    text-align: center;
    padding: 24px;
    font-size: var(--font-size-sm);
    color: var(--gray);
}

.gracias-footer a {
    transition: color 0.3s ease;
}

.gracias-footer a:hover {
    color: var(--dark-teal);
}


/* WhatsApp Floating Button */
.whatsapp-fab {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-fab svg {
    width: 32px;
    height: 32px;
}

/* Responsive Styles */
@media (max-width: 1280px) {
  .carousel-wrapper {
    max-width: calc(100% - 100px);
  }
  .carousel-button {
    width: 60px;
    height: 60px;
  }
  .carousel-button img {
    width: 28px;
  }
  .carousel-button--left {
    left: -70px;
  }
  .carousel-button--right {
    right: -70px;
  }
  .contact-section .container {
    padding: 0 40px;
  }
  .contact-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0;
  }
  .contact-form-wrapper {
    width: 100%;
    max-width: 700px;
  }
  .form-footer {
    justify-content: center;
  }
}

@media (max-width: 1024px) {
    .main-header .logo-mc-img {
        height: 80px;
    }
}


@media (max-width: 768px) {
  :root {
    --font-size-lg: 42px;
    --font-size-md: 22px;
    --font-size-sm: 18px;
  }
  .main-header {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .main-header .container {
    flex-direction: column;
    gap: 16px;
  }
  .main-header .logo-mc-img {
    height: 50px;
  }
  .btn-header {
    display: none;
  }

  .features .container {
    flex-direction: column;
  }
  .solution-accordion {
    padding-left: 15px;
    padding-right: 15px;
  }

  .accordion-header {
    padding: 15px 58px 15px 20px;
  }
  .accordion-arrow {
    height: 24px;
    width: 24px;
    right: 20px;
  }

  .carousel-wrapper {
    max-width: 100%;
    padding: 0 10px;
  }
  .carousel-slide {
    flex: 0 0 100%;
    padding: 0;
  }
  .carousel-button {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.8);
    top: calc(50% - 16px);
    transform: none;
    border-radius: 50%;
  }
  .carousel-button img {
      width: 16px;
  }
  .carousel-button--left {
      left: 25px;
  }
  .carousel-button--right {
      right: 25px;
  }
  .contact-section {
    padding: 30px 0;
  }
  .form-row {
      flex-direction: column;
      gap: 16px;
  }
  .form-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .btn-submit img {
    height: 60px;
  }
  
  /* Responsive Footer */
  .main-footer .container {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .footer-logo-link {
    display: none;
  }
  #gtm-footer-website {
    order: 1;
  }
  #gtm-footer-privacy {
    order: 2;
  }

  .whatsapp-fab {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-fab svg {
    width: 28px;
    height: 28px;
  }


  /* Gracias Page Responsive */
  .gracias-main h1 {
    font-size: 60px;
  }
  .gracias-main p {
      font-size: 24px;
  }
  .gracias-header {
    padding: 20px 24px 0;
  }
  .gracias-header img {
    max-height: 200px;
    width: 100%;
    object-fit: cover;
  }
  .gracias-main {
    padding: 30px 24px;
    justify-content: flex-start;
  }
  .gracias-logo-container {
    margin-bottom: 30px;
  }
  .gracias-logo-container .logo-mc-img {
    height: 100px;
  }
  .actions-container {
    gap: 25px;
    width: 100%;
    max-width: 400px;
  }
  .btn-gracias {
    height: auto;
    width: 100%;
  }
  .btn-gracias img {
    height: auto;
    width: 100%;
  }
  .social-links {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .social-links a {
    height: 60px;
  }
  .social-links a img {
    height: 100%;
    width: auto;
  }
}

@media (max-width: 480px) {
  .carousel-button {
    display: flex;
    opacity: 1;
    z-index: 10;
  }
  
  .social-links a {
    height: 50px;
  }
}