/* CRAQUEÊ — institucional
   Fundo: #ddccb7 | Letras: #30231c (img/color-code)
   Breakpoints: mobile / tablet / pc × portrait / landscape */

:root {
  --bg: #ddccb7;
  --bg-deep: #c9b59a;
  --bg-soft: #e8dcc8;
  --ink: #30231c;
  --ink-soft: rgba(48, 35, 28, 0.72);
  --ink-faint: rgba(48, 35, 28, 0.45);
  --accent: #7a4f2e;
  --accent-soft: #a67c52;
  --line: rgba(48, 35, 28, 0.16);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-quote: "Libre Baskerville", Georgia, serif;
  --space: clamp(1rem, 3.5vw, 3rem);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4rem;
  --section-pad: clamp(3rem, 8vw, 7.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(255, 248, 235, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 20%, rgba(166, 124, 82, 0.18), transparent 50%),
    linear-gradient(165deg, var(--bg-soft) 0%, var(--bg) 42%, var(--bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ========== Header & nav ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--space);
  background: rgba(221, 204, 183, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.site-header.is-scrolled {
  background: rgba(221, 204, 183, 0.98);
  box-shadow: 0 1px 0 var(--line);
}

.wordmark {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
}

.nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav-backdrop {
  display: none;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: end stretch;
  color: var(--bg-soft);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #2c231c;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(48, 35, 28, 0.35) 0%, rgba(48, 35, 28, 0.55) 45%, rgba(48, 35, 28, 0.78) 100%),
    radial-gradient(ellipse at 30% 70%, rgba(122, 79, 46, 0.25), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--space) clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  animation: rise 1.1s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 6.2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f3e8d8;
  margin: 0 0 0.35rem;
  line-height: 0.95;
}

.hero-kicker {
  font-size: clamp(0.65rem, 1.5vw, 0.72rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 232, 216, 0.7);
  margin: 0 0 1.1rem;
}

.hero-title {
  font-size: clamp(1.45rem, 4.2vw, 2.65rem);
  font-weight: 500;
  font-style: italic;
  color: #f3e8d8;
  margin-bottom: 0.35rem;
  max-width: 16ch;
}

.hero-lead {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(0.95rem, 2.4vw, 1.35rem);
  color: rgba(243, 232, 216, 0.88);
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.5vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

.btn-primary {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--bg-soft);
}

.btn-ghost {
  background: transparent;
  color: #f3e8d8;
  border: 1px solid rgba(243, 232, 216, 0.45);
}

.btn-ghost:hover {
  border-color: #f3e8d8;
  background: rgba(243, 232, 216, 0.08);
}

/* ========== Sections ========== */
.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: var(--section-pad) var(--space);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section h2 {
  font-size: clamp(1.75rem, 4.5vw, 3.15rem);
  color: var(--ink);
  max-width: 16ch;
}

.story {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
}

.story-copy p:last-child {
  max-width: 36ch;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.story-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
}

.story-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 1.2s var(--ease);
}

.story-visual:hover img {
  transform: scale(1.03);
}

.slogan-band {
  width: 100%;
  max-width: none;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
  text-align: center;
  background:
    linear-gradient(90deg, transparent, rgba(48, 35, 28, 0.06), transparent),
    linear-gradient(180deg, rgba(201, 181, 154, 0.55), rgba(221, 204, 183, 0.2));
  border-block: 1px solid var(--line);
}

.slogan-band blockquote {
  margin: 0 auto;
  padding: 0 var(--space);
  max-width: 28ch;
}

.slogan-band p {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.25rem, 3.5vw, 2.35rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}

.craft-intro {
  max-width: 40rem;
  margin-bottom: clamp(1.5rem, 4vw, 3.25rem);
}

.craft-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

.craft-feature,
.craft-stack figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(48, 35, 28, 0.08);
}

.media-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.craft-feature {
  min-height: clamp(240px, 42vw, 520px);
}

.craft-feature .media-fill,
.craft-stack .media-fill {
  position: absolute;
  inset: 0;
}

.craft-feature figcaption,
.craft-stack figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1rem;
  font-size: clamp(0.68rem, 1.5vw, 0.78rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3e8d8;
  background: linear-gradient(transparent, rgba(48, 35, 28, 0.72));
}

.craft-stack {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

.craft-stack figure {
  min-height: clamp(140px, 20vw, 248px);
}

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.product-shot {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: none;
}

.product-shot img {
  width: min(100%, 360px);
  filter: drop-shadow(0 14px 24px rgba(48, 35, 28, 0.12));
  animation: float-soft 6s ease-in-out infinite;
}

.product-copy p:last-child {
  max-width: 34ch;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.experience {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.experience-visual {
  margin: 0;
  overflow: visible;
  border: none;
  background: transparent;
}

.experience-visual img {
  width: min(100%, 420px);
  margin-inline: auto;
  height: auto;
}

.experience-copy p:last-child {
  max-width: 36ch;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.contact {
  padding-bottom: clamp(3.5rem, 10vw, 8rem);
}

.contact-panel {
  text-align: center;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(221, 204, 183, 0.35), transparent 55%),
    linear-gradient(180deg, #a89278 0%, #96806a 100%);
  color: var(--ink);
  border-radius: 2px;
  border: 1px solid rgba(48, 35, 28, 0.12);
}

.contact-panel h2 {
  margin-inline: auto;
  color: var(--ink);
  max-width: 18ch;
}

.contact-panel p {
  max-width: 38ch;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  color: var(--ink-soft);
}

.contact-logo {
  width: min(200px, 52vw);
  margin: 0 auto 1.5rem;
}

.contact-panel .btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.contact-panel .btn-primary:hover {
  background: #241911;
}

.site-footer {
  padding: 2rem var(--space) 2.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.footer-tag,
.footer-copy {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0;
}

.footer-tag {
  margin-bottom: 0.75rem;
}

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

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* =========================================================
   RESPONSIVE — device × orientation
   ========================================================= */

/* ----- Shared: compact / phone-width nav drawer ----- */
@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(18rem, 86vw);
    height: 100dvh;
    margin: 0;
    padding: calc(var(--header-h) + 1.5rem) 1.75rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-soft);
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 40px rgba(48, 35, 28, 0.12);
    transform: translateX(105%);
    transition: transform 0.35s var(--ease);
    z-index: 1;
  }

  .site-header.is-nav-open .nav {
    transform: translateX(0);
  }

  .nav a {
    width: 100%;
    padding: 0.95rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(48, 35, 28, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  body {
    background-attachment: scroll;
  }

  .story,
  .product,
  .experience,
  .craft-grid {
    grid-template-columns: 1fr;
  }

  .story-visual {
    order: -1;
  }

  .story-visual img {
    aspect-ratio: 5 / 4;
  }

  .craft-feature {
    min-height: min(58vw, 360px);
  }

  .craft-stack {
    grid-template-columns: 1fr 1fr;
  }

  .craft-stack figure {
    min-height: min(42vw, 220px);
  }
}

/* ----- 1) Mobile portrait ----- */
@media (max-width: 599px) and (orientation: portrait) {
  :root {
    --header-h: 3.5rem;
    --section-pad: 3rem;
    --space: 1.15rem;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
  }

  .hero-media img {
    object-fit: cover;
    object-position: center 45%;
  }

  .hero-content {
    padding-bottom: 2.25rem;
  }

  .hero-brand {
    letter-spacing: 0.08em;
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.4rem);
  }

  .craft-stack {
    grid-template-columns: 1fr;
  }

  .craft-stack figure {
    min-height: 220px;
  }

  .product-shot img {
    width: min(100%, 280px);
  }

  .experience-visual img {
    width: min(100%, 300px);
  }

  .contact-panel {
    padding-inline: 1.1rem;
  }
}

/* ----- 2) Mobile landscape ----- */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 520px) {
  :root {
    --header-h: 3.25rem;
    --section-pad: 2.25rem;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    place-items: center stretch;
  }

  .hero-media img {
    object-fit: cover;
    object-position: center center;
  }

  .hero-content {
    padding-block: 1.25rem;
    max-width: 70%;
  }

  .hero-brand {
    font-size: clamp(1.8rem, 7vh, 2.8rem);
  }

  .hero-kicker {
    margin-bottom: 0.5rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-lead {
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
  }

  .hero-cta .btn {
    min-height: 2.4rem;
    padding: 0.55rem 1rem;
  }

  .nav {
    width: min(16rem, 70vw);
    padding-top: calc(var(--header-h) + 0.75rem);
    overflow-y: auto;
  }

  .craft-stack {
    grid-template-columns: 1fr 1fr;
  }

  .craft-feature {
    min-height: 240px;
  }

  .section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
}

/* ----- 3) Tablet portrait ----- */
@media (min-width: 600px) and (max-width: 1023px) and (orientation: portrait) {
  :root {
    --max: 720px;
    --section-pad: 4rem;
  }

  .hero-media img {
    object-fit: contain;
    object-position: center center;
  }

  .hero-content {
    padding-bottom: 3.5rem;
  }

  .story-visual img {
    aspect-ratio: 4 / 3;
  }

  .craft-stack {
    grid-template-columns: 1fr 1fr;
  }

  .craft-feature {
    min-height: 380px;
  }

  .product-shot img {
    width: min(100%, 320px);
  }

  .experience-visual img {
    width: min(100%, 360px);
  }
}

/* ----- 4) Tablet landscape ----- */
@media (min-width: 600px) and (max-width: 1199px) and (orientation: landscape) and (min-height: 521px) {
  :root {
    --max: 960px;
    --section-pad: 3.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .nav a {
    width: auto;
    padding: 0;
    border: 0;
    font-size: 0.74rem;
    color: var(--ink-soft);
  }

  .nav-backdrop {
    display: none;
  }

  .story,
  .product,
  .experience {
    grid-template-columns: 1fr 1fr;
  }

  .story-visual {
    order: 0;
  }

  .craft-grid {
    grid-template-columns: 1.25fr 1fr;
  }

  .craft-stack {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
  }

  .hero-media img {
    object-fit: contain;
  }

  .hero-content {
    max-width: 55%;
  }
}

/* Keep drawer on smaller landscape tablets / large phones */
@media (min-width: 600px) and (max-width: 899px) and (orientation: landscape) and (min-height: 521px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(18rem, 70vw);
    height: 100dvh;
    padding: calc(var(--header-h) + 1.25rem) 1.5rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-soft);
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 40px rgba(48, 35, 28, 0.12);
    transform: translateX(105%);
  }

  .site-header.is-nav-open .nav {
    transform: translateX(0);
  }

  .nav a {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }

  .nav-backdrop {
    display: block;
  }

  .story,
  .product,
  .experience,
  .craft-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- 5) PC portrait ----- */
@media (min-width: 1024px) and (orientation: portrait) {
  :root {
    --max: 860px;
    --section-pad: 5rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    flex-direction: row;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .nav a {
    width: auto;
    padding: 0;
    border: 0;
  }

  .nav-backdrop {
    display: none;
  }

  .hero-media img {
    object-fit: contain;
  }

  .story,
  .product,
  .experience {
    grid-template-columns: 1fr 1fr;
  }

  .story-visual {
    order: 0;
  }

  .craft-grid {
    grid-template-columns: 1.3fr 1fr;
  }

  .craft-stack {
    grid-template-columns: 1fr;
  }
}

/* ----- 6) PC landscape ----- */
@media (min-width: 1200px) and (orientation: landscape) {
  :root {
    --max: 1120px;
    --section-pad: clamp(5rem, 8vw, 7.5rem);
    --space: clamp(1.5rem, 3vw, 3rem);
  }

  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    flex-direction: row;
    gap: clamp(1rem, 2vw, 1.75rem);
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .nav a {
    width: auto;
    padding: 0;
    border: 0;
  }

  .nav-backdrop {
    display: none;
  }

  .hero-content {
    padding-bottom: 4.5rem;
  }

  .story,
  .product,
  .experience {
    grid-template-columns: 1fr 1.05fr;
  }

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

  .experience {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .craft-grid {
    grid-template-columns: 1.35fr 1fr;
  }

  .craft-stack {
    grid-template-columns: 1fr;
  }

  .story-visual {
    order: 0;
  }

  .story-visual img {
    aspect-ratio: 4 / 5;
  }
}

/* Wide desktops without strict landscape (ultrawide / square) */
@media (min-width: 1200px) and (orientation: portrait) {
  :root {
    --max: 980px;
  }
}

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

  .hero-media img,
  .product-shot img,
  .reveal,
  .nav {
    animation: none !important;
    transition: none !important;
  }

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