/*
Theme Name: Entercoliving
Author: Adarsh Kumar
Description: Custom WordPress theme for Entercoliving – hybrid PHP + Elementor
Version: 1.1
Text Domain: entercoliving
*/

/* ─── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --color-brand: #fb4a00;
  --color-brand-dark: #d93e00;
  --color-yellow: #ffcc4d;
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-bg: #ffeee1;
  --color-bg-footer: #ffeee1;
  --color-border: #e5d5c8;
  --font-base: "Urbanist", Arial, sans-serif;
  --container-max: 1200px;
  --header-height: 72px;
  --radius-pill: 50px;
  --transition: 0.2s ease;
}

/* ─── Reset / base ──────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
address {
  font-style: normal;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}

/* ─── Layout helper ──────────────────────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   NAVBAR  (transparent, absolute — overlays hero)
   ═══════════════════════════════════════════════════════════════════════════ */

/* The .navbar sits inside .hero so it overlays the background image naturally.
   position: absolute keeps it pinned to the top without pushing page content. */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  padding-top: 80px;
  padding-bottom: 24px;
}

.navbar__container {
  width: 90%;
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ── Logo ─────────────────────────────────────────────────────────────────── */
.navbar__logo {
  flex-shrink: 0;
  line-height: 1;
  text-decoration: none;
}

.navbar__logo img {
  height: 38px;
  width: auto;
}

.navbar__logo-text {
  font-size: 1.75rem; /* ~28 px */
  font-weight: 800;
  color: var(--color-brand);
  letter-spacing: -0.5px;
  display: inline-block;
}

.navbar__logo-dot {
  color: var(--color-brand);
}

/* ── Center nav ───────────────────────────────────────────────────────────── */
.navbar__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  transition: color var(--transition);
  text-decoration: none;
}

.navbar__menu a:hover {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.navbar__arrow {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Dropdown */
.navbar__menu .menu-item-has-children {
  position: relative;
}

.navbar__menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 160px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  list-style: none;
  margin: 0;
  z-index: 200;
}

.navbar__menu .menu-item-has-children:hover .sub-menu,
.navbar__menu .menu-item-has-children:focus-within .sub-menu {
  display: block;
}

.navbar__menu .sub-menu a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 400;
}

.navbar__menu .sub-menu a:hover {
  color: var(--color-brand);
}

/* ── Right actions ────────────────────────────────────────────────────────── */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

/* Profile circle — 35 px black disc */
.navbar__profile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  transition: background var(--transition);
  flex-shrink: 0;
  text-decoration: none;
}

.navbar__profile svg {
  fill: #fff;
  display: block;
}

.navbar__profile:hover {
  background: var(--color-brand);
  text-decoration: none;
}

/* Hamburger — hidden desktop, shown mobile */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}

.navbar__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

/* Animated X when menu open */
.navbar__toggle.is-active .navbar__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle.is-active .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}
.navbar__toggle.is-active .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  position: relative;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

/* Dark overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.38) 100%
  );
}

/* All hero children above overlay */
.hero * {
  position: relative;
  z-index: 2;
}

/* ── Hero content block ──────────────────────────────────────────────────── */
.hero-content {
  padding-top: calc(var(--header-height) + 3rem); /* clear transparent navbar */
  padding-bottom: 5rem;
}

/* ── Heading ─────────────────────────────────────────────────────────────── */
.hero__heading {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 1.25rem;
  max-width: 700px;
}

/* Italic accent line in brand orange */
.hero__heading-accent {
  font-style: italic;
  color: var(--color-brand);
  display: block;
}

/* ── Subtitle ────────────────────────────────────────────────────────────── */
.hero__subtitle {
  margin: 0 0 2.5rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
}

/* ── Search bar ──────────────────────────────────────────────────────────── */
.hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
}

/* Pill selector buttons */
.search-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-base);
  font-size: 0.925rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.search-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
}

.search-pill__icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.search-pill__label {
  flex: 1;
}

.search-pill__arrow {
  flex-shrink: 0;
  opacity: 0.7;
}

/* CTA – solid dark pill */
.btn-discover {
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-pill);
  border: none;
  background: #111;
  color: #fff;
  font-family: var(--font-base);
  font-size: 0.925rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background var(--transition);
}

.btn-discover:hover {
  background: var(--color-brand);
}

/* Legacy btn-primary kept for compatibility */
.btn-primary {
  background: var(--color-brand);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-primary:hover {
  background: var(--color-brand-dark);
}

/* ── Scroll indicator ────────────────────────────────────────────────────── */
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
  z-index: 3;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   INTRO SECTION  (immediately below hero)
   ═══════════════════════════════════════════════════════════════════════════════ */
.intro-section {
  position: relative;
  background: var(--color-bg); /* #ffeee1 – whole-site peach */
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

/* ── Header row (text + star side-by-side) ────────────────────────────── */
.intro__header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* ── Decorative shapes ────────────────────────────────────────────────── */

/* Star – sits to the right of text */
.intro-deco-star {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  pointer-events: none;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.15));
  transform: rotate(12deg);
  margin-top: -0.5rem;
}

/* Yellow diamond – bottom-left corner peeking */
.intro-deco-diamond {
  position: absolute;
  bottom: -65px;
  left: -65px;
  width: 150px;
  height: 150px;
  background: var(--color-yellow);
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 0;
}

/* Orange bubble – bottom-right corner peeking */
.intro-deco-bubble {
  position: absolute;
  bottom: -55px;
  right: -55px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--color-brand);
  pointer-events: none;
  z-index: 0;
}

/* All intro children above decorations by default */
.intro-section .container {
  position: relative;
  z-index: 2;
}

/* ── Text block ─────────────────────────────────────────────────────────── */
.intro__text {
  flex: 1;
}

.intro__heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin: 0 0 1rem;
  color: var(--color-text);
  white-space: nowrap;
}

/* Bold italic accent — the colourful tagline */
.intro__heading em strong {
  font-weight: 800;
  font-style: italic;
  color: var(--color-text);
}

.intro__description {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0;
}

/* ── 3-image grid ─────────────────────────────────────────────────────── */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: 460px;
  margin-bottom: 2.75rem;
}

.intro__grid-item {
  border-radius: 18px;
  overflow: hidden;
  background: #cfd3d6; /* neutral placeholder fill */
  position: relative;
}

/* Left image – spans both rows */
.intro__grid-item--large {
  grid-column: 1;
  grid-row: 1 / 3;
}

/* Right images – top and bottom */
.intro__grid-item--top-right {
  grid-column: 2;
  grid-row: 1;
}

.intro__grid-item--bottom-right {
  grid-column: 2;
  grid-row: 2;
}

.intro__grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.intro__grid-item:hover img {
  transform: scale(1.03);
}

/* ── CTA link ───────────────────────────────────────────────────────────── */
.intro__cta-wrap {
  text-align: center;
}

.intro__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.075rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition:
    color var(--transition),
    border-color var(--transition);
}

.intro__cta-link:hover {
  color: var(--color-brand);
  border-color: var(--color-brand);
  text-decoration: none;
}

.intro__cta-link svg {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.intro__cta-link:hover svg {
  transform: translateX(4px);
}

/* ── Intro responsive ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .intro__header-row {
    flex-wrap: wrap;
  }

  .intro-deco-star {
    width: 80px;
    height: 80px;
    margin-top: -1rem;
  }

  .intro__grid {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 180px 180px;
    height: auto;
  }

  .intro__grid-item--large {
    grid-column: 1;
    grid-row: 1;
  }

  .intro__grid-item--top-right {
    grid-column: 1;
    grid-row: 2;
  }

  .intro__grid-item--bottom-right {
    grid-column: 1;
    grid-row: 3;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--color-bg-footer);
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text);
}

/* Main grid */
.site-footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: 3rem;
}

/* Brand column */
.site-footer__brand {
  max-width: 260px;
}

.site-footer__tagline-top {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer__logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.site-footer__logo-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-brand);
}

.site-footer__logo-dot {
  color: var(--color-brand);
}

.site-footer__logo img {
  height: 44px;
  width: auto;
}

.site-footer__tagline {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  line-height: 1.6;
  font-size: 0.875rem;
}

/* Social icons */
.site-footer__social {
  display: flex;
  gap: 0.75rem;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  transition: background var(--transition);
}

.site-footer__social a:hover {
  background: var(--color-brand);
  text-decoration: none;
}
.site-footer__social svg {
  fill: #fff;
}

/* Nav columns */
.site-footer__col {
}

.site-footer__heading {
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-brand);
  margin: 0 0 1rem;
}

.site-footer__links li + li {
  margin-top: 0.6rem;
}

.site-footer__links a {
  color: var(--color-text);
  transition: color var(--transition);
}

.site-footer__links a:hover {
  color: var(--color-brand);
  text-decoration: none;
}

/* Contact column */
.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  line-height: 1.5;
}

.site-footer__contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.site-footer__contact-icon svg {
  fill: var(--color-brand);
}

.site-footer__contact-item a {
  color: var(--color-text);
  transition: color var(--transition);
}

.site-footer__contact-item a:hover {
  color: var(--color-brand);
}

/* Bottom bar */
.site-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-block: 1.25rem;
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer__legal a {
  font-size: 0.8rem;
  color: var(--color-muted);
  transition: color var(--transition);
}

.site-footer__legal a:hover {
  color: var(--color-brand);
}

.site-footer__badge {
  color: var(--color-muted);
}
.site-footer__badge svg {
  fill: currentColor;
}

.site-footer__copyright {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ELEMENTOR FULL-WIDTH PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.elementor-page {
  /* Let Elementor sections stretch edge-to-edge */
  width: 100%;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE – tablet (≥ 640 px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .site-footer__main {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE – desktop (≥ 1024 px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .site-footer__main {
    grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
  }

  /* Hide hamburger on desktop */
  .navbar__toggle {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE – mobile (< 768 px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Show hamburger, collapse desktop nav */
  .navbar__toggle {
    display: flex;
  }

  /* The nav panel drops below the navbar */
  .navbar__nav {
    display: none;
    position: absolute;
    top: 100%; /* flush with bottom of .navbar */
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .navbar__nav.is-open {
    display: block;
  }

  .navbar__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .navbar__menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .navbar__menu > li > a {
    padding: 0.75rem 0;
    width: 100%;
  }

  .navbar__menu .sub-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0.5rem 1rem;
    display: block;
  }

  .navbar__menu .sub-menu a {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 0;
  }

  .navbar__menu .sub-menu a:hover {
    color: var(--color-brand);
  }

  .hero-content {
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 4rem;
  }

  .hero__heading {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 0.975rem;
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
  }

  .search-pill,
  .btn-discover {
    width: 100%;
    justify-content: flex-start;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .site-footer__legal {
    justify-content: center;
  }
}
