/* ============================================
   Frames Fotográficos — Hugo Chantre
   Layout minimalista e fotográfico
   ============================================ */

:root {
  --bg: #0e0e0e;
  --bg-alt: #161616;
  --text: #ececea;
  --muted: #8f8f8c;
  --line: #262624;
  --accent: #0090f8;
  --font-heading: "JetBrains Mono", "Consolas", monospace;
  --font-body: "JetBrains Mono", "Consolas", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .01em;
}

strong { font-weight: 500; }

::selection { background: #ececea; color: #0e0e0e; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 26px 0;
  transition: background .3s, padding .3s, color .3s;
}
.site-header.scrolled {
  background: rgba(14, 14, 14, .94);
  backdrop-filter: blur(8px);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.logo img { height: 80px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 34px;
  list-style: none;
  align-items: center;
}
.main-nav a {
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  opacity: .7;
  transition: opacity .2s, color .2s;
  padding: 4px 0;
}
.main-nav a:hover { opacity: 1; }
.main-nav a.active { color: var(--accent); opacity: 1; }

/* Header branco sobre a fotografia do hero (homepage) */
body.home .site-header:not(.scrolled) { color: #fff; }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.whatsapp-btn svg { width: 20px; height: 20px; fill: #fff; }
.whatsapp-btn:hover { background: #0077d0; transform: scale(1.08); }

/* Botão "ir para cima" */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #0090f8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: #0077d0; }
.back-to-top svg { width: 20px; height: 20px; fill: #fff; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
}

/* ---------- Hero (fotografia em ecrã inteiro) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, .25) 100%);
}
.hero-content { padding: 0 0 12vh; }
.hero-kicker {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  opacity: .85;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 300;
  margin-bottom: 16px;
}
.hero h1 em { font-style: italic; }
.hero-sub {
  font-size: .95rem;
  letter-spacing: .04em;
  opacity: .85;
  max-width: 52ch;
  margin-bottom: 40px;
}

/* ---------- Hero: retrato em losango + headline ---------- */
.hero-photo {
  background: #0d0d0d url("../img/hero-retrato.png") left center / cover no-repeat;
  overflow: hidden;
}
.hero-photo::after { content: none; }

.hero-intro {
  position: absolute;
  right: 6vw;
  top: 56vh;
  z-index: 1;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 300;
  line-height: 1.75;
}
.hero-intro strong { color: var(--accent); font-weight: 600; }

.hero-headline {
  position: absolute;
  bottom: 2vh;
  left: 0;
  width: 100%;
  z-index: 1;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(3rem, 9.5vw, 10rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  white-space: nowrap;
  opacity: 1;
  transition: opacity .5s ease;
}
.hero-headline.fade-out { opacity: 0; }
.hero-headline span { color: var(--accent); }

.hero-whatsapp {
  position: absolute;
  left: 3vw;
  bottom: 4vh;
  z-index: 2;
  width: 46px;
  height: 46px;
}
.hero-whatsapp svg { width: 24px; height: 24px; }

.hero-follow {
  position: absolute;
  right: 2.2vw;
  bottom: 4vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.follow-label {
  writing-mode: vertical-rl;
  font-size: .7rem;
  letter-spacing: .22em;
  color: var(--muted);
}
.follow-label::after {
  content: "";
  display: block;
  width: 1px;
  height: 46px;
  margin: 14px auto 0;
  background: var(--muted);
}
.hero-follow a svg {
  width: 15px;
  height: 15px;
  fill: #fff;
  opacity: .75;
  transition: opacity .2s, fill .2s;
}
.hero-follow a:hover svg { opacity: 1; fill: var(--accent); }

/* ---------- Botões / links de ação ---------- */
.btn {
  display: inline-block;
  padding: 14px 38px;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .25em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.hero .btn:hover, .hero .btn-primary { background: #fff; color: #1a1a1a; border-color: #fff; }
.hero .btn-primary:hover { background: transparent; color: #fff; }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: transparent; color: var(--text); }
.btn-ghost { margin-left: 14px; }

/* Link discreto com sublinhado */
.text-link {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  border-bottom: 1px solid var(--text);
  padding-bottom: 5px;
  transition: opacity .2s;
}
.text-link:hover { opacity: .5; }

/* ---------- Secções ---------- */
.section { padding: 130px 0; }
.section.alt { background: var(--bg-alt); }

.section-head { max-width: 620px; margin: 0 auto 80px; text-align: center; }
.section-head .kicker {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--muted);
  margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: .92rem; }

/* Cabeçalho das páginas interiores */
.page-hero {
  padding: 170px 0 30px;
  text-align: center;
}
.page-hero + .section { padding-top: 50px; }
.page-hero h1,
.page-hero .page-hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 300;
  margin-bottom: 14px;
}
.breadcrumb {
  color: var(--muted);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .25em;
}
.breadcrumb a:hover { color: var(--text); }

/* ---------- Avaliações ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.review-card {
  padding: 56px 48px;
  border-bottom: 1px solid var(--line);
}
.review-card:nth-child(odd) { border-right: 1px solid var(--line); }
.review-card .stars {
  color: #0090f8;
  letter-spacing: .35em;
  font-size: .8rem;
  margin-bottom: 20px;
}
.review-card p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 24px;
}
.review-card .author {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: #0090f8;
}

/* ---------- Formulários (linhas simples) ---------- */
.form-card { max-width: 760px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--muted);
  margin-bottom: 10px;
}
.field label .req { color: #0090f8; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding: 10px 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .95rem;
  transition: border-color .25s;
  border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--text);
}
.field ::placeholder { color: #55554f; }
.field textarea { min-height: 110px; resize: vertical; }

fieldset.choices { border: none; padding: 0; }
fieldset.choices legend {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--muted);
  margin-bottom: 14px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: .92rem;
  color: var(--text);
  transition: opacity .2s;
}
.choice:hover { opacity: .6; }
.choice input { accent-color: #ececea; margin-top: 6px; flex-shrink: 0; }

.form-note { color: var(--muted); font-size: .78rem; margin-top: 28px; letter-spacing: .04em; }
.form-success {
  display: none;
  border: 1px solid var(--text);
  padding: 16px 20px;
  margin-top: 24px;
  font-size: .85rem;
  letter-spacing: .04em;
}
.form-success.show { display: block; }

/* ---------- Shop ---------- */
.product-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 54px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}
.product-image { position: relative; max-width: 360px; }
.product-image img { width: 100%; border: 1px solid var(--line); }
.badge-sale {
  position: absolute;
  top: 0; left: 0;
  background: var(--accent);
  color: #fff;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .25em;
  padding: 6px 13px;
}
.product-info h1 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 500;
  margin-bottom: 12px;
}
.price { font-size: 1.15rem; margin: 4px 0 20px; letter-spacing: .04em; }
.price .old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: .85rem;
  margin-right: 12px;
}
.price .current { color: var(--accent); font-weight: 700; }
.product-info ul.features {
  list-style: none;
  margin: 0 0 26px;
  border-top: 1px solid var(--line);
}
.product-info ul.features li {
  padding: 10px 0;
  font-size: .85rem;
  border-bottom: 1px solid var(--line);
}
.product-info .app-icon {
  display: block;
  width: 44px;
  height: auto;
  margin-bottom: 14px;
}
.product-meta {
  margin-top: 24px;
  color: var(--muted);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.product-meta span { color: var(--text); }

/* ---------- Contactos ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
  align-items: start;
}
.info-card h3 { font-size: 2rem; margin-bottom: 20px; font-weight: 300; }
.info-card > p { color: var(--muted); font-size: .92rem; margin-bottom: 36px; }
.info-line {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}
.info-line strong {
  color: var(--text);
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-weight: 400;
  margin-bottom: 4px;
}
.info-line a:hover { opacity: .5; }

.socials { display: flex; gap: 22px; margin-top: 36px; }
.socials a { opacity: .45; transition: opacity .25s; }
.socials a:hover { opacity: 1; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Faixa CTA ---------- */
.cta-band {
  text-align: center;
  padding: 130px 0;
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 16px; }
.cta-band p { color: var(--muted); font-size: .92rem; margin-bottom: 40px; }
.cta-band a:not(.btn) { border-bottom: 1px solid var(--text); color: var(--text); }

/* ---------- Rodapé ---------- */
.site-footer, .home-footer {
  text-align: center;
  color: #575753;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.site-footer .heart, .home-footer .heart { color: #0090f8; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    color: var(--text);
    transform: translateX(100%);
    transition: transform .35s;
    padding: 120px 10%;
    display: flex;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 26px; }
  .main-nav a { font-size: .85rem; opacity: .8; }
  body.home .site-header:not(.scrolled) .main-nav { color: var(--text); }
}

@media (max-width: 900px) {
  .section { padding: 90px 0; }
  .hero-photo {
    display: block;
    padding: 110px 6vw 50px;
    background-size: contain;
    background-position: left top 90px;
  }
  .hero-intro { position: static; margin-top: 44vw; margin-bottom: 36px; }
  .hero-headline {
    position: static;
    text-align: left;
    font-size: clamp(2.4rem, 11vw, 4.5rem);
    white-space: normal;
  }
  .hero-whatsapp { position: static; margin-top: 36px; display: inline-flex; }
  .hero-follow {
    position: static;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
  }
  .follow-label { writing-mode: horizontal-tb; }
  .follow-label::after { display: none; }
  .hero-follow a svg { width: 19px; height: 19px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { padding: 44px 8px; }
  .review-card:nth-child(odd) { border-right: none; }
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
  .product-layout { grid-template-columns: 1fr; gap: 48px; }
  .form-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .btn-ghost { margin-left: 0; margin-top: 14px; }
  .hero-content { padding-bottom: 14vh; }
}
