/* ==========================================================================
   MYTHRI DEVELOPERS — SITE STYLESHEET
   Refactored: duplicate/overridden rules merged, dead rulesets removed,
   sections reorganized so each component's base + responsive rules live
   together. Behaviour matches the previous stylesheet; only the CSS
   authoring was cleaned up.
   ========================================================================== */

/* -----------------------------------
   1. Design tokens
   ----------------------------------- */
:root {
  /* brand palette (sampled from the logo) */
  --amber: #d27a00;
  --brown: #713506;
  --dark: #35271f;
  --ink: #201a17;
  --muted: #756b65;
  --line: #eee7e2;
  --soft: #fbf7f2;
  --white: #fff;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 18px 55px rgba(53, 39, 31, .10);
}

/* -----------------------------------
   2. Reset & base elements
   ----------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

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

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

h1, h2, h3 {
  letter-spacing: -.035em;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
}

section {
  padding: 92px 0;
}

.soft {
  background: var(--soft);
}

/* -----------------------------------
   3. Buttons
   ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 21px;
  border: 1px solid var(--brown);
  border-radius: 3px;
  background: var(--brown);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform .3s var(--ease), box-shadow .3s ease,
    background .3s ease, border-color .3s ease;
}

.btn.alt {
  background: transparent;
  color: var(--brown);
}

.btn:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(113, 53, 6, .18);
}

.btn:active {
  transform: translateY(0);
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

/* -----------------------------------
   4. Site header & navigation
   ----------------------------------- */
.topbar {
  background: var(--dark);
  color: #fff;
  font-size: 13px;

  a:hover{
    color: var(--amber);
  }
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 116px;
  background: #f4eee8; /* warm off-white sampled to harmonize with the logo */
  border-bottom: 1px solid rgba(113, 53, 6, .08);
}

.brand-centered {
  display: block;
}

.brand-centered img {
  width: 100px;
  object-fit: cover;
  object-position: 50% 38%;
  transition: transform .4s var(--ease);
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-row {
  position: relative;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .64);
  border-top: 1px solid rgba(255, 255, 255, .72);
  border-bottom: 1px solid rgba(113, 53, 6, .10);
  box-shadow: 0 8px 30px rgba(53, 39, 31, .06);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-row {
    background: rgba(255, 255, 255, .94);
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
}

.nav-inner .links {
  width: 100%;
  justify-content: center;
  gap: 42px;
}

.nav-inner .links a {
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}

.nav-inner .menu {
  display: none;
  border: 0;
  background: none;
  color: var(--brown);
  font-size: 25px;
}

.links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.links a {
  position: relative;
  transition: color .25s ease;
}

.links a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}

.links a:hover,
.links a.active {
  color: var(--amber);
}

.links a:hover:after,
.links a.active:after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu {
  display: none;
}

@media (max-width: 820px) {
  .topbar {
    display: none;
  }

  .logo-row {
    height: 92px;
  }

  .brand-centered img {
    width: 80px;
    height: 100%;
  }

  .nav-row {
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
  }

  .nav-inner {
    justify-content: flex-end;
  }

  .nav-inner .links {
    display: none;
  }

  .nav-inner .menu {
    display: block;
  }

  .links {
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
  }

  .menu {
    display: block;
    color: var(--brown);
    font-size: 24px;
  }
}

/* -----------------------------------
   5. Home hero carousel
   ----------------------------------- */
.carousel {
  position: relative;
  height: 680px;
  overflow: hidden;
  background: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.025);
  background-position: center;
  background-size: cover;
  transition: opacity 1s ease, transform 7s linear;
}

.slide.active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(32, 24, 19, .82), rgba(32, 24, 19, .18));
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #fff;
}

.slide-content > * {
  opacity: 0;
  transform: translateY(24px);
}

.slide.active .slide-content > * {
  animation: heroIn .8s var(--ease) forwards;
}

.slide.active .slide-content > *:nth-child(2) { animation-delay: .08s; }
.slide.active .slide-content > *:nth-child(3) { animation-delay: .16s; }
.slide.active .slide-content > *:nth-child(4) { animation-delay: .24s; }

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.slide h1, .slide .slide-title {
  margin: 10px 0 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
}

.slide p {
  max-width: 620px;
  font-size: 18px;
}

.carousel-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: .3s var(--ease);
}

.carousel-arrow:hover {
  background: #fff;
  color: var(--brown);
  transform: scale(1.06);
}

.carousel-prev { left: 28px; }
.carousel-next { right: 28px; }

.carousel-meta {
  position: absolute;
  z-index: 5;
  right: 34px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 11px;
  letter-spacing: .15em;
}

.slide-count {
  font-weight: 800;
}

.progress {
  display: block;
  width: 78px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .35);
}

.progress i {
  display: block;
  height: 100%;
  width: 25%;
  background: #fff;
  transition: width .5s var(--ease);
}

.dots {
  position: absolute;
  z-index: 3;
  left: 34px;
  bottom: 28px;
  display: flex;
  gap: 9px;
}

.dot {
  width: 10px;
  height: 10px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: width .3s var(--ease), background .3s ease;
}

.dot.active {
  width: 30px;
  background: #fff;
}

@media (max-width: 820px) {
  .carousel {
    height: 590px;
  }

  .carousel-arrow {
    top: auto;
    bottom: 24px;
    width: 44px;
    height: 44px;
  }

  .carousel-prev {
    left: auto;
    right: 72px;
  }

  .carousel-next {
    right: 20px;
  }

  .carousel-meta {
    display: none;
  }

  .dots {
    left: 20px;
    bottom: 36px;
  }
}

/* -----------------------------------
   6. Interior page hero (About / Projects / Gallery / Contact)
   ----------------------------------- */
.page-hero {
  padding: 90px 0 70px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 650px;
  color: var(--muted);
}

/* -----------------------------------
   7. Section headings
   ----------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #efad4a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.eyebrow:before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-head {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-head h2,
.page-hero h1 {
  margin: 8px 0 14px;
  max-width: 680px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  color: var(--dark);
}

.section-head p {
  color: var(--muted);
}

/* -----------------------------------
   8. Stats band
   ----------------------------------- */
.stats-wrap {
  position: relative;
  z-index: 5;
  padding: 28px 0 0;
  background: #fff;
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(53, 39, 31, .09);
}

.stat {
  position: relative;
  padding: 30px;
  border-right: 1px solid var(--line);
  text-align: center;
  transition: background .35s ease, transform .35s var(--ease);
}

.stat:last-child {
  border-right: 0;
}

.stat:hover {
  background: var(--soft);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: var(--amber);
  font-size: 25px;
  transition: transform .35s var(--ease), border-color .3s ease, box-shadow .3s ease;
}

.stat:hover .stat-icon {
  border-color: transparent;
  transform: none;
}

.icn{
  font-size: 48px !important;
  color: #d4800a !important;
}

.stat-icon svg {
  display: block;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  overflow: visible;
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .35s var(--ease), stroke .3s ease;
}

.stat:hover .stat-icon svg {
  stroke: var(--brown);
  transform: scale(1.1);
}

.stat:hover .icn {
  color: #713506 !important;
  transform: scale(1.1);
}
.stat strong {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  color: var(--brown);
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .stats-wrap {
    padding-top: 18px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    border-radius: 7px;
  }

  .stat {
    padding: 22px 14px;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat-icon {
    width: 54px;
    height: 54px;
    font-size: 21px;
  }

  .stat-icon svg {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .stat strong {
    font-size: 20px;
  }
}

/* -----------------------------------
   9. Split media/copy layout & feature list
   ----------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.split img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 22px 22px 0 var(--soft);
}

.feature {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--amber);
  font-weight: 900;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .split img {
    height: 360px;
    box-shadow: 10px 10px 0 var(--soft);
  }
}

/* -----------------------------------
   10. Portfolio cards
   ----------------------------------- */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .45s var(--ease), box-shadow .45s ease, border-color .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #e3d7cf;
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.card:hover .card-img {
  transform: scale(1.045);
}

.card-body {
  position: relative;
  padding: 25px;
}

.card-body:after {
  content: "\2197\FE0E";
  position: absolute;
  top: 21px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brown);
  opacity: .65;
  transition: .3s var(--ease);
}

.card:hover .card-body:after {
  background: var(--brown);
  color: #fff;
  transform: rotate(45deg);
}

.card h3 {
  margin: 0 0 8px;
  color: var(--brown);
}

.tag {
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .grid3 {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------
   11. CTA banner
   ----------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: 60px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
}

.cta:after {
  content: "M";
  position: absolute;
  right: -30px;
  bottom: -95px;
  font: 800 260px 'Montserrat', sans-serif;
  line-height: 1;
  color: rgba(255, 255, 255, .035);
}

.cta h2 {
  margin: 0 0 12px;
  font: 700 44px 'Montserrat', Arial, sans-serif;
}

.cta p {
  max-width: 650px;
  color: #ddd;
}

@media (max-width: 820px) {
  .cta {
    padding: 38px 25px;
  }
}

/* -----------------------------------
   12. Projects listing
   ----------------------------------- */
.project {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s ease, border-color .3s ease;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #e3d7cf;
}

.project img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.project:hover img {
  transform: scale(1.025);
}

.project .info {
  position: relative;
  padding: 44px;
}

.project-featured .info {
  align-self: center;
}

.project .info:before {
  content: "";
  position: absolute;
  top: 44px;
  left: 0;
  width: 3px;
  height: 48px;
  background: linear-gradient(var(--amber), var(--brown));
}

.project h2 {
  margin: 7px 0 12px;
  font: 700 38px 'Montserrat', Arial, sans-serif;
  color: var(--dark);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}

.fact {
  padding: 12px;
  background: var(--soft);
  font-size: 13px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.brochure-btn {
  background: #fff;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 50px;
  margin-top: 55px;
  padding: 48px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.project-detail-grid h2 {
  margin: 8px 0 12px;
  font-size: 34px;
  color: var(--dark);
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.amenity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
  transition: .3s var(--ease);
}

.amenity:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(53, 39, 31, .08);
}

.amenity span {
  font-size: 25px;
}

.amenity b {
  font-size: 13px;
  color: var(--brown);
}

@media (max-width: 820px) {
  .project {
    grid-template-columns: 1fr;
  }

  .project img {
    height: 360px;
  }

  .project .info {
    padding: 28px;
  }

  .project-actions {
    flex-direction: column;
  }

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

@media (max-width: 900px) {
  .project-detail-grid {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .amenity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -----------------------------------
   13. Gallery grid & lightbox
   ----------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery figure {
  position: relative;
  margin: 0 0 18px;
  overflow: hidden;
  break-inside: avoid;
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  object-fit: cover;
  height: auto;
  transition: transform .4s;
}

.gallery figure:hover img {
  transform: scale(1.03);
}

.gallery figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  color: #fff;
  font-size: 12px;
  font-weight: normal;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  background: rgba(20, 15, 12, 0);
  backdrop-filter: blur(0);
  transition: background .45s ease, backdrop-filter .45s ease,
    opacity .4s ease, visibility .4s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  background: rgba(20, 15, 12, .94);
  backdrop-filter: blur(7px);
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1200px, 92vw);
  height: min(82vh, 850px);
  opacity: 0;
  transform: translateY(18px) scale(.975);
  transition: opacity .5s var(--ease), transform .55s var(--ease);
}

.lightbox.open .lightbox-stage {
  opacity: 1;
  transform: none;
}

.lightbox-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(.94);
  filter: blur(3px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  transition: opacity .48s ease, transform .6s var(--ease), filter .48s ease;
}

.lightbox.open .lightbox-img {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.lightbox-img.switching {
  opacity: 0;
  transform: scale(.975);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: .25s var(--ease);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: #fff;
  color: var(--brown);
  transform: scale(1.06);
}

.lightbox-close {
  top: 22px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.lightbox-nav {
  top: 50%;
  width: 58px;
  height: 58px;
  font-size: 26px;
  transform: translateY(-50%);
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-caption {
  position: absolute;
  right: 0;
  bottom: -44px;
  left: 0;
  color: #fff;
  font-size: 14px;
  letter-spacing: .04em;
  text-align: center;
}

.lightbox-counter {
  position: absolute;
  top: -24px;
  left: 0;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  letter-spacing: .14em;
}

.lightbox-caption,
.lightbox-counter {
  transition: opacity .3s ease, transform .4s var(--ease);
}

.lightbox-stage.switching .lightbox-caption,
.lightbox-stage.switching .lightbox-counter {
  opacity: 0;
  transform: translateY(5px);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .lightbox {
    padding: 18px;
  }

  .lightbox-stage {
    width: 100%;
    height: 76vh;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .lightbox-nav {
    width: 46px;
    height: 46px;
    font-size: 21px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* -----------------------------------
   14. Contact page
   ----------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 50px;
}

.contact-card {
  margin-bottom: 15px;
  padding: 34px;
  background: var(--soft);
}

.contact-card h3 {
  color: var(--brown);
}

.contact-card p {
  padding-left: 42px;
}

.title-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 7px;
  border-radius: 50%;
  background: #fff;
  color: var(--amber);
  font-size: 14px;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

input,
textarea,
select {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  font: inherit;
  transition: border-color .25s ease, box-shadow .25s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(210, 122, 0, .09);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  form {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }
}

/* -----------------------------------
   15. Footer
   ----------------------------------- */
footer {
  padding: 62px 0 22px;
  background: #251c17;
  color: #ddd;
}

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

.footer-grid h4 {
  color: #fff;
}

.footer-grid p,
.footer-grid a {
  color: #bfb7b2;
  font-size: 14px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  &:hover{
    color: var(--amber);
  }
}

.copy {
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid #493c34;
  color: #9d948f;
  font-size: 12px;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------
   16. Brochure flipbook modal
   ----------------------------------- */
body.book-open {
  overflow: hidden;
}

.flipbook-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  background: rgba(25, 18, 14, 0);
  backdrop-filter: blur(0);
  transition: .4s ease;
}

.flipbook-modal.open {
  opacity: 1;
  visibility: visible;
  background: rgba(25, 18, 14, .94);
  backdrop-filter: blur(10px);
}

.flipbook-shell {
  display: flex;
  flex-direction: column;
  width: min(1580px, 99vw);
  height: min(980px, 97vh);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  background: #241b17;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .5);
  transform: scale(.97) translateY(12px);
  transition: transform .45s var(--ease);
}

.flipbook-modal.open .flipbook-shell {
  transform: none;
}

.flipbook-topbar {
  display: flex;
  flex: 0 0 64px;
  align-items: center;
  height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
}

.flipbook-title {
  display: flex;
  flex-direction: column;
}

.flipbook-title strong {
  font-size: 14px;
}

.flipbook-title span {
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .55;
}

.flipbook-counter {
  margin-left: auto;
  margin-right: 18px;
  font-size: 11px;
  letter-spacing: .14em;
  opacity: .65;
}

.flipbook-close {
  width: 39px;
  height: 39px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.flipbook-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 72px;
  overflow: hidden;
}

.flipbook {
  position: relative;
  width: min(1390px, 100%);
  height: 100%;
  max-height: 850px;
  aspect-ratio: 2.826 / 1;
  perspective: 2400px;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .32));
  transition: opacity .36s ease, transform .36s ease;
}

.flipbook:after {
  content: "";
  position: absolute;
  z-index: 30;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-1px);
  background: linear-gradient(90deg, rgba(0, 0, 0, .18), rgba(255, 255, 255, .22), rgba(0, 0, 0, .15));
  box-shadow: 0 0 12px rgba(0, 0, 0, .2);
  pointer-events: none;
}

.flipbook.single-view:after {
  display: none;
}

.flipbook-static,
.flip-page,
.flip-leaf,
.flip-leaf-stable,
.blank-page {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  background: #eee;
}

.flipbook-static.left { 
  left: 1px; 
  img{
    width: 99.9%;
  }
}
.flipbook-static.right { right: 0; }

.flipbook-static.single-cover {
  left: 25%;
  width: 50%;
  height: 100%;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .36);
}

.flipbook-static img,
.flip-face img,
.flip-leaf img,
.flip-leaf-stable img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--muted);
}

/* Page-turn mechanics: `.flip-page` is the transition-based turn (3D
   rotateY toggled via the `.flipped` class); `.flip-leaf` / `.flip-leaf-
   stable` power the keyframe-animated turn used for forward/backward and
   cover pages. Both are kept because the page script can drive either. */
.flip-page {
  z-index: 10;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform .82s cubic-bezier(.645, .045, .355, 1);
}

.flip-page.flipped {
  transform: rotateY(-180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #eee;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-face.front { transform: rotateY(0deg); }
.flip-face.back { transform: rotateY(180deg); }

.flip-face.front:after,
.flip-face.back:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flip-face.front:after {
  background: linear-gradient(90deg, rgba(0, 0, 0, .12), transparent 10%);
}

.flip-face.back:after {
  background: linear-gradient(270deg, rgba(0, 0, 0, .12), transparent 10%);
}

.flip-leaf {
  z-index: 40;
  transform-origin: left center;
  transform-style: preserve-3d;
  isolation: isolate;
  will-change: transform;
}

.flip-leaf.reverse {
  left: 0;
  transform: rotateY(-180deg);
  transform-origin: right center;
}

.flip-leaf.from-cover {
  left: 25%;
  width: 50%;
}

.flip-leaf.from-cover.flip-backward {
  left: 25%;
  transform-origin: right center;
}

.flip-leaf.flip-forward.animate {
  animation: pageTurnForward .92s cubic-bezier(.22, .61, .36, 1) both;
}

.flip-leaf.flip-backward.animate {
  animation: pageTurnBackward .92s cubic-bezier(.22, .61, .36, 1) both;
}

.flip-leaf.from-cover.flip-forward.animate {
  animation: coverOpenForward 1.05s cubic-bezier(.22, .61, .36, 1) both;
}

.flip-leaf.from-cover.flip-backward.animate {
  animation: coverOpenBackward 1.05s cubic-bezier(.22, .61, .36, 1) both;
}

.flip-leaf.to-cover.flip-forward.animate {
  animation: coverCloseForward 1.05s cubic-bezier(.22, .61, .36, 1) both;
}

.flip-leaf.to-cover.flip-backward.animate {
  animation: coverCloseBackward 1.05s cubic-bezier(.22, .61, .36, 1) both;
}

.flip-leaf .flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-leaf .flip-face.back {
  transform: rotateY(180deg);
}

.flip-leaf-stable {
  z-index: 40;
  overflow: hidden;
  contain: layout paint style;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, box-shadow;
}

.flip-leaf-stable img {
  transform: translateZ(.1px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-leaf-stable.mobile-leaf {
  left: 0;
  width: 100%;
  transform-origin: center center;
}

@keyframes pageTurnForward {
  0% {
    transform: rotateY(0);
    filter: brightness(1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
  }
  48% {
    filter: brightness(.82);
    box-shadow: -28px 18px 40px rgba(0, 0, 0, .28);
  }
  100% {
    transform: rotateY(-180deg);
    filter: brightness(1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
  }
}

@keyframes pageTurnBackward {
  0% {
    transform: rotateY(-180deg);
    filter: brightness(1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
  }
  52% {
    filter: brightness(.82);
    box-shadow: 28px 18px 40px rgba(0, 0, 0, .28);
  }
  100% {
    transform: rotateY(0);
    filter: brightness(1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
  }
}

@keyframes coverOpenForward {
  0% { transform: translateX(0) rotateY(0); }
  18% { transform: translateX(50%) rotateY(0); }
  100% { transform: translateX(50%) rotateY(-180deg); }
}

@keyframes coverOpenBackward {
  0% { transform: translateX(0) rotateY(-180deg); }
  18% { transform: translateX(-50%) rotateY(-180deg); }
  100% { transform: translateX(-50%) rotateY(0); }
}

@keyframes coverCloseForward {
  0% { transform: translateX(0) rotateY(0); }
  82% { transform: translateX(0) rotateY(-180deg); }
  100% { transform: translateX(-50%) rotateY(-180deg); }
}

@keyframes coverCloseBackward {
  0% { transform: translateX(0) rotateY(-180deg); }
  82% { transform: translateX(0) rotateY(0); }
  100% { transform: translateX(50%) rotateY(0); }
}

@keyframes mobileTurnForward {
  to {
    opacity: 0;
    transform: translateX(-12%) rotateY(-32deg);
  }
}

@keyframes mobileTurnBackward {
  from {
    opacity: 1;
    transform: translateX(0) rotateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(12%) rotateY(32deg);
  }
}

.flipbook-arrow {
  position: absolute;
  z-index: 50;
  top: 50%;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition: .25s var(--ease);
}

.flipbook-arrow:hover {
  background: #fff;
  color: var(--brown);
  transform: translateY(-50%) scale(1.06);
}

.flipbook-arrow:disabled {
  opacity: .2;
  cursor: default;
}

.flipbook-prev { left: 18px; }
.flipbook-next { right: 18px; }

.flipbook-bottom {
  flex: 0 0 34px;
  height: 34px;
  color: rgba(255, 255, 255, .48);
  font-size: 9px;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .flipbook-shell {
    height: 97vh;
  }

  .flipbook-stage {
    padding: 10px 8px 62px;
  }

  .flipbook {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    max-height: none;
  }

  .flipbook:after {
    display: none;
  }

  .flipbook-static,
  .flip-page,
  .flipbook-static.single-cover {
    left: 0 !important;
    right: auto !important;
    width: 100%;
  }

  .flipbook-static.left {
    display: none;
  }

  .flipbook-static.single {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .flip-page {
    transform-origin: left center;
  }

  .flip-leaf,
  .flip-leaf.from-cover,
  .flip-leaf.from-cover.flip-backward {
    left: 0;
    width: 100%;
    transform-origin: left center;
  }

  .flip-leaf.flip-backward {
    transform-origin: right center;
  }

  .flip-leaf.flip-forward.animate,
  .flip-leaf.from-cover.flip-forward.animate,
  .flip-leaf.to-cover.flip-forward.animate {
    animation: mobileTurnForward .55s ease both;
  }

  .flip-leaf.flip-backward.animate,
  .flip-leaf.from-cover.flip-backward.animate,
  .flip-leaf.to-cover.flip-backward.animate {
    animation: mobileTurnBackward .55s ease both;
  }

  .flipbook-arrow {
    top: auto;
    bottom: 8px;
    width: 45px;
    height: 45px;
    font-size: 28px;
  }

  .flipbook-prev { left: calc(50% - 54px); }
  .flipbook-next { right: calc(50% - 54px); }

  .flipbook-bottom {
    display: none;
  }
}

/* -----------------------------------
   17. Scroll-reveal utility & reduced motion
   ----------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *:before,
  *:after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Contact links retain brand styling and clear keyboard focus. */
.topbar a:hover, .contact-card a:hover, footer a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #c67300; outline-offset: 4px; }

#enquiry-form label { font-size:14px; font-weight:600; }
#enquiry-form label input, #enquiry-form label select, #enquiry-form label textarea { display:block; margin-top:7px; font-weight:400; }
.enquiry-trap { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.enquiry-status { margin:0; padding:12px 16px; background:#f8f5f0; border-radius:4px; }
.enquiry-status.success { color:#215c37; background:#eef8f1; }
.enquiry-status.error { color:#8b2424; background:#fff0f0; }
#enquiry-form button:disabled { opacity:.65; cursor:wait; }
