/* AlmoraLiving — shared styles
   Palette cue: ink / sand / gold (from Sol mockups), branded AlmoraLiving.
   Replace Unsplash URLs in HTML with local photos under assets/images/ when ready. */

:root {
  --ink: #1a2e28;
  --ink-deep: #12231e;
  --sand: #f3efe6;
  --sand-warm: #e8e0d2;
  --gold: #b99a63;
  --gold-deep: #9a7f4f;
  --cream: #faf7f1;
  --mist: #e2e7e3;
  --muted: #5c6863;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(18, 35, 30, 0.12);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", "Helvetica Neue", sans-serif;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
}

/* —— Atmosphere —— */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(185, 154, 99, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(26, 46, 40, 0.06), transparent 50%),
    linear-gradient(180deg, var(--sand) 0%, var(--cream) 45%, var(--sand-warm) 100%);
}

/* —— Nav —— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-solid {
  position: fixed;
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26, 46, 40, 0.08);
}

.site-header.is-solid .brand,
.site-header.is-solid .nav-links a {
  color: var(--ink);
}

.site-header.is-solid .nav-links a:hover,
.site-header.is-solid .nav-links a[aria-current="page"] {
  color: var(--gold-deep);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 6%;
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand span {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.35rem;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: var(--white) !important;
  padding: 0.7rem 1.15rem;
  font-size: 0.68rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--gold-deep);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.site-header.is-solid .nav-cta {
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  padding: 0;
}

.site-header.is-solid .nav-toggle {
  border-color: rgba(26, 46, 40, 0.35);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1px;
  background: currentColor;
  margin: 0.28rem auto;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-ink:hover {
  background: var(--ink-deep);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 35, 30, 0.25) 0%, rgba(18, 35, 30, 0.55) 55%, rgba(18, 35, 30, 0.78) 100%),
    url("https://images.unsplash.com/photo-1555881403-096538880522?auto=format&fit=crop&w=2200&q=85") center / cover no-repeat;
  transform: scale(1.05);
  animation: heroSettle 8s var(--ease) forwards;
}

/* Placeholder note: swap URL above for assets/images/hero-albufeira.jpg */

@keyframes heroSettle {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  padding: 7rem 6% 5.5rem;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero-support {
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}

.hero .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

/* —— Sections —— */
.section {
  padding: 5.5rem 6%;
  position: relative;
}

.section-narrow {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.section h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: 1.15rem;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--muted);
}

.section-pad-sm {
  padding-top: 2rem;
}

/* —— Full management band —— */
.mgmt {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 560px;
}

.mgmt-photo {
  background:
    linear-gradient(rgba(18, 35, 30, 0.12), rgba(18, 35, 30, 0.28)),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1400&q=85") center / cover no-repeat;
  min-height: 360px;
}

/* Placeholder: assets/images/mgmt-interior.jpg */

.mgmt-copy {
  background: var(--ink);
  color: var(--white);
  padding: 4.5rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mgmt-copy .kicker {
  color: var(--sand-warm);
}

.mgmt-copy h2 {
  color: var(--white);
}

.mgmt-copy p {
  color: rgba(226, 231, 227, 0.92);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.gold-line {
  width: 3.25rem;
  height: 1px;
  background: var(--gold);
  margin: 0.4rem 0 1.6rem;
}

.mgmt-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.mgmt-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  color: rgba(226, 231, 227, 0.9);
  font-size: 0.98rem;
}

.mgmt-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 1px;
  background: var(--gold);
}

/* —— Principles teaser —— */
.principles-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.principle-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

.principle-item {
  padding: 0.25rem 0.5rem;
}

.principle-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.85rem;
}

.principle-item h3 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}

.principle-item p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Philosophy page principles */
.principle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.principle-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.35rem;
  align-items: start;
}

.principle-thumb {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  filter: saturate(0.92);
}

.principle-block h3 {
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
}

.principle-block p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* —— Place band —— */
.place {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.place-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 35, 30, 0.72) 0%, rgba(18, 35, 30, 0.35) 55%, rgba(18, 35, 30, 0.25) 100%),
    url("https://images.unsplash.com/photo-1558642452-9d2a7deb7f62?auto=format&fit=crop&w=2200&q=85") center / cover no-repeat;
}

/* Placeholder: assets/images/albufeira-dusk.jpg */

.place-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 5rem 6%;
}

.place .kicker {
  color: rgba(217, 197, 161, 0.95);
}

.place h2 {
  margin-bottom: 1rem;
}

.place p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

/* —— Fee / tagline band —— */
.band {
  background: linear-gradient(135deg, #d4c0a0 0%, #c9b089 50%, #d9c5a1 100%);
  padding: 4.25rem 6%;
  text-align: center;
}

.band h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  margin-bottom: 0.85rem;
}

.band p {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--ink);
  opacity: 0.85;
  line-height: 1.75;
}

/* —— CTA / Contact form —— */
.cta-section {
  padding: 5.5rem 6% 6rem;
  background: var(--cream);
}

.cta-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta-wrap .lead {
  margin-bottom: 2.25rem;
}

.contact-form {
  text-align: left;
  display: grid;
  gap: 1.15rem;
  margin-top: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(26, 46, 40, 0.18);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 154, 99, 0.2);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-status {
  display: none;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.form-status.is-visible {
  display: block;
}

.form-status.ok {
  background: rgba(26, 46, 40, 0.08);
  color: var(--ink);
  border-left: 3px solid var(--gold);
}

.form-status.err {
  background: rgba(140, 50, 40, 0.08);
  color: #6b2c24;
  border-left: 3px solid #a34a3e;
}

/* Contact page hero (shorter) */
.hero-compact {
  min-height: 52vh;
  align-items: flex-end;
}

.hero-compact .hero-inner {
  padding-bottom: 3.5rem;
}

.hero-philosophy .hero-media {
  background:
    linear-gradient(180deg, rgba(18, 35, 30, 0.28) 0%, rgba(18, 35, 30, 0.62) 100%),
    url("https://images.unsplash.com/photo-1516483638261-f4dbaf036963?auto=format&fit=crop&w=2200&q=85") center / cover no-repeat;
}

/* Placeholder: assets/images/philosophy-hero.jpg */

.hero-contact .hero-media {
  background:
    linear-gradient(180deg, rgba(18, 35, 30, 0.35) 0%, rgba(18, 35, 30, 0.7) 100%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2200&q=85") center / cover no-repeat;
}

/* Placeholder: assets/images/contact-hero.jpg */

.hero-about .hero-media {
  background:
    linear-gradient(180deg, rgba(18, 35, 30, 0.32) 0%, rgba(18, 35, 30, 0.68) 100%),
    url("https://images.unsplash.com/photo-1600585154526-990dced4db0d?auto=format&fit=crop&w=2200&q=85") center / cover no-repeat;
}

/* Placeholder: assets/images/about-hero.jpg */

.about-photo {
  background:
    linear-gradient(rgba(18, 35, 30, 0.12), rgba(18, 35, 30, 0.28)),
    url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=1400&q=85") center / cover no-repeat;
}

/* Placeholder: assets/images/about-mark.jpg */

.hero-services .hero-media {
  background:
    linear-gradient(180deg, rgba(18, 35, 30, 0.3) 0%, rgba(18, 35, 30, 0.68) 100%),
    url("https://images.unsplash.com/photo-1600047509807-ba8f99d2cd3b?auto=format&fit=crop&w=2200&q=85") center / cover no-repeat;
}

/* Placeholder: assets/images/services-hero.jpg */

.service-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 2.25rem;
}

.service-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(26, 46, 40, 0.1);
}

.service-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-item h3 {
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
}

.service-item p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

@media (max-width: 720px) {
  .service-item {
    grid-template-columns: 2.75rem 1fr;
  }
}

.story {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.story p + p {
  margin-top: 1.1rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink-deep);
  color: rgba(223, 229, 225, 0.88);
  padding: 2.25rem 6%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-brand {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  color: var(--white);
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

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

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

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

  .hero-media {
    animation: none;
    transform: none;
  }

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

  .btn:hover,
  .nav-cta:hover {
    transform: none;
  }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .principle-rail {
    grid-template-columns: 1fr 1fr;
  }

  .mgmt {
    grid-template-columns: 1fr;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(18, 35, 30, 0.97);
    padding: 0.5rem 6% 1.25rem;
  }

  .site-header.is-open .nav-links {
    display: flex;
  }

  .site-header.is-solid.is-open .nav-links {
    background: rgba(243, 239, 230, 0.98);
  }

  .nav-links a {
    padding: 0.85rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header.is-solid .nav-links a {
    border-bottom-color: rgba(26, 46, 40, 0.08);
  }

  .nav-cta {
    margin-top: 0.75rem;
  }

  .principle-rail {
    grid-template-columns: 1fr;
  }

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

  .principle-block {
    grid-template-columns: 100px 1fr;
  }

  .hero-inner {
    padding-top: 6.5rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }
}
