/* =========================================================
   FERELLA INTERIORS — shared stylesheet
   Quiet Luxury · Curated Design
   ========================================================= */

:root {
  --bg:            #f3f1ec;   /* warm off-white */
  --bg-alt:        #e9e5dd;   /* warmer cream */
  --bg-deep:       #1f1d1a;   /* near-black warm */
  --paper:         #ffffff;
  --ink:           #2a2825;
  --ink-soft:      #5a564f;
  --ink-mute:      #8b857c;
  --line:          #cfc8bc;
  --line-soft:     #e2dccf;
  --accent:        #847666;   /* taupe */

  --serif:        "Cormorant Garamond", "Cormorant", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans:         "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --tracking-wide: 0.32em;
  --tracking-mid:  0.18em;

  --pad-x: clamp(24px, 5vw, 96px);
  --max:   1440px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Typography ---------- */

.serif { font-family: var(--serif); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-soft);
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.02;
  font-size: clamp(48px, 8vw, 124px);
  margin: 0;
}

h1.section-title,
h2.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0 0 1.1em; }
p.lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.body-text {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.75;
}

/* ---------- Layout ---------- */

.shell { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.shell-wide { width: 100%; padding: 0 var(--pad-x); }

main { flex: 1 0 auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 241, 236, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 48px;
  padding: 18px var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: start;
  padding-right: 32px;
}
.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: grayscale(20%);
  mix-blend-mode: multiply;
}
.brand .wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .brand .wordmark { font-size: 18px; letter-spacing: 0.18em; }
  .nav { gap: 26px; }
}
@media (max-width: 1024px) {
  .brand .wordmark { font-size: 16px; letter-spacing: 0.14em; }
  .nav { gap: 20px; }
  .nav a { font-size: 10.5px; letter-spacing: 0.24em; }
}
.brand .tagline {
  display: block;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}

.nav {
  justify-self: center;
  display: flex;
  gap: 38px;
}
.nav a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 0;
  position: relative;
  transition: color .25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

.header-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-cta .lang {
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  margin: 6px auto;
  width: 22px;
  transition: transform .3s ease, opacity .3s ease;
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: block; justify-self: end; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .brand .tagline { display: none; }
  .brand img { width: 44px; height: 44px; }
  .brand .wordmark { font-size: 16px; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    gap: 18px;
    padding: 24px 0 8px;
    border-top: 1px solid var(--line-soft);
    margin-top: 12px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--ghost { border-color: var(--line); color: var(--ink-soft); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn .arrow { transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-deep);
  color: #c8c2b6;
  padding: 88px var(--pad-x) 32px;
  margin-top: 120px;
}
.site-footer .grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid #3a3631;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: #8a8478;
  margin: 0 0 18px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: #c8c2b6; transition: color .25s; }
.site-footer a:hover { color: #fff; }
.site-footer .word {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.18em;
  color: #f1ece3;
  margin: 0 0 10px;
}
.site-footer .small {
  font-size: 13.5px;
  line-height: 1.7;
  color: #9b9488;
}
.site-footer .legal {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
  color: #6f6a60;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.site-footer .legal a { color: #9b9488; }

@media (max-width: 900px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .site-footer .grid { grid-template-columns: 1fr; }
  .site-footer .legal { flex-direction: column; gap: 8px; }
}

/* ---------- Image utility ---------- */

.image-frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.image-frame:hover img { transform: scale(1.04); }

.image-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: var(--tracking-mid);
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Page hero ---------- */

.page-hero {
  padding: clamp(72px, 12vw, 160px) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero .eyebrow { margin-bottom: 24px; display: block; }
.page-hero .title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.96;
  letter-spacing: 0.005em;
  margin: 0 0 28px;
}
.page-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
  margin-top: 56px;
  border-top: 1px solid var(--line-soft);
  padding-top: 28px;
}
.page-hero .meta dt {
  font-size: 10.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.page-hero .meta dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ---------- Section spacing ---------- */

.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: #e9e3d6; }
.section--deep .eyebrow { color: #9b9488; }
.section--deep .body-text { color: #b9b3a6; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- Decorative rule ---------- */

.rule {
  height: 1px;
  background: var(--line-soft);
  width: 100%;
}

/* ---------- Forms ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 10.5px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field select, .field textarea {
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border-color .25s;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; font-family: var(--sans); }

/* ---------- Misc ---------- */

::selection { background: var(--ink); color: var(--bg); }

.hide-mobile { display: initial; }
@media (max-width: 700px) { .hide-mobile { display: none; } }

.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in.is-visible { opacity: 1; transform: none; }
