/**
 * Professional layout layer (agencyweb-style).
 * Preserves existing section IDs, forms, and Bootstrap where needed.
 */
@import url("variables.css");

/* Typography override */
body {
  font-family: var(--font-tc);
  color: var(--grey-01);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-tc);
  color: var(--cic-turquoise);
}

.site-layout .container,
.site-header .container,
.site-footer .container {
  width: min(100% - var(--gutter) * 2, var(--container-max));
  margin-inline: auto;
}

/* Hide legacy template header when new header is present */
.site-header ~ .header,
.site-header ~ .navbar-area {
  display: none !important;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-4);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}

.site-logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--yf-brand-gradient);
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-text strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--cic-turquoise);
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--grey-02);
}

.site-logo--footer .logo-text strong {
  color: var(--white);
}

.site-logo--footer .logo-text span {
  color: rgba(255, 255, 255, 0.7);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cic-turquoise);
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--cic-emerald);
  text-decoration: none;
}

.header-cta {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: var(--grey-06);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cic-turquoise);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--white);
  padding: var(--space-5);
  padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-mobile.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .mobile-call-bar,
body.nav-open .floating-shortcuts {
  display: none !important;
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile li {
  border-bottom: 1px solid var(--grey-05);
}

.nav-mobile a {
  display: block;
  padding: var(--space-4) 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cic-turquoise);
  text-decoration: none;
}

.nav-mobile a.btn {
  margin-top: var(--space-4);
  text-align: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-family: var(--font-tc);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--cic-emerald);
  color: var(--white);
  border-color: var(--cic-emerald);
}

.btn-primary:hover {
  background: var(--cic-emerald-beige);
  border-color: var(--cic-emerald-beige);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--cic-emerald);
  border-color: var(--cic-emerald);
}

.btn-secondary:hover {
  background: var(--cic-emerald-3);
  color: var(--cic-emerald-beige);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: var(--white);
}

/* Map legacy CTAs to new button style */
.cta-button,
.main-btn:not(.border-btn) {
  background: var(--cic-emerald) !important;
  border: 2px solid var(--cic-emerald) !important;
  color: var(--white) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
}

.cta-button:hover,
.main-btn:not(.border-btn):hover {
  background: var(--cic-emerald-beige) !important;
  border-color: var(--cic-emerald-beige) !important;
  color: var(--white) !important;
}

.main-btn.border-btn {
  background: transparent !important;
  border: 2px solid var(--white) !important;
  color: var(--white) !important;
  border-radius: var(--radius-md) !important;
}

.main-btn.border-btn:hover {
  background: var(--white) !important;
  color: var(--cic-turquoise) !important;
}

/* ===== Hero (index) ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--cic-turquoise) 0%,
    var(--cic-turquoise-2) 45%,
    var(--cic-emerald) 100%
  ) !important;
  color: var(--white);
  padding: var(--space-8) 0 var(--space-7) !important;
  margin-top: 0 !important;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(141, 209, 54, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(16, 155, 157, 0.25) 0%, transparent 45%);
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section .hero-content {
  margin-bottom: 0 !important;
  position: relative;
}

.hero-section .hero-content h1,
.hero-section .hero-content h1 .h1-line {
  color: var(--white);
  font-weight: 900;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-section .hero-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.7;
  max-width: 36em;
  padding-right: 0 !important;
  margin-bottom: var(--space-5);
}

.hero-section .hero-content .scroll-bottom {
  display: none !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
  position: relative;
  z-index: 2;
}

.btn-hero-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-hero-outline:hover {
  background: var(--white);
  color: var(--cic-turquoise);
  border-color: var(--white);
}

.hero-section .slider-container {
  height: clamp(260px, 40vw, 380px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== Sections ===== */
.feature-section,
.about-section,
.clients-section,
.booking-quote-section,
.booking-flow-section {
  padding: var(--space-8) 0;
}

.feature-section.pt-120,
.about-section.pt-120 {
  padding-top: var(--space-8) !important;
}

.cic-section-muted,
#booking-flow.feature-section {
  background: var(--grey-06);
}

.section-header-block {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto var(--space-7);
}

.section-header-block .eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cic-emerald-2);
  margin-bottom: var(--space-3);
}

.section-header-block h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--cic-turquoise);
  margin: 0 0 var(--space-4);
}

.section-header-block p {
  margin: 0;
  color: var(--grey-02);
  font-size: 1.05rem;
}

/* Feature cards → service-card style */
.single-feature {
  background: var(--white);
  border: 1px solid var(--grey-05);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: 100%;
  margin-bottom: var(--space-5);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.single-feature:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--cic-emerald-3);
}

.single-feature .icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--cic-emerald-3) !important;
  color: var(--cic-emerald) !important;
  margin-bottom: var(--space-4);
}

.single-feature .content h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
}

.single-feature .content h3 a {
  color: var(--cic-turquoise);
  text-decoration: none;
}

.single-feature .content h3 a:hover {
  color: var(--cic-emerald);
}

.single-feature .content p {
  color: var(--grey-02);
  font-size: 0.95rem;
}

/* About */
.about-section .about-content ul li::before {
  background: var(--cic-emerald) !important;
}

/* Booking */
.booking-card {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-md) !important;
  border: 1px solid var(--grey-05) !important;
}

#bookingTabs.nav-pills .nav-link.active {
  background: var(--cic-emerald) !important;
}

.submit-btn,
.booking-card .main-btn {
  background: var(--cic-emerald) !important;
  border-radius: var(--radius-md) !important;
}

/* Clients */
.clients-section {
  background: var(--white);
}

.clients-logo-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-05);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--cic-turquoise);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-6) 0 var(--space-5);
  margin-top: 0 !important;
}

.footer.footer:not(.site-footer) {
  display: none;
}

.footer-grid--contact {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}

.footer-contact-block h4 {
  color: var(--white);
  margin: 0 0 var(--space-3);
  font-size: 1rem;
}

.footer-contact-block p {
  margin: 0 0 var(--space-2);
  font-size: 0.95rem;
}

.footer-contact-block a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-contact-block a:hover {
  color: var(--cic-brand-green);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  text-decoration: none;
}

.footer-socials a:hover {
  background: var(--white);
  color: var(--cic-emerald);
}

.footer-bottom {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.8;
}

.footer-bottom p {
  margin: 0;
}

/* Legacy footer hidden when site-footer used */
.site-footer ~ .footer {
  display: none;
}

/* ===== Service pages ===== */
.service-page {
  background: var(--grey-06);
  padding-top: calc(var(--header-height) + var(--space-5));
  padding-bottom: var(--space-7);
}

.service-card {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--grey-05) !important;
  box-shadow: var(--shadow-sm) !important;
}

.service-header {
  padding: var(--space-6) var(--space-6) var(--space-4) !important;
}

.service-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
}

.service-section h2 {
  font-size: 1.35rem;
  color: var(--cic-turquoise);
  margin-bottom: var(--space-4);
}

.service-grid-item {
  background: var(--white);
  border: 1px solid var(--grey-05);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.service-cta {
  background: var(--cic-emerald-3);
  border-radius: var(--radius-lg);
  padding: var(--space-6) !important;
}

/* ===== FAQ page ===== */
.faq-page {
  background: var(--grey-06);
  padding-top: calc(var(--header-height) + var(--space-5)) !important;
}

.faq-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 900;
  color: var(--cic-turquoise);
}

.faq-container {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--grey-05) !important;
  box-shadow: var(--shadow-sm) !important;
}

.faq-section h2 {
  color: var(--cic-turquoise);
  font-size: 1.25rem;
  border-bottom: 2px solid var(--cic-emerald-3);
  padding-bottom: var(--space-2);
}

.faq-item {
  border-bottom: 1px solid var(--grey-05);
}

.faq-question {
  color: var(--cic-turquoise);
  font-weight: 600;
}

/* ===== Mobile call bar ===== */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--white);
  border-top: 1px solid var(--grey-05);
  padding: var(--space-3) var(--space-4);
  gap: var(--space-3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-call-bar a {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
  padding: 10px 12px;
}

/* Floating shortcuts — desktop only */
@media (max-width: 767px) {
  .mobile-call-bar {
    display: flex;
  }

  body {
    padding-bottom: 72px;
  }

  .floating-shortcuts {
    display: none !important;
  }

  .hero-section {
    padding: var(--space-7) 0 var(--space-6) !important;
  }
}

@media (min-width: 768px) {
  .nav-toggle,
  .nav-mobile {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .header-cta {
    display: flex;
  }

  .footer-grid--contact {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 992px) {
  .hero-section .row.align-items-center {
    align-items: center;
  }
}

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

  .btn:hover {
    transform: none;
  }
}
