/* House of Afrera V4.0 — Fade Atelier visual layer.
   Final stylesheet, loaded after curved-house.css and afrera-gallery.css.
   Design only. No scripts, commerce gates, infrastructure or login changes. */
:root {
  --hoa-deep: #1c070e;
  --hoa-wine: #340711;
  --hoa-red: #570c1c;
  --hoa-warm: #f4ecdf;
  --hoa-lustre: rgba(233, 193, 150, .32);
}
body { background: #f4ecdf; }
/* Brand | monogram | editorial navigation. The real A-mark remains in the middle. */
.header {
  background: linear-gradient(108deg, #310812 0%, #440d1a 48%, #210910 100%);
  border-bottom: 1px solid rgba(247,227,208,.24);
  box-shadow: 0 12px 32px rgba(14, 2, 7, .09);
}
.header .header-monogram { overflow: visible; border-radius: 0; }
.header .header-monogram img { object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.16)); }
@media (min-width: 1360px) {
  .header {
    display: grid;
    grid-template-columns: minmax(0,1fr) 76px minmax(0,1fr);
    column-gap: clamp(10px,1.6vw,26px);
    height: 92px;
    padding: 0 clamp(24px,3.2vw,64px);
    align-items: center;
  }
  .header .brand { grid-column: 1; grid-row: 1; justify-self: start; font-size: clamp(19px, 1.7vw, 28px); }
  .header .header-monogram {
    position: relative; left: auto; top: auto; transform: none;
    grid-column: 2; grid-row: 1; justify-self: center;
    display: flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; z-index: 2;
  }
  .header .header-monogram img { width: 72px; height: 72px; }
  .header .nav {
    position: absolute; left: calc(50% + 69px); right: 178px; top: 50%; transform: translateY(-50%);
    display: flex; grid-column: auto; grid-row: auto;
    width: auto; padding: 0; gap: clamp(8px,.9vw,14px);
    justify-content: flex-start; align-items: center;
  }
  .header .nav a { font-size: clamp(8px,.73vw,11px); letter-spacing: .10em; }
  .header .top-action { position:absolute; right:3.2vw; top:50%; transform:translateY(-50%); grid-column:auto; grid-row:auto; padding: 13px 15px; font-size: 9px; }
  .header .menu-button { display: none; }
}
@media (max-width: 1359px) {
  .header { display: grid; grid-template-columns: minmax(0,1fr) 70px minmax(0,1fr); align-items: center; }
  .header .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .header .header-monogram {
    position: relative; left: auto; top: auto; transform: none;
    grid-column: 2; grid-row: 1; justify-self: center;
    width: 64px; height: 64px;
  }
  .header .header-monogram img { width: 64px; height: 64px; }
  .header .nav, .header .top-action { display: none; }
  .header .menu-button { grid-column: 3; grid-row: 1; justify-self: end; display: block; }
}
@media (max-width: 650px) {
  .header { height: 74px; grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr); padding-inline: 5%; }
  .header .brand { font-size: clamp(11px,3.25vw,15px); letter-spacing: 0; }
  .header .header-monogram, .header .header-monogram img { width: 50px; height: 50px; }
}
/* Hero: a full photographic background that disappears into deep burgundy.
   Replaces the inset framed arch in the earlier Curved House preview. */
.hero {
  background: radial-gradient(ellipse at 18% 35%, #6a1622 0%, #390916 46%, #1b070e 100%);
  border-radius: 0 0 clamp(24px,3vw,54px) clamp(24px,3vw,54px);
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 41%;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  opacity: .97;
}
.hero-art img { border-radius: 0; object-fit: cover; object-position: 60% 0%; filter: contrast(1.05) saturate(1.05); }
.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, #300711 0%, rgba(49,7,17,.98) 18%, rgba(49,7,17,.87) 34%, rgba(49,7,17,.54) 52%, rgba(49,7,17,.05) 76%),
    linear-gradient(0deg, rgba(20,3,8,.86) 0%, transparent 38%, rgba(28,4,11,.22) 100%),
    radial-gradient(ellipse at 0% 55%, rgba(108,19,38,.42), transparent 60%);
  pointer-events: none;
}
.hero::after { display: none; }
.hero-inner { z-index: 2; padding-left: clamp(28px, 7vw, 110px); max-width: 730px; }
.hero h1 { text-shadow: 0 9px 30px rgba(21,3,8,.12); }
.hero-edge { z-index: 2; }
/* Repeat the fade motif across the House instead of adding random shapes. */
.edit-collection { background: linear-gradient(180deg, #f4ecdf 0%, #eee1d4 62%, #f9f3e9 100%); }
.collection-panel { background: linear-gradient(115deg, #f1e6da, #e9dace); }
.feature-photo, .heritage-photo, .final-photo, .card-media, .inside-image, .access-image,
.main-product-image, .hoa-gallery-feature__photo, .hoa-gallery-house__portrait,
.hoa-gallery-journey__photo { position: relative; isolation: isolate; }
.feature-photo::after, .heritage-photo::after, .final-photo::after, .card-media::after,
.inside-image::after, .access-image::after, .hoa-gallery-feature__photo::after,
.hoa-gallery-house__portrait::after, .hoa-gallery-journey__photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(38,5,14,.35), transparent 48%),
              linear-gradient(100deg, rgba(43,7,15,.20), transparent 65%);
}
.heritage-scene { background: linear-gradient(145deg, #f7f0e6 0%, #e9d9cb 100%); }
.heritage-copy { background: linear-gradient(128deg, #eee3d8, #e4d1c2); }
.final-section { background: radial-gradient(ellipse at 83% 18%, #661624 0%, #380916 55%, #1c070e 100%); }
.shop-hero, .journal-header, .inside-statement, .product-gallery,
.product-information, .access-text, .inside-copy, .legal {
  background: linear-gradient(155deg, #f8f2e9 0%, #efe4d9 58%, #f6eee5 100%);
}
.product-story, .waitlist-section, .confirmation-main {
  background: radial-gradient(ellipse at 80% 15%, #581221 0%, #2b0712 70%, #19060c 100%);
}
.shop-hero, .journal-header { border-radius: 0 0 clamp(25px,4.5vw,78px) clamp(25px,4.5vw,78px); }
.footer { background: linear-gradient(105deg, #1a070c 0%, #3a0a16 60%, #1b070c 100%); }
.hoa-gallery-feature { background: linear-gradient(145deg,#f6efe6 5%, #e8d6c8 100%); }
.hoa-gallery-house { background: linear-gradient(130deg,#f6f0e8, #ebdacc); }
.hoa-gallery-journey { background: radial-gradient(ellipse at 80% 25%, #63172a, #2e0913 74%); }
/* Maintain legibility and avoid severe photo crops on smaller screens. */
@media (max-width: 1040px) {
  .hero-art { inset: 8% -9% 1% 17%; }
  .hero-shade {
    background: linear-gradient(90deg, #300711 0%, rgba(45,7,17,.94) 23%, rgba(45,7,17,.73) 48%, rgba(45,7,17,.15) 90%),
                linear-gradient(0deg, rgba(19,2,8,.66), transparent 55%);
  }
}
@media (max-width: 650px) {
  .hero { height: 730px; min-height: 685px; }
  .hero-art { inset: 16% -30% 0 4%; }
  .hero-art img { object-position: 61% 0%; }
  .hero-shade {
    background:
      linear-gradient(180deg, #2e0711 0%, rgba(40,6,15,.94) 22%, rgba(40,6,15,.50) 52%, rgba(27,4,11,.69) 100%),
      linear-gradient(90deg, rgba(43,6,14,.36), transparent 95%);
  }
  .hero-inner { padding: 74px 6%; }
  .hero h1 { font-size: clamp(90px,20vw,124px); }
  .hero-buttons { position: relative; z-index: 3; }
}
@media (prefers-reduced-motion: reduce) { .hero-art img { transition: none !important; } }
