/*
 * Sunny Estate Agent — final requested refinements
 * Header, uniform heroes, continuous slider, CTA actions and responsive fixes.
 */

:root {
  --uniform-hero-height: 560px;
  --header-max: 1500px;
}

/* Header: tagline removed, navigation enlarged and evenly aligned. */
.header-inner.container {
  width: min(calc(100% - 48px), var(--header-max));
}

.header-inner {
  min-height: 94px;
  grid-template-columns: 228px minmax(0, 1fr) auto;
  gap: 34px;
}

.brand img {
  width: 218px;
  max-height: 68px;
}

.desktop-nav {
  justify-content: center;
  gap: clamp(20px, 1.7vw, 34px);
}

.desktop-nav a {
  padding: 35px 0 31px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.desktop-nav a::after {
  bottom: 23px;
  height: 3px;
  border-radius: 999px;
}

.header-call {
  min-height: 56px;
  padding-inline: 24px;
  border-radius: 11px;
  font-size: 14px;
  letter-spacing: .02em;
}

/* All split heroes use the same desktop height, width and column geometry. */
@media (min-width: 1061px) {
  .hero,
  .page-hero {
    min-height: var(--uniform-hero-height);
  }

  .hero > .hero-grid,
  .page-hero > .page-hero-grid {
    height: var(--uniform-hero-height);
    min-height: var(--uniform-hero-height);
    grid-template-columns: minmax(510px, 620px) minmax(0, 1fr);
  }

  .hero-copy,
  .page-hero-copy {
    height: var(--uniform-hero-height);
    min-height: 0;
    justify-content: center;
    padding: 38px 46px 40px 0;
  }

  .hero-visual,
  .page-hero-image,
  .projects-hero .page-hero-image {
    height: var(--uniform-hero-height);
    min-height: var(--uniform-hero-height);
  }

  .projects-hero .page-hero-grid {
    min-height: var(--uniform-hero-height);
  }

  .hero-copy h1 {
    max-width: 610px;
    margin-bottom: 13px;
    font-size: clamp(48px, 4.25vw, 65px);
    line-height: 1.02;
  }

  .page-hero-copy h1 {
    font-size: clamp(46px, 3.8vw, 60px);
    line-height: 1.03;
    margin-bottom: 14px;
  }

  .services-hero .page-hero-copy h1,
  .projects-hero .page-hero-copy h1 {
    font-size: clamp(44px, 3.55vw, 57px);
  }

  .hero-copy .eyebrow,
  .page-hero-copy .eyebrow {
    margin-bottom: 10px;
  }

  .hero-copy .lead,
  .page-hero-copy .lead {
    font-size: 16px;
    line-height: 1.62;
    margin-bottom: 12px;
  }

  .service-pills {
    margin: 12px 0;
    gap: 9px;
  }

  .service-pill {
    min-width: 102px;
    padding: 9px 14px;
  }

  .hero-bullets {
    gap: 7px 18px;
  }

  .hero-bullets span {
    font-size: 12.5px;
  }

  .hero-actions {
    margin-top: 17px;
  }

  .page-hero-features {
    margin-top: 15px;
    gap: 11px 22px;
  }

  .page-hero-features span {
    font-size: 12.5px;
  }
}

/* Slider remains active continuously. */
.hero-slide {
  transition: opacity .72s ease, visibility .72s ease, transform 2.25s ease;
}

/* Project cards: three clear, functional actions. */
.project-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.project-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.project-action {
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .025em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.project-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(60, 35, 18, .12);
}

.project-action-whatsapp {
  color: #fff;
  border-color: #128c45;
  background: #128c45;
}

.project-action-enquiry {
  color: var(--orange-dark);
  border-color: #f2c7aa;
  background: var(--orange-soft);
}

.project-action-details {
  grid-column: 1 / -1;
  color: #fff;
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--orange), #f17421);
}

/* WhatsApp artwork and buttons are bolder and fully visible. */
.icon-whatsapp {
  display: block;
  overflow: visible;
}

.btn-whatsapp {
  color: #fff;
  border-color: #128c45;
  background: linear-gradient(135deg, #128c45, #25d366);
  box-shadow: 0 10px 24px rgba(18, 140, 69, .24);
}

.btn-whatsapp:hover {
  color: #fff;
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0e7839, #20bd5b);
}

.floating-whatsapp {
  width: 62px;
  height: 62px;
  border: 3px solid #fff;
  box-shadow: 0 14px 36px rgba(10, 80, 38, .34);
}

.floating-whatsapp .icon-whatsapp {
  width: 31px;
  height: 31px;
}

.quick-card.whatsapp .icon-orb {
  color: #fff;
  background: #25d366;
}

.social-links a .icon-whatsapp {
  width: 20px;
  height: 20px;
}

/* About and Services process numbers: entirely inside each card, never cut. */
.process-grid {
  overflow: visible;
  border: 0;
  border-radius: 0;
  gap: 17px;
  align-items: stretch;
}

.process-card,
.process-card:not(:last-child) {
  min-width: 0;
  padding: 27px 19px 24px;
  border: 1px solid var(--line) !important;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(75, 45, 24, .055);
}

.process-card .process-index {
  position: static;
  width: 42px;
  height: 42px;
  margin: 0 auto 16px !important;
  background: var(--orange);
  color: #fff;
  border: 4px solid #fff3e9;
  box-shadow: 0 0 0 1px #efb78f;
}

.process-card h3 {
  min-height: 52px;
  font-size: 20px;
}

/* Clean project details hero without the form. */
.project-detail-hero {
  min-height: 580px;
}

.project-detail-grid-clean {
  min-height: 580px;
  grid-template-columns: minmax(0, 720px);
  align-items: center;
  padding: 54px 0 64px;
}

.project-detail-grid-clean .project-detail-copy {
  min-height: 0;
  max-width: 720px;
  padding-right: 35px;
}

.project-detail-grid-clean .project-detail-copy h1 {
  font-size: clamp(48px, 5vw, 70px);
}

.project-detail-hero .project-bg {
  inset: 0 0 0 39%;
}

.project-detail-hero .project-bg::before {
  background: linear-gradient(90deg, #fff9f3 0%, rgba(255,249,243,.94) 10%, rgba(255,249,243,.34) 43%, transparent 62%);
}

.project-detail-hero .project-bg img {
  object-position: 52% 45%;
}

.project-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.project-hero-actions .btn {
  min-width: 158px;
}

/* Locations page: restrained image in a framed card. */
.area-intro {
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .82fr);
  gap: 52px;
}

.area-intro-media {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.area-intro-media img {
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 52% 52%;
  border-radius: 15px;
}

/* Blog-details related content reuses the blog listing card language. */
.continue-reading-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.continue-reading-grid .blog-card-body h3 {
  min-height: 72px;
}

.continue-reading-grid .blog-card-body p {
  -webkit-line-clamp: 2;
}

/* Tablet and compact desktop navigation. */
@media (max-width: 1160px) {
  .header-inner.container {
    width: min(calc(100% - 40px), var(--container));
  }

  .desktop-nav,
  .header-call {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 78px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }
}

@media (max-width: 1060px) {
  .hero,
  .page-hero,
  .hero > .hero-grid,
  .page-hero > .page-hero-grid,
  .hero-copy,
  .page-hero-copy {
    height: auto;
    min-height: 0;
  }

  .hero-visual,
  .page-hero-image,
  .projects-hero .page-hero-image {
    height: auto;
  }

  .project-detail-grid-clean {
    min-height: 540px;
    grid-template-columns: minmax(0, 650px);
    padding: 46px 0 58px;
  }

  .project-detail-hero .project-bg {
    inset: 0;
    opacity: .42;
  }

  .project-detail-hero .project-bg::before {
    background: linear-gradient(90deg, #fff9f3 0%, rgba(255,249,243,.95) 62%, rgba(255,249,243,.48));
  }

  .continue-reading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner.container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand img {
    width: 184px;
  }

  .hero-copy h1,
  .page-hero-copy h1,
  .services-hero .page-hero-copy h1,
  .projects-hero .page-hero-copy h1 {
    font-size: clamp(40px, 11.5vw, 52px);
  }

  .hero-visual {
    min-height: clamp(285px, 80vw, 405px);
  }

  .page-hero-image,
  .projects-hero .page-hero-image {
    min-height: clamp(260px, 70vw, 350px);
  }

  .project-card-actions {
    gap: 8px;
  }

  .project-action {
    min-height: 44px;
    font-size: 11px;
  }

  .process-card h3 {
    min-height: 0;
  }

  .project-detail-hero {
    min-height: auto;
  }

  .project-detail-hero .project-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(270px, 78vw, 390px);
    opacity: 1;
  }

  .project-detail-hero .project-bg::before {
    background: linear-gradient(180deg, transparent 58%, #fff9f3 100%);
  }

  .project-detail-grid-clean {
    min-height: 0;
    padding: 32px 0 40px;
  }

  .project-detail-grid-clean .project-detail-copy {
    padding-right: 0;
  }

  .project-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .project-hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .area-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .area-intro-media {
    max-width: none;
    justify-self: stretch;
  }

  .area-intro-media img {
    aspect-ratio: 16 / 10;
  }

  .continue-reading-grid {
    grid-template-columns: 1fr;
  }

  .continue-reading-grid .blog-card-body h3 {
    min-height: 0;
  }

  .floating-whatsapp {
    width: 56px;
    height: 56px;
    right: 15px;
    bottom: 15px;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 168px;
  }

  .project-card-actions {
    grid-template-columns: 1fr;
  }

  .project-action-details {
    grid-column: auto;
  }
}

/* ================================================================
   v5 — synchronized hero copy, non-overlapping search and mobile
   image-background hero treatment.
   ================================================================ */

/* The search starts after the hero, so hero CTAs always remain clickable. */
.search-panel-wrap {
  margin-top: 0 !important;
  padding-top: 24px;
  padding-bottom: 6px;
  background: #fffaf6;
}

/* Smoothly update the heading and description with every image. */
.hero-copy [data-hero-eyebrow],
.hero-copy [data-hero-title],
.hero-copy [data-hero-description] {
  transition: opacity .18s ease, transform .18s ease;
}

.hero-copy.is-changing [data-hero-eyebrow],
.hero-copy.is-changing [data-hero-title],
.hero-copy.is-changing [data-hero-description] {
  opacity: 0;
  transform: translateY(8px);
}

/* Give the desktop copy enough room without allowing the search panel to cover it. */
@media (min-width: 1061px) {
  :root {
    --uniform-hero-height: 620px;
  }

  .hero-copy {
    padding-bottom: 42px;
  }

  .hero-actions {
    position: relative;
    z-index: 6;
  }
}

/* Tablet and mobile: the slider becomes the hero background and text sits on it. */
@media (max-width: 900px) {
  .hero {
    position: relative;
    min-height: clamp(720px, 108vw, 820px) !important;
    background: #f5e5d8;
  }

  .hero > .hero-grid {
    position: relative;
    display: block;
    width: 100%;
    min-height: clamp(720px, 108vw, 820px) !important;
    margin: 0;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    min-height: 100% !important;
    height: 100% !important;
    overflow: hidden;
  }

  .hero-visual::before {
    z-index: 2;
    background:
      linear-gradient(180deg, rgba(255,250,246,.94) 0%, rgba(255,250,246,.86) 48%, rgba(255,250,246,.64) 76%, rgba(255,250,246,.34) 100%),
      linear-gradient(90deg, rgba(255,250,246,.66), rgba(255,250,246,.12));
  }

  .hero-slide,
  .hero-slide img {
    width: 100%;
    height: 100%;
  }

  .hero-slide img {
    object-fit: cover;
    object-position: center center;
    filter: saturate(.95) contrast(1.02);
  }

  .hero-slide:nth-child(1) img { object-position: 58% 50%; }
  .hero-slide:nth-child(2) img { object-position: 54% 50%; }
  .hero-slide:nth-child(3) img { object-position: 57% 50%; }
  .hero-slide:nth-child(4) img { object-position: 52% 50%; }

  .hero-copy {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100%, 760px);
    min-height: clamp(720px, 108vw, 820px) !important;
    padding: 48px max(22px, calc((100vw - 720px) / 2)) 112px !important;
  }

  .hero-copy h1 {
    max-width: 680px;
    text-wrap: balance;
  }

  .hero-copy .lead {
    max-width: 620px;
  }

  .hero-actions,
  .service-pills,
  .hero-bullets {
    position: relative;
    z-index: 5;
  }

  .hero-location {
    z-index: 6;
    right: 18px;
    bottom: 20px;
  }

  .hero-slider-dots {
    z-index: 6;
    left: 18px;
    bottom: 20px;
  }

  .search-panel-wrap {
    padding-top: 20px;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 760px !important;
  }

  .hero > .hero-grid,
  .hero-copy {
    min-height: 760px !important;
  }

  .hero-copy {
    justify-content: flex-start;
    padding: 36px 15px 104px !important;
  }

  .hero-copy .eyebrow {
    max-width: 330px;
    font-size: 11px;
    line-height: 1.55;
  }

  .hero-copy h1 {
    margin-top: 4px;
    font-size: clamp(39px, 11.8vw, 52px) !important;
    line-height: 1.02;
  }

  .hero-copy .lead {
    font-size: 15px;
    line-height: 1.55;
  }

  .service-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .service-pill {
    min-width: 0;
    justify-content: center;
    padding-inline: 8px;
  }

  .hero-bullets {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-location {
    display: none;
  }

  .hero-slider-dots {
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
  }

  .search-panel-wrap {
    padding-top: 18px;
  }
}

@media (max-width: 420px) {
  .hero,
  .hero > .hero-grid,
  .hero-copy {
    min-height: 790px !important;
  }

  .hero-copy {
    padding-inline: 12px !important;
  }

  .hero-copy h1 {
    font-size: clamp(37px, 11.2vw, 47px) !important;
  }
}
