/* =========================================================
   Adi Gallay — Interior Design & Homestyling
   Palette and type carried over from the design board.
   Type and layout scale with the viewport: the 1440px board
   is the baseline, and everything grows proportionally up to
   ~1940px, then holds.
   ========================================================= */

:root {
  --cream:      #F7F3EC;
  --sand:       #EBE3D7;
  --ink:        #22201D;
  --body:       #4A443D;
  --muted:      #6B635A;
  --muted-soft: #7A6F62;
  --terracotta: #8F5F42;
  --rule:       #DED4C6;
  --rule-soft:  #C9BFB1;
  --on-dark:    #E8E0D4;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 5.5vw, 108px);
  --header-h: clamp(84px, 6.4vw, 124px);

  /* fluid type scale — min, ideal (px at 1440 ÷ 14.4), max */
  --t-micro:  clamp(9px,    0.73vw, 14px);   /* 10.5 at 1440 */
  --t-label:  clamp(11px,   0.83vw, 16px);   /* 12   at 1440 */
  --t-eyebrow:clamp(10px,   0.76vw, 15px);   /* 11   at 1440 */
  --t-body:   clamp(15.5px, 1.08vw, 21px);   /* 15.5 at 1440 */
  --t-lede:   clamp(16px,   1.18vw, 23px);   /* 17   at 1440 */
  --t-intro:  clamp(17px,   1.32vw, 26px);   /* 19   at 1440 */
  --t-h3:     clamp(25px,   2.15vw, 42px);   /* 31   at 1440 */
  --t-h2:     clamp(34px,   3.89vw, 75px);   /* 56   at 1440 */
  --t-h1:     clamp(44px,   5.42vw, 105px);  /* 78   at 1440 */
  --t-quote:  clamp(24px,   2.64vw, 51px);   /* 38   at 1440 */
  --t-band:   clamp(30px,   3.61vw, 70px);   /* 52   at 1440 */
}

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

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-lede);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--terracotta); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ---------- shared bits ---------- */

.eyebrow {
  font-size: var(--t-eyebrow);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow--muted { color: var(--muted-soft); letter-spacing: 0.3em; }

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-h2);
  line-height: 1.06;
  text-wrap: balance;
}

.lede { font-size: var(--t-lede); line-height: 1.85; color: var(--body); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: clamp(16px, 1.32vw, 26px) clamp(30px, 2.64vw, 52px);
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.25s ease, color 0.25s ease;
}

.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--terracotta); }

.btn--line {
  padding: 0 0 5px;
  border-bottom: 1px solid var(--ink);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.btn--line:hover { color: var(--terracotta); border-color: var(--terracotta); }

section { scroll-margin-top: var(--header-h); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  min-height: var(--header-h);
  padding: clamp(12px, 1vw, 20px) var(--gutter);
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.brand__name {
  font-family: var(--serif);
  font-size: clamp(19px, 1.74vw, 34px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__tag {
  font-size: clamp(8px, 0.66vw, 13px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.78vw, 54px); }

.nav a.nav__link {
  font-size: var(--t-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
}
.nav a.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}
.nav a.nav__link:hover::after { width: 100%; }

.nav__phone {
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  color: var(--terracotta);
  text-decoration: none;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  padding: clamp(9px, 0.76vw, 15px) clamp(18px, 1.53vw, 30px);
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav__phone:hover { background: var(--terracotta); color: var(--cream); }

.nav__ig { display: inline-flex; color: var(--ink); transition: color 0.25s ease; }
.nav__ig:hover { color: var(--terracotta); }
.nav__ig svg { width: clamp(18px, 1.32vw, 26px); height: clamp(18px, 1.32vw, 26px); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 43%) minmax(0, 1fr);
  align-items: stretch;
  min-height: clamp(560px, 58vw, 1120px);
}

.hero__copy {
  padding: clamp(56px, 5vw, 96px) clamp(40px, 5vw, 96px) clamp(56px, 5vw, 96px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 2.08vw, 40px);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-h1);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.hero p {
  font-size: var(--t-intro);
  line-height: 1.75;
  color: var(--body);
  max-width: 26em;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(18px, 1.94vw, 38px);
  margin-top: 6px;
}

.hero__media { position: relative; overflow: hidden; min-height: 340px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- statement ---------- */

.statement {
  background: var(--sand);
  padding: clamp(64px, 6.9vw, 134px) clamp(24px, 12vw, 260px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 1.8vw, 35px);
  text-align: center;
}

.statement p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-quote);
  line-height: 1.42;
  text-wrap: pretty;
}

/* ---------- about ---------- */

.about {
  padding: clamp(72px, 9vw, 175px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 33%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6.7vw, 130px);
}

.about__figure { display: flex; flex-direction: column; gap: clamp(12px, 1.25vw, 24px); }
.about__figure img {
  width: 100%;
  aspect-ratio: 470 / 560;
  object-fit: cover;
  object-position: 42% 28%;
}
.about__caption {
  font-size: var(--t-micro);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.about__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 1.94vw, 38px);
  max-width: 38em;
}

/* ---------- services ---------- */

.services {
  background: var(--sand);
  padding: clamp(72px, 8.3vw, 162px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 3.9vw, 76px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.section-head__note {
  font-size: var(--t-label);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 3.33vw, 65px);
}

.service { display: flex; flex-direction: column; gap: clamp(16px, 1.67vw, 32px); }
.service img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.service__step {
  font-family: var(--serif);
  font-size: clamp(26px, 2.08vw, 40px);
  color: var(--terracotta);
  line-height: 1;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: 1.2;
}
.service p { font-size: var(--t-body); line-height: 1.82; color: var(--body); }

/* ---------- portfolio ---------- */

.portfolio {
  padding: clamp(72px, 8.3vw, 162px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 3.6vw, 70px);
}

.portfolio__head { align-items: flex-end; }
.portfolio__title { display: flex; flex-direction: column; gap: clamp(14px, 1.39vw, 27px); }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.67vw, 32px);
}

.shot {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--sand);
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 3 / 2.6;
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.shot:hover img { transform: scale(1.045); }

/* ---------- testimonials ---------- */

.testimonials {
  background: var(--sand);
  padding: clamp(64px, 7.6vw, 148px) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 3.6vw, 70px);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.05vw, 60px);
}

.quote { display: flex; flex-direction: column; gap: clamp(14px, 1.25vw, 24px); }
.quote__mark {
  font-family: var(--serif);
  font-size: clamp(40px, 3.19vw, 62px);
  line-height: 0.6;
  color: var(--terracotta);
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 31px);
  font-weight: 300;
  line-height: 1.5;
  text-wrap: pretty;
}
.quote cite {
  font-style: normal;
  font-size: var(--t-micro);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- quote band ---------- */

.band {
  background: var(--ink);
  padding: clamp(72px, 9vw, 175px) clamp(24px, 12vw, 260px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 2.36vw, 46px);
  text-align: center;
}
.band__rule { display: block; width: clamp(44px, 3.6vw, 70px); height: 1px; background: #6B5F52; }
.band p {
  max-width: 17em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-band);
  line-height: 1.34;
  color: var(--cream);
  text-wrap: pretty;
}

/* ---------- contact ---------- */

.contact {
  padding: clamp(72px, 7.6vw, 148px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 32%) minmax(0, 1fr) minmax(0, 21%);
  align-items: center;
  gap: clamp(36px, 4.4vw, 86px);
}

.contact__intro { display: flex; flex-direction: column; gap: clamp(20px, 1.67vw, 32px); }
.contact__intro h2 { font-size: clamp(36px, 4.31vw, 84px); line-height: 1.04; }

.contact__lines { display: flex; flex-direction: column; gap: clamp(10px, 0.97vw, 19px); margin-top: 4px; }
.contact__lines a {
  font-size: clamp(18px, 1.39vw, 27px);
  letter-spacing: 0.04em;
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.contact__lines a:hover { color: var(--terracotta); border-color: var(--terracotta); }
.contact__area {
  font-size: var(--t-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 1.53vw, 30px);
  max-width: 30em;
  width: 100%;
}
.field { display: flex; flex-direction: column; gap: clamp(7px, 0.63vw, 12px); }
.field label {
  font-size: var(--t-micro);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0 4px clamp(10px, 0.83vw, 16px);
  font-family: var(--sans);
  font-size: clamp(16px, 1.11vw, 22px);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: border-color 0.25s ease;
}
.field input { height: clamp(46px, 3.47vw, 68px); }
.field textarea { resize: vertical; min-height: clamp(84px, 6.25vw, 122px); padding-top: 10px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--terracotta); }

.form__status {
  font-size: var(--t-label);
  letter-spacing: 0.04em;
  color: var(--terracotta);
  min-height: 20px;
}

.contact__portrait {
  width: 100%;
  aspect-ratio: 300 / 420;
  object-fit: cover;
  object-position: 46% 18%;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(32px, 3.1vw, 60px) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.site-footer__name {
  font-family: var(--serif);
  font-size: clamp(20px, 1.53vw, 30px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.site-footer__meta {
  font-size: var(--t-micro);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #A79C8D;
}
.site-footer__links { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(16px, 1.53vw, 30px); }
.site-footer__links a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer a { font-size: var(--t-label); letter-spacing: 0.14em; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer svg { width: clamp(17px, 1.25vw, 24px); height: clamp(17px, 1.25vw, 24px); }

/* ---------- floating whatsapp ---------- */

.wa {
  position: fixed;
  right: clamp(18px, 1.6vw, 32px);
  bottom: calc(clamp(18px, 1.6vw, 32px) + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  width: clamp(56px, 4.2vw, 78px);
  height: clamp(56px, 4.2vw, 78px);
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(34, 32, 29, 0.22);
  text-decoration: none;
  transition: transform 0.25s ease;
}
.wa:hover { transform: scale(1.06); }
.wa svg { width: 54%; height: 54%; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(34, 32, 29, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 72px);
}
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  font-family: var(--serif);
  line-height: 1;
}
.lightbox__close { top: 18px; right: 22px; font-size: clamp(36px, 2.8vw, 54px); }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: clamp(40px, 3.1vw, 60px); padding: 12px 18px; }
.lightbox__nav--prev { left: 6px; }
.lightbox__nav--next { right: 6px; }

/* ---------- reveal ---------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .shot img { transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact__portrait { display: none; }
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: clamp(44px, 8vw, 72px) var(--gutter); }
  .hero__media { aspect-ratio: 16 / 10; min-height: 0; width: 100%; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__figure img { aspect-ratio: 4 / 3; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .testimonials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    padding: 20px var(--gutter) 32px;
    transform: translateY(-120%);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a.nav__link { font-size: 15px; padding: 14px 0; letter-spacing: 0.16em; }
  .nav__phone { margin-top: 12px; }
  .nav-toggle { display: block; }
  .portfolio__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; }
  .site-footer { justify-content: flex-start; gap: 14px; }
}

@media (max-width: 560px) {
  .services__grid,
  .testimonials__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .shot { aspect-ratio: 4 / 3; }
  .hero__actions .btn--solid { width: 100%; }
  .statement, .band { padding-left: var(--gutter); padding-right: var(--gutter); }
  .brand__tag { letter-spacing: 0.22em; }
}
