/* ========== DESIGN TOKENS ========== */
:root {
  --primary: #1E40AF;
  --primary-dark: #1E3A8A;
  --secondary: #3B82F6;
  --cta: #F97316;
  --cta-hover: #EA580C;
  --text: #0F172A;
  --text-light: #475569;
  --text-muted: #94A3B8;
  --bg-light: #F8FAFC;
  --bg-blue: #EFF6FF;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ========== NAVBAR ========== */
.tenda-navbar,
.tenda-navbar.ehf-header-ct {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.35s ease;
  background: transparent;
}
.tenda-navbar.scrolled {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 10px 0;
}
.tenda-navbar.scrolled .nav-link { color: var(--text-light) !important; }
.tenda-navbar.scrolled .nav-link:hover,
.tenda-navbar.scrolled .nav-link.active { color: var(--primary) !important; }
.tenda-navbar.scrolled .hamburger span { background: var(--text); }

/* HF Builder header overrides */
.ehf-header-ct,
.ehf-header-ct .elementor-section,
.ehf-header-ct .elementor-element,
.ehf-header-ct .elementor-widget-wrap,
.ehf-header-ct .elementor-column-wrap { background: transparent !important; }
/* Remove any link underlines in header */
.ehf-header-ct a { text-decoration: none !important; }
/* Nav links in header - white text, no underline */
.tenda-navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  border: none !important;
}
.tenda-navbar .nav-link:hover { color: white !important; }
.tenda-navbar.scrolled .nav-link {
  color: var(--text-light) !important;
}
.tenda-navbar.scrolled .nav-link:hover { color: var(--primary) !important; }
/* Logo text */
.logo-text { line-height: 1.1 !important; font-size: 1.4rem !important; text-align: center !important; }
.logo-sub { line-height: 1 !important; font-size: 0.65rem !important; margin: 0 !important; padding: 0 !important; text-align: center !important; letter-spacing: 0.32em !important; font-weight: 700 !important; }
.tenda-navbar .logo-text { color: white !important; }
.tenda-navbar .logo-sub { color: rgba(255,255,255,0.7) !important; }
.tenda-navbar.scrolled .logo-text { color: var(--text) !important; }
.tenda-navbar.scrolled .logo-sub { color: var(--cta) !important; }
/* Footer logo */
.ehf-footer-ct .logo-text { color: white !important; }
.ehf-footer-ct .logo-sub { color: rgba(255,255,255,0.5) !important; }
/* Mobile header layout */
@media (max-width: 900px) {
  .nav-links-desktop { display: none !important; }
  /* Force single row */
  .elementor-element-tenda_header > .elementor-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  /* Logo column: take available space */
  .elementor-element-tenda_header_col1 {
    flex: 1 !important;
    width: auto !important;
  }
  /* Nav column: shrink to just hamburger */
  .elementor-element-tenda_header_col2 {
    flex: 0 0 auto !important;
    width: auto !important;
  }
  /* CTA column: hide */
  .elementor-element-tenda_header_col3 { display: none !important; }
  /* Hamburger visible */
  .hamburger { display: flex !important; }
}

.nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: white; }

/* Hamburger */
.hamburger { display: none; background: none !important; border: none !important; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; box-shadow: none !important; outline: none !important; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: 0.3s; }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu a {
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--cta); }
.mobile-menu .btn-primary { width: auto !important; padding: 14px 36px !important; font-size: 1rem !important; }

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-block;
  background: var(--cta);
  color: white !important;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
  color: white !important;
}

.btn-outline {
  display: inline-block;
  color: white !important;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.12);
  color: white !important;
}

.btn-outline-dark {
  display: inline-block;
  color: var(--primary) !important;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  border: 2px solid var(--border);
  background: transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-outline-dark:hover {
  border-color: var(--primary);
  background: var(--bg-blue);
  color: var(--primary) !important;
}

.btn-cta {
  display: inline-block;
  background: var(--cta);
  color: white !important;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
  color: white !important;
}

/* ========== SERVICE DETAIL CONTENT TYPOGRAPHY ========== */
.service-content h2 { font-size: 1.6rem; margin: 0 0 16px; }
.service-content h3 { font-size: 1.2rem; margin: 32px 0 12px; color: var(--primary); }
.service-content p { color: var(--text-light); line-height: 1.75; margin: 0 0 16px; }
.service-content ul { list-style: none; padding: 0; margin: 0 0 24px; }
.service-content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-light);
  line-height: 1.6;
}
.service-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
}
.service-images img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ========== CF7 FORM STYLING ========== */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-light);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
  background: white;
}
.wpcf7 textarea { resize: vertical; min-height: 120px; }
.wpcf7 input[type="submit"] {
  width: 100%;
  background: var(--cta);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
}
.wpcf7 input[type="submit"]:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}
.wpcf7 label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.wpcf7-response-output { border-radius: var(--radius-sm) !important; margin: 16px 0 0 !important; }

/* ========== PRIVACY PAGE ========== */
.privacy-content { max-width: 800px; margin: 0 auto; }
.privacy-content h2 { font-size: 1.5rem; margin: 40px 0 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.privacy-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.privacy-content h3 { font-size: 1.2rem; margin: 24px 0 12px; color: var(--primary); }
.privacy-content p { color: var(--text-light); line-height: 1.8; margin: 0 0 16px; }
.privacy-content ul { padding-left: 24px; margin: 0 0 16px; }
.privacy-content li { color: var(--text-light); line-height: 1.8; margin-bottom: 6px; }

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hamburger { display: flex !important; }
}

@media (max-width: 600px) {
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
}

/* ========== ELEMENTOR & HELLO ELEMENTOR OVERRIDES ========== */
/* Remove all Hello Elementor wrapper spacing */
/* Masthead: remove from flow, HF Builder content inside is position:fixed anyway */
#masthead,
header#masthead,
.site-header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  overflow: visible !important;
  z-index: 999;
}
#masthead > .main-title { display: none !important; }
.page-header { display: none !important; }
.site-main { padding: 0 !important; margin: 0 !important; }
.entry-content, .page-content { margin: 0 !important; padding: 0 !important; }
.elementor-page .site-main { padding-top: 0 !important; }
#content, .site-content { padding: 0 !important; margin: 0 !important; }

/* Elementor layout: sections full-width bg, container caps content at 1280px */
.elementor-section > .elementor-container {
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Hero widgets render their own full-width bg, so no container cap */
.elementor-section:has(.tenda-hero-section) > .elementor-container,
.elementor-section:has(.tenda-page-hero) > .elementor-container,
.elementor-section:has(iframe) > .elementor-container {
  max-width: 100% !important;
  padding: 0 !important;
}
.elementor-section:has(.tenda-hero-section) .elementor-widget-wrap,
.elementor-section:has(.tenda-page-hero) .elementor-widget-wrap,
.elementor-section:has(iframe) .elementor-widget-wrap {
  padding: 0 !important;
}

/* ========== BASE ========== */
html { scroll-behavior: smooth; color-scheme: light only; }
@media (prefers-color-scheme: dark) {
  html, body { background: #fff !important; color: var(--text) !important; }
}
