/*
 * Sunlight Enterprise — Theme & Elementor Free Stylesheet
 * Preserves the approved Lovable website design tokens, typography, spacing, and breakpoints.
 */
:root {
  --se-bg: #ffffff;
  --se-fg: #252525;
  --se-primary: #ed1c24;
  --se-primary-hover: #c9161d;
  --se-primary-fg: #ffffff;
  --se-secondary: #f7f7f7;
  --se-muted: #6b7280;
  --se-accent: #fdf2f2;
  --se-border: #e5e7eb;
  --se-gold: #d6a63b;
  --se-ink: #252525;
  --se-inverse: #c7c9ce;
  --se-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  --se-radius: 6px;
  --se-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --se-font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--se-bg);
  color: var(--se-fg);
  font-family: var(--se-font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4,
.elementor-heading-title {
  font-family: var(--se-font-display);
  line-height: 1.23;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--se-fg);
}

h1, h2, h3, p {
  margin-top: 0;
}

h2 {
  font-size: 34px;
  margin-bottom: 20px;
}

h3 {
  font-size: 19px;
}

p {
  color: var(--se-muted);
}

a {
  text-decoration: none;
  color: inherit;
}

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

button, input, select, textarea {
  font: inherit;
}

button, a, input, textarea, select {
  outline-offset: 4px;
}

button {
  cursor: pointer;
}

.sr-only,
.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;
}

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

/* ========================
   Buttons
   ======================== */
.se-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--se-radius);
  font-family: var(--se-font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 11px 18px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.se-btn-lg {
  padding: 14px 24px;
  font-size: 14px;
}

.se-btn-primary {
  background: var(--se-primary);
  color: var(--se-primary-fg);
  border-color: var(--se-primary);
}

.se-btn-primary:hover {
  background: var(--se-primary-hover);
  border-color: var(--se-primary-hover);
  color: var(--se-primary-fg);
}

.se-btn-outline {
  background: var(--se-bg);
  color: var(--se-fg);
  border-color: var(--se-border);
}

.se-btn-outline:hover {
  background: var(--se-accent);
  border-color: var(--se-primary);
  color: var(--se-primary);
}

.se-btn-white {
  background: var(--se-bg);
  color: var(--se-primary);
  border-color: var(--se-bg);
}

.se-btn-white:hover {
  background: var(--se-secondary);
  color: var(--se-primary-hover);
}

.se-btn-inverse {
  background: transparent;
  color: var(--se-primary-fg);
  border-color: rgba(255, 255, 255, 0.65);
}

.se-btn-inverse:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--se-primary-fg);
}

.se-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========================
   Topbar & Sticky Header
   ======================== */
.topbar {
  background: var(--se-ink);
  color: var(--se-inverse);
  font-size: 11px;
  padding: 8px 0;
}

.topbar .se-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.topbar a {
  color: var(--se-inverse);
  transition: color 0.2s ease;
}

.topbar a:hover {
  color: #ffffff;
}

.inline-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.inline-contact a,
.inline-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.inline-contact svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--se-inverse);
}

.topbar-social a:hover {
  color: var(--se-primary);
}

.topbar-social svg {
  width: 13px;
  height: 13px;
}

.site-header {
  background: var(--se-bg);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--se-border);
}

body.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img,
.brand .custom-logo {
  width: 232px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 13px;
  font-weight: 500;
}

.desktop-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 27px;
}

.desktop-nav li {
  position: relative;
}

.nav-link {
  color: var(--se-fg);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active,
.current-menu-item > .nav-link,
.current-menu-ancestor > .dropdown-trigger {
  color: var(--se-primary);
}

.dropdown-wrap {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  height: 40px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: 0;
  color: var(--se-fg);
  white-space: nowrap;
}

.dropdown-trigger:hover {
  color: var(--se-primary);
}

.dropdown-trigger svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.dropdown-wrap.is-open .dropdown-trigger svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: var(--se-bg);
  box-shadow: var(--se-shadow);
  border: 1px solid var(--se-border);
  padding: 9px;
  border-radius: 6px;
  list-style: none;
  margin: 0;
  z-index: 60;
}

.dropdown-wrap.is-open > .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--se-fg);
  border-radius: 4px;
}

.dropdown-menu a:hover,
.dropdown-menu li.current-menu-item > a {
  background: var(--se-accent);
  color: var(--se-primary);
}

.mobile-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--se-border);
  border-radius: 6px;
  color: var(--se-fg);
}

.mobile-trigger svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  display: none;
  background: var(--se-bg);
}

.mobile-nav.is-open {
  display: grid;
  padding: 14px 24px 24px;
  gap: 8px;
  border-top: 1px solid var(--se-border);
}

.mobile-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mobile-nav a.nav-link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
}

.mobile-nav .dropdown-trigger {
  width: 100%;
  justify-content: space-between;
  font-size: 14px;
}

.mobile-nav .dropdown-menu {
  position: static;
  box-shadow: none;
  width: 100%;
  border: 0;
  border-left: 2px solid var(--se-primary);
  border-radius: 0;
  padding: 4px 0 4px 12px;
}

.mobile-nav .se-btn {
  margin-top: 8px;
  width: 100%;
}

/* ========================
   CTA Band & Footer
   ======================== */
.cta-band {
  padding: 53px 0;
  background: var(--se-primary);
  color: var(--se-primary-fg);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.cta-band h2 {
  color: var(--se-primary-fg);
  font-size: 29px;
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--se-primary-fg);
  opacity: 0.88;
  max-width: 650px;
  font-size: 13px;
  margin: 0;
}

.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
  margin: 0;
}

.site-footer {
  background: var(--se-ink);
  color: var(--se-inverse);
  padding: 56px 0 0;
  font-size: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.5fr;
  gap: 40px;
}

.footer-logo {
  width: 235px;
  max-width: 100%;
  background: var(--se-bg);
  padding: 10px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.site-footer h3 {
  color: var(--se-primary-fg);
  font-size: 14px;
  margin-bottom: 20px;
}

.site-footer p {
  color: var(--se-inverse);
  font-size: 12px;
  margin-bottom: 10px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  display: block;
  color: var(--se-inverse);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .licence {
  color: var(--se-gold);
  font-weight: 600;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0;
  border-radius: 999px;
  border: 1px solid rgba(199, 201, 206, 0.25);
  color: var(--se-inverse);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  background: var(--se-primary);
  border-color: var(--se-primary);
  color: var(--se-primary-fg);
}

.social-links svg {
  width: 16px;
  height: 16px;
}

.social-links.social-contact a {
  border-color: var(--se-border);
  color: var(--se-fg);
}

.social-links.social-contact a:hover {
  background: var(--se-primary);
  border-color: var(--se-primary);
  color: var(--se-primary-fg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(199, 201, 206, 0.2);
  padding: 20px 0;
  margin-top: 38px;
  font-size: 10px;
}

.footer-bottom div {
  display: flex;
  gap: 20px;
}

.footer-bottom a {
  margin: 0;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
}

.whatsapp-float summary {
  list-style: none;
  cursor: pointer;
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--se-primary);
  color: var(--se-primary-fg);
  box-shadow: var(--se-shadow);
}

.whatsapp-float summary::-webkit-details-marker {
  display: none;
}

.whatsapp-options {
  position: absolute;
  bottom: 65px;
  right: 0;
  width: 235px;
  background: var(--se-bg);
  padding: 15px;
  border-radius: 6px;
  border: 1px solid var(--se-border);
  box-shadow: var(--se-shadow);
  font-size: 12px;
}

.whatsapp-options strong {
  display: block;
  margin-bottom: 6px;
  color: var(--se-fg);
}

.whatsapp-options a {
  display: block;
  color: var(--se-fg);
  padding: 7px;
  border-radius: 4px;
}

.whatsapp-options a:hover {
  background: var(--se-accent);
  color: var(--se-primary);
}

/* ========================
   Elementor Free Design Bridges
   (Keeps native Elementor widgets visually identical to the Lovable design)
   ======================== */
.se-eyebrow .elementor-heading-title {
  color: var(--se-primary) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1.8px !important;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.se-eyebrow .elementor-heading-title::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--se-primary);
  display: inline-block;
  flex-shrink: 0;
}

.se-eyebrow-center .elementor-widget-container {
  text-align: center;
}

.se-hero-title .elementor-heading-title em {
  color: var(--se-primary);
  font-style: normal;
}

.se-hero-photo.elementor-widget-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: 28% center;
  border-radius: 6px;
}

.se-inner-photo.elementor-widget-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 6px;
}

.se-split-photo.elementor-widget-image img {
  width: 100%;
  height: 345px;
  object-fit: cover;
  border-radius: 6px;
}

.se-portrait-photo.elementor-widget-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: 45% center;
  border-radius: 6px;
}

.se-photo-tag {
  background: var(--se-bg);
  border-left: 4px solid var(--se-gold);
  padding: 14px 21px !important;
  box-shadow: var(--se-shadow);
  margin-top: -86px !important;
  margin-left: auto !important;
  margin-right: -12px !important;
  position: relative;
  z-index: 3;
  max-width: 280px;
}

.se-experience-badge {
  background: var(--se-primary);
  color: var(--se-primary-fg);
  padding: 17px 22px !important;
  border-radius: 4px;
  margin-top: -102px !important;
  margin-left: 20px !important;
  position: relative;
  z-index: 3;
  max-width: 230px;
}

.se-experience-badge .elementor-heading-title,
.se-experience-badge p {
  color: var(--se-primary-fg) !important;
}

.se-trust-item {
  border-right: 1px solid var(--se-border);
}

.se-trust-item:last-child {
  border-right: 0;
}

.se-service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.se-service-card:hover,
.se-job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--se-shadow);
}

.se-service-card .elementor-icon {
  background: var(--se-accent);
  color: var(--se-primary);
  width: 44px;
  height: 44px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.se-job-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.se-job-card .elementor-image-box-img {
  width: 100% !important;
  margin-bottom: 0 !important;
}

.se-job-card .elementor-image-box-img img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.se-job-card .elementor-image-box-content {
  padding: 18px 18px 8px;
}

.se-step-card {
  position: relative;
}

.se-step-badge .elementor-heading-title {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--se-border);
  background: var(--se-bg);
  color: var(--se-primary) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px !important;
  margin-inline: auto;
}

.se-note-box {
  background: var(--se-accent);
  border-left: 3px solid var(--se-primary);
  padding: 16px 20px !important;
}

.se-caption-text p {
  font-size: 10px !important;
  color: var(--se-muted) !important;
  margin: 0 !important;
}

.se-relationships-row {
  font-family: var(--se-font-display);
}

.se-btn-outline-el .elementor-button {
  background: var(--se-bg) !important;
  color: var(--se-fg) !important;
  border: 1px solid var(--se-border) !important;
}

.se-btn-outline-el .elementor-button:hover {
  background: var(--se-accent) !important;
  border-color: var(--se-primary) !important;
  color: var(--se-primary) !important;
}

.se-text-link-el .elementor-button {
  background: transparent !important;
  color: var(--se-primary) !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* Native Elementor Accordion styling to match Lovable FAQ */
.elementor-widget-accordion .elementor-accordion-item {
  border: 0 !important;
  border-bottom: 1px solid var(--se-border) !important;
}

.elementor-widget-accordion .elementor-tab-title {
  padding: 20px 0 !important;
  font-family: var(--se-font-display) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: var(--se-fg) !important;
}

.elementor-widget-accordion .elementor-tab-content {
  padding: 0 0 20px !important;
  border: 0 !important;
  font-size: 13px !important;
  color: var(--se-muted) !important;
}

/* ========================
   Enquiry Form & CF7 Styling
   ======================== */
.enquiry-panel {
  border: 1px solid var(--se-border);
  background: var(--se-bg);
  padding: 27px;
  border-radius: 6px;
  scroll-margin-top: 115px;
}

.enquiry-panel h2 {
  font-size: 23px;
  margin-bottom: 8px;
}

.enquiry-panel > p {
  font-size: 12px;
  margin-bottom: 18px;
}

.enquiry-form,
.wpcf7-form {
  display: grid;
  gap: 16px;
}

.enquiry-form label,
.wpcf7-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--se-fg);
  display: grid;
  gap: 6px;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--se-border);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--se-fg);
  background: var(--se-bg);
}

.enquiry-form textarea,
.wpcf7-form textarea {
  min-height: 115px;
  resize: vertical;
}

.enquiry-form [aria-invalid="true"] {
  border-color: var(--se-primary);
}

.field-error {
  font-size: 11px;
  color: var(--se-primary);
  font-weight: 400;
  display: block;
}

.form-disclaimer {
  font-size: 11px !important;
  color: var(--se-muted);
  margin: 0;
}

.form-status {
  padding: 13px;
  background: var(--se-accent);
  font-size: 12px;
  border-left: 3px solid var(--se-primary);
}

.form-status p {
  margin: 0 0 10px;
}

.form-status a {
  color: var(--se-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.wpcf7-form input[type="submit"] {
  background: var(--se-primary);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.wpcf7-form input[type="submit"]:hover {
  background: var(--se-primary-hover);
}

/* Fallback non-Elementor content & 404 */
.se-fallback-main {
  padding: 64px 0;
}

.se-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 20px;
}

.se-404 h1 {
  font-size: 72px;
  margin-bottom: 12px;
  color: var(--se-primary);
}

/* ========================
   Responsive Breakpoints
   ======================== */
@media (min-width: 1440px) {
  .se-hero-photo.elementor-widget-image img {
    height: 445px;
  }
}

@media (max-width: 1100px) {
  .se-container {
    width: calc(100% - 48px);
  }
  .desktop-nav,
  .desktop-nav > ul {
    gap: 17px;
    font-size: 12px;
  }
  .brand img,
  .brand .custom-logo {
    width: 195px;
  }
  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .topbar .location-top {
    display: none;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-trigger {
    display: inline-flex;
  }
  .header-inner {
    height: 78px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
  .cta-inner {
    display: block;
  }
  .cta-inner .actions {
    margin-top: 23px;
  }
  .se-trust-item {
    border-right: 0;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .se-container {
    width: calc(100% - 36px);
  }
  .topbar {
    font-size: 9px;
  }
  .topbar .inline-contact {
    gap: 12px;
  }
  .topbar .email-top {
    display: none;
  }
  .brand img,
  .brand .custom-logo {
    width: 205px;
  }
  .header-inner {
    height: 73px;
  }
  .cta-band {
    padding: 40px 0;
  }
  .cta-band h2 {
    font-size: 27px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .footer-grid > div:first-child,
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .site-footer {
    padding-top: 40px;
  }
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }
  .se-hero-photo.elementor-widget-image img {
    height: 220px;
  }
  .se-photo-tag {
    margin-right: 10px !important;
    margin-top: -64px !important;
  }
  .se-split-photo.elementor-widget-image img {
    height: 265px;
  }
  .se-portrait-photo.elementor-widget-image img {
    height: 275px;
  }
  .enquiry-panel {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Full-width native page bands, independent of Elementor site-kit defaults. */
.site-main { width: 100%; min-width: 0; }
.site-main > .elementor { width: 100%; max-width: none; }
.elementor .se-section-band { width: 100%; max-width: none; margin-inline: 0; }
.elementor .se-section-band > .e-con-inner { width: 100%; max-width: 1200px; }
.elementor .se-two-column > .e-con { flex-shrink: 1; min-width: 0; }
.elementor .se-two-column > .elementor-widget { min-width: 0; }
.elementor .se-hero-photo img { width: 100%; }
@media (max-width: 767px) {
  .elementor .se-two-column { flex-direction: column; }
  .elementor .se-two-column > .e-con { width: 100%; }
}
