:root {
  --porto: #2B2420;
  --cabo: #E1DDD4;
  --ivory: #F7F4EE;
  --gold: #A87C45;
  --line: rgba(168, 124, 69, .42);
  --text: #2B2420;
  --max: 1200px;
  --display: 'Playfair Display', Georgia, serif;
  --body: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: 104px 0; }

.hero {
  min-height: 100svh;
  position: relative;
  background: url('assets/hero.jpg') center / cover no-repeat;
  display: grid;
  align-items: start;
  isolation: isolate;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(43,36,32,.46), rgba(43,36,32,.08) 50%, rgba(43,36,32,.20));
  z-index: -1;
}

.hero__topbar {
  position: relative;
  padding-top: 34px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.brand img { 
  width: 210px;
  max-width: 80vw;
  height: auto;
  margin-top: 20px;
  /*padding: 20px;
  background-color: rgba(0,0,0,0.7);*/
}
.language {
  position: absolute;
  top: 30px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  letter-spacing: .18em;
  font-size: 14px;
  margin-top: 8px;
}
.language__button {
  border: 0;
  background: transparent;
  padding: 6px 0;
  color: rgba(255,255,255,.72);
  cursor: pointer;
  position: relative;
}
.language__button.is-active { color: #fff; }
.language__button.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: #fff;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  animation: float 2.2s ease-in-out infinite;
}
.hero__scroll svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@keyframes float { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

.about { background: var(--ivory); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(320px, 44%) 1fr;
  gap: clamp(56px, 7vw, 110px);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: min(100%, 360px);
  aspect-ratio: 3 / 5;
  object-fit: cover;
  margin: 0 auto;

}
.about__line {
  position: absolute;
  top: 15%;
  left: min(82%, 370px);
  width: clamp(85px, 12vw, 180px);
  height: 1px;
  background: var(--gold);
}
.about__content h1,
.contact h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--porto);
}
.about__content h1 {
  margin: 0 0 34px;
  max-width: 760px;
  font-size: clamp(30px, 2.8vw, 50px);
  line-height: 1.06;
}
.about__text { max-width: 760px; }
.about__text p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 22px;
  color: rgba(43,36,32,.86);
}
.about__text p:last-child { margin-bottom: 0; }

.segments {
  background: #FBF9F5;
  border-top: 1px solid rgba(43,36,32,.04);
  border-bottom: 1px solid rgba(43,36,32,.04);
}
.segments__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.segment {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
}
.segment:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 24%;
  bottom: 24%;
  width: 1px;
  background: var(--line);
}
.segment svg,
.contact__links svg {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.segment svg { width: 64px; height: 64px; stroke-width: 1.25; }
.segment img {max-width: 100px;}
.segment span { font-size: 16px; }

.contact {
  padding-top: 82px;
  padding-bottom: 60px;
  background: var(--ivory);
}
.contact__inner { text-align: center; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--gold);
}
.contact h2 {
  margin: 0 0 56px;
  font-size: clamp(30px, 2.8vw, 50px);
}
.contact__links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 780px;
  margin: 0 auto;
}
.contact__links a {
  min-height: 92px;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.contact__links a:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 16%;
  bottom: 16%;
  width: 1px;
  background: var(--line);
}
.contact__links a:hover { transform: translateY(-3px); opacity: .75; }
.contact__links svg { width: 38px; height: 38px; stroke-width: 1.35; }
.contact__links .fill-dot { fill: var(--gold); stroke: none; }

.footer { background: var(--ivory); padding: 0 0 38px; }
.footer__line { height: 1px; background: var(--gold); opacity: .55; }
.footer p {
  margin: 24px 0 0;
  text-align: center;
  font-size: 13px;
  color: rgba(43,36,32,.72);
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 36px), var(--max)); }
  .section { padding: 78px 0; }
  .hero { min-height: 82svh; background-position: 58% center; }
  .hero__topbar { padding-top: 22px; }
  .brand img { width: 170px; }
  .about__grid { grid-template-columns: 1fr; gap: 44px; }
  .about__media { width: min(82%, 480px); margin-inline: auto; }
  .about__media img { width: 100%; }
  .about__line { left: 8%; right: 8%; top: auto; bottom: -22px; width: auto; }
  .about__content { text-align: center; }
  .about__content h1 { margin-inline: auto; font-size: clamp(38px, 8vw, 58px); }
  .about__text { margin-inline: auto; }
  .about__text p { font-size: 16px; line-height: 1.7; }
  .segments__grid { grid-template-columns: repeat(2, 1fr); }
  .segment { min-height: 150px; }
  .segment::after { display: none; }
  .segment:nth-child(odd):not(:last-child) { border-right: 1px solid var(--line); }
  .segment:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .segment:last-child { grid-column: 1 / -1; }
  .contact__links { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .hero { min-height: 74svh; background-position: 62% center; }
  .brand img { width: 150px; }
  .language { font-size: 12px; gap: 9px; }
  .hero__scroll { bottom: 18px; }
  .section { padding: 62px 0; }
  .about__media { width: 88%; }
  .about__content h1 { font-size: 40px; line-height: 1.08; margin-bottom: 26px; }
  .about__text p { font-size: 15px; }
  .segment svg { width: 52px; height: 52px; }
  .segment span { font-size: 14px; }
  .contact { padding-top: 58px; padding-bottom: 36px; }
  .contact h2 { font-size: 42px; margin-bottom: 38px; }
  .contact__links { max-width: 340px; }
  .contact__links a { min-height: 76px; }
  .contact__links svg { width: 32px; height: 32px; }
  .footer p { font-size: 12px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll { animation: none; }
  * { transition: none !important; }
}
