/* Layered light complements the existing typography and property photography. */
:root {
  --atmosphere-base: #20283e;
  --atmosphere-gold: rgba(197, 168, 103, .4);
  --atmosphere-blue: rgba(75, 105, 145, .55);
  --on-atmosphere: #f7f5f0;
  --on-atmosphere-muted: #e1e4ec;
  --on-atmosphere-accent: #eee1c6;
  --motion-ease: cubic-bezier(.16, 1, .3, 1);
}
/* Lenis owns desktop easing; avoid a second native easing curve. */
html.lenis { scroll-behavior: auto; }

.header {
  color: var(--on-atmosphere);
  background: rgba(30, 37, 59, .96);
  border-color: rgba(238, 225, 198, .17);
  backdrop-filter: blur(14px);
}
.header .brand { color: var(--on-atmosphere); }
.header .monogram { color: #d9be86; }
.header-cta { border-color: rgba(217, 190, 134, .55); }
.header-cta .ui-icon { color: #d9be86; }
.header nav a::after { background: #d9be86; }
.header .menu-toggle { border-color: rgba(238, 225, 198, .4); }
.header .menu-toggle span { background: var(--on-atmosphere); }
.header nav .nav-contact { display: none; }
.header a:focus-visible, .header button:focus-visible,
.hero a:focus-visible, .hero button:focus-visible,
.hero-gallery:focus-visible { outline-color: #eee1c6; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--on-atmosphere);
  background: var(--atmosphere-base);
  padding-block: clamp(48px, 6vw, 88px);
}
.blue-atmosphere { isolation: isolate; }
.hero, .approach, footer { position: relative; }
.blue-atmosphere > .ambient-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: clip;
  contain: paint;
  pointer-events: none;
}
.ambient-field::before, .ambient-field::after {
  content: '';
  position: absolute;
  inset: -25%;
  pointer-events: none;
}
.ambient-field::before {
  background: radial-gradient(ellipse at 24% 35%, var(--atmosphere-gold), transparent 62%);
  animation: casale-warm-drift 12s ease-in-out infinite alternate !important;
}
.ambient-field::after {
  background: radial-gradient(ellipse at 80% 25%, var(--atmosphere-blue), transparent 58%);
  animation: casale-blue-drift 16s ease-in-out infinite alternate !important;
}
.blue-atmosphere[data-ambient-state='paused'] > .ambient-field::before,
.blue-atmosphere[data-ambient-state='paused'] > .ambient-field::after { animation-play-state: paused !important; }
.header > .ambient-field { opacity: .55; }
footer > .ambient-field { opacity: .72; }
#navigation > .ambient-field { display: none; }
@media (max-width: 767px) {
  #navigation > .ambient-field { display: block; }
}
@keyframes casale-warm-drift {
  from { transform: translate(-12%, 6%) scale(1); opacity: .75; }
  to { transform: translate(10%, -8%) scale(1.12); opacity: 1; }
}
@keyframes casale-blue-drift {
  from { transform: translate(8%, -6%) scale(1.1); }
  to { transform: translate(-10%, 8%) scale(1); }
}
.ambient-gold-dust {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: clip;
  pointer-events: none;
  opacity: .8;
}
.gold-mote {
  position: absolute;
  width: var(--mote-size);
  height: var(--mote-size);
  border-radius: 50%;
  background: #e8ca8a;
  box-shadow: 0 0 7px 2px rgba(225, 197, 143, .2);
  opacity: .25;
}
html[data-motion-autoplay='true'] .gold-mote {
  animation: casale-gold-float var(--mote-duration) ease-in-out var(--mote-delay) infinite alternate !important;
}
.blue-atmosphere[data-ambient-state='paused'] > .ambient-field .gold-mote { animation-play-state: paused !important; }
.gold-mote-glint { background: transparent; box-shadow: none; }
.gold-mote-glint::before, .gold-mote-glint::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(ellipse, #f3dba9, rgba(225, 197, 143, .5) 35%, transparent 72%);
}
.gold-mote-glint::before { transform: scaleY(.2); }
.gold-mote-glint::after { transform: scaleX(.2); }
@keyframes casale-gold-float {
  0% { opacity: .14; transform: translate3d(0, 0, 0); }
  45% { opacity: .65; }
  100% { opacity: .2; transform: translate3d(var(--mote-dx), var(--mote-dy), 0); }
}
/* Keep page scrolling on touch; the opening gallery advances itself. */
.hero-gallery { overflow-x: hidden; touch-action: pan-y pinch-zoom; }
@media (max-width: 767px) {
  .ambient-gold-dust { opacity: .65; }
  .gold-mote:nth-child(n + 9) { display: none; }
}
.hero-architecture {
  position: absolute;
  z-index: -1;
  right: -6%;
  bottom: -12%;
  width: min(80vw, 980px);
  height: auto;
  color: #e1c58f;
  opacity: .12;
  stroke-width: .7;
  pointer-events: none;
}
.hero-copy, .hero-photo { color: var(--on-atmosphere); }
.hero h1 em { color: #e1c58f; }
.hero .eyebrow, .hero-photo .photo-caption small { color: var(--on-atmosphere-accent); }
.hero .eyebrow > span { background: #e1c58f; }
.hero-description { color: var(--on-atmosphere-muted); }
.hero-actions > .text-link { color: var(--on-atmosphere); border-color: #bca475; }
.hero-actions > .button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e7d5ab;
  color: #20283e;
  border-color: #efdfbb;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
}
.hero-actions > .button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .45), transparent 80%);
  transform: translateX(-140%);
  transition: transform .65s var(--motion-ease);
  pointer-events: none;
}
.hero-photo {
  padding: clamp(12px, 1.5vw, 20px);
  border: 1px solid rgba(238, 225, 198, .25);
  background: rgba(255, 255, 255, .035);
  box-shadow: 0 24px 72px rgba(8, 13, 27, .2);
}
.hero-gallery { background: var(--atmosphere-base); }
.hero-gallery-controls button { color: var(--on-atmosphere); }
.hero-gallery-footer { padding-top: 18px; gap: 12px 8px; }
.hero-photo .photo-caption strong { font-size: clamp(20px, 1.75vw, 25px); }
.contact-actions > .contact-person { margin-top: 16px; font-size: 13px; color: #62543e; }
.approach .service-contact {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  max-width: 100%;
  margin-top: 20px;
  padding: 12px 18px;
  border: 1px solid #f3e5c8;
  background: #eee1c6;
  color: #20283e;
  font-size: 13px;
  line-height: 1.6;
}
@media (hover: hover) and (pointer: fine) {
  .approach .service-contact:hover { background: #fff3d9; color: #20283e; border-color: #fff3d9; }
}

.gallery-main { box-shadow: 0 14px 40px rgba(37, 44, 69, .1); }
.gallery-main > img { transition: transform .7s var(--motion-ease); }
.photo-tab { transition: opacity .22s, border-color .22s; }
.approach {
  position: relative;
  grid-template-areas: 'intro services' 'action services';
  background: var(--atmosphere-base);
}
.approach .approach-items article {
  position: relative;
  padding: 28px 28px 28px 68px;
  border: 1px solid rgba(238, 225, 198, .2);
  background: rgba(255, 255, 255, .025);
  transition: background-color .25s, border-color .25s;
}
.approach-items article + article { margin-top: 16px; }
.approach-items article::before {
  position: absolute;
  top: 31px;
  left: 22px;
  color: #d6bc85;
  font: 12px/1.6 var(--sans);
  letter-spacing: 1px;
}
.approach-items article:first-child::before { content: '01'; }
.approach-items article:nth-child(2)::before { content: '02'; }
.approach-items p { max-width: 45ch; }
.contact {
  background:
    radial-gradient(ellipse at 100% 100%, rgba(197, 168, 103, .2), transparent 65%),
    linear-gradient(120deg, #eee8dc, var(--contact));
}
.consultoria-contact {
  grid-area: action;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 0;
  padding: 28px;
  border: 1px solid rgba(197, 168, 103, .5);
  color: var(--ink);
}
.consultoria-contact .contact-copy h3 {
  margin-top: 12px;
  font-size: clamp(32px, 2.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -1px;
}
.consultoria-contact .contact-copy h3 em { color: var(--accent); }
.consultoria-contact .contact-actions > .button {
  width: 100%;
  margin-top: 0;
  justify-content: center;
  gap: 12px;
}
.consultoria-contact .contact-actions > .button span { display: block; min-width: 0; text-align: left; }
.consultoria-contact .contact-person { line-height: 1.7; }
@media (max-width: 1119px) {
  .header nav .nav-contact { display: flex; }
}
@media (max-width: 1023px) {
  .approach { grid-template-areas: 'intro' 'services' 'action'; }
}
@media (max-width: 767px) {
  .consultoria-contact { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 24px; margin-top: 0; }
  .consultoria-contact .contact-actions > .button { padding-inline: 14px; font-size: 13px; }
  .header nav .nav-contact { margin-top: 8px; color: #e1c58f; }
}

@media (hover: hover) and (pointer: fine) {
  .header-cta:hover { background: rgba(238, 225, 198, .09); }
  .hero-actions > .button:hover { background: #efdfbb; }
  .hero-actions > .button:hover::before { transform: translateX(140%); }
  .hero-gallery-controls button:hover { background: rgba(255, 255, 255, .08); }
  .gallery-main:hover > img { transform: scale(1.018); }
  .photo-tab:hover { opacity: 1; border-color: #826533; }
  .approach .approach-items article:hover {
    border-color: rgba(238, 225, 198, .4);
    background: rgba(255, 255, 255, .05);
  }
}
@media (min-width: 960px) {
  .hero { min-height: min(820px, calc(100svh - 88px)); }
}
@media (max-width: 767px) {
  .header nav { background: #1e253b; border-color: rgba(238, 225, 198, .2); }
  .hero { padding-block: 40px 48px; }
  .hero-photo { padding: 12px; }
  .hero-architecture { width: 160vw; right: -55%; bottom: 0; }
  .hero-photo .photo-caption small { font-size: 11px; letter-spacing: .3px; }
  .approach .approach-items article { padding: 24px 20px 24px 54px; }
  .approach-items article::before { top: 27px; left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-main:hover > img { transform: none; }
  .hero-actions > .button::before { display: none; }
}

/* The brand story uses an editorial layout and a small set of clear principles. */
.about {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  column-gap: clamp(40px, 7vw, 96px);
  row-gap: 40px;
}
.about-story, .about-essence { min-width: 0; }
.about-heading h2 { margin-top: 0; font-size: clamp(48px, 4.4vw, 72px); line-height: 1.04; letter-spacing: -1.8px; }
.about-copy { max-width: 62ch; margin-top: 24px; }
.about-essence { border-left: 1px solid var(--line); padding-left: clamp(28px, 3vw, 40px); }
.essence-heading h3 { font-size: clamp(28px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -.7px; }
.essence-heading h3 em { color: var(--accent); }
.about-tagline { margin-top: 16px; font: clamp(20px, 1.5vw, 24px)/1.4 var(--serif); color: var(--accent); }
.about-copy .about-lead {
  color: var(--ink);
  font: clamp(24px, 2vw, 30px)/1.35 var(--serif);
  letter-spacing: -.4px;
}
.about-principles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.about-principles li { display: flex; align-items: flex-start; gap: 16px; min-width: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.principle-number { padding-top: 5px; color: var(--accent); font-size: 11px; letter-spacing: 1px; }
.about-principles h4 { margin: 0; font: 400 24px/1.3 var(--serif); }
.about-principles p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.property-overview > .button, .contact-actions > .button, .header-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.property-overview > .button::before, .contact-actions > .button::before, .header-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(238, 214, 165, .24), transparent 80%);
  transform: translateX(-140%);
  transition: transform .75s var(--motion-ease);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .property-overview > .button:hover::before,
  .contact-actions > .button:hover::before,
  .header-cta:hover::before { transform: translateX(140%); }
}
@media (max-width: 899px) {
  .about { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .about-copy { max-width: 62ch; }
  .about-essence { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 32px; }
}
@media (min-width: 768px) and (max-width: 899px) {
  .about-principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 767px) {
  .about-heading h2 { font-size: clamp(40px, 12vw, 56px); letter-spacing: -1.1px; }
  .about-tagline { font-size: 20px; }
  .about-principles { gap: 20px; }
  .about-principles h4 { font-size: 23px; }
}

/* Clear footer groups align the brand, navigation and social links. */
.site-footer {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(140px, .45fr);
  align-items: start;
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 40px;
  padding-top: 64px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.site-footer > div, .site-footer > nav { min-width: 0; }
.site-footer .brand { width: fit-content; }
.site-footer .footer-identity > p {
  display: block;
  margin-top: 20px;
  max-width: 32ch;
  color: #d7dbe4;
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
}
.site-footer .footer-label {
  display: block;
  margin: 0 0 16px;
  color: #eee1c6;
  text-align: left;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.site-footer .footer-nav { grid-column: auto; display: block; padding: 0; }
.site-footer .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.site-footer .footer-links a { min-height: 44px; margin: 0; font-size: 13px; line-height: 1.7; }
.site-footer .footer-social > a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 13px; }
.site-footer .footer-social .ui-icon { width: 18px; height: 18px; }
.site-footer .footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(238, 225, 198, .24);
}
.site-footer .footer-bottom small { color: #cbd1dd; font-size: 12px; line-height: 1.7; }
.site-footer .footer-bottom > a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 12px; }
.site-footer .footer-bottom .ui-icon { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { color: #eee1c6; }
}
@media (max-width: 1023px) {
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .footer-identity { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-top: 40px; }
  .site-footer .footer-identity { grid-column: 1 / -1; }
  .site-footer .footer-links { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .site-footer .footer-bottom { gap: 8px 24px; }
}
