/*
Theme Name: Quinta da Peneda
Theme URI: https://quintadapeneda.pt/
Author: Webil
Description: Tema editorial e leve criado para a Quinta da Peneda.
Version: 1.0.0
Text Domain: quinta-da-peneda
*/

:root {
  --qp-ink: #3f1d19;
  --qp-forest: #682d26;
  --qp-moss: #9b6857;
  --qp-cream: #f3e9e5;
  --qp-paper: #fdfcfc;
  --qp-white: #fdfcfc;
  --qp-muted: #6f5b56;
  --qp-line: rgba(104, 45, 38, .17);
  --qp-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --qp-sans: Inter, "Segoe UI", Arial, sans-serif;
  --qp-container: 1280px;
  --qp-radius: 3px;
  --qp-shadow: 0 18px 50px rgba(104, 45, 38, .11);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--qp-paper); color: var(--qp-ink); font-family: var(--qp-sans); margin: 0; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #b77a60; outline-offset: 4px; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.skip-link:focus { background: var(--qp-white); clip: auto; clip-path: none; height: auto; left: 16px; padding: 12px 18px; top: 16px; width: auto; z-index: 9999; }
.qp-container { margin-inline: auto; max-width: var(--qp-container); padding-inline: 28px; width: 100%; }

.qp-header { background: rgba(253, 252, 252, .96); border-bottom: 1px solid var(--qp-line); position: sticky; top: 0; z-index: 100; }
.admin-bar .qp-header { top: 32px; }
.qp-header__inner { align-items: center; display: grid; gap: 38px; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 92px; }
.qp-brand { align-items: center; display: inline-flex; line-height: 1; text-decoration: none; }
.qp-brand img { display: block; height: auto; max-height: 54px; object-fit: contain; object-position: left center; width: 230px; }
.qp-nav { justify-self: end; }
.qp-nav ul { align-items: center; display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.qp-nav a { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.qp-nav a:hover, .qp-nav .current-menu-item > a { color: var(--qp-moss); }
.qp-header__actions { align-items: center; display: flex; gap: 14px; justify-content: flex-end; }
.qp-menu-toggle { background: transparent; border: 0; color: var(--qp-ink); display: none; height: 44px; padding: 10px; width: 44px; }
.qp-menu-icon { height: 24px; width: 24px; }
.qp-menu-icon--close { display: none; }
.qp-menu-toggle[aria-expanded="true"] .qp-menu-icon--open { display: none; }
.qp-menu-toggle[aria-expanded="true"] .qp-menu-icon--close { display: block; }

.qp-button { align-items: center; background: var(--qp-forest); border: 1px solid var(--qp-forest); color: var(--qp-white); display: inline-flex; font-size: 13px; font-weight: 700; gap: 9px; justify-content: center; letter-spacing: .06em; min-height: 48px; padding: 12px 24px; text-decoration: none; text-transform: uppercase; transition: background .2s ease, color .2s ease, transform .2s ease; }
.qp-button:hover { background: var(--qp-ink); transform: translateY(-2px); }
.qp-button--light { background: var(--qp-cream); border-color: var(--qp-cream); color: var(--qp-ink); }
.qp-button--outline { background: transparent; border-color: currentColor; }
.qp-text-link { border-bottom: 1px solid currentColor; display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; padding-bottom: 7px; text-decoration: none; text-transform: uppercase; }

/*
.qp-eyebrow {
  color: var(--qp-moss);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 22px;
  text-transform: uppercase;
}
*/
/* Temporarily hidden; the markup and original styling above remain available. */
.qp-eyebrow { display: none; }
.qp-display { font-family: var(--qp-serif); font-size: clamp(42px, 5.5vw, 78px); font-weight: 400; letter-spacing: -.035em; line-height: .98; margin: 0 0 28px; }
.qp-heading { font-family: var(--qp-serif); font-size: clamp(36px, 4.4vw, 62px); font-weight: 400; letter-spacing: -.025em; line-height: 1.04; margin: 0 0 26px; }
.qp-heading em, .qp-display em { color: var(--qp-moss); font-weight: 400; }
.qp-lead { color: var(--qp-muted); font-family: var(--qp-serif); font-size: clamp(20px, 2.1vw, 27px); line-height: 1.45; }
.qp-copy { color: var(--qp-muted); font-size: 17px; line-height: 1.8; }
.qp-copy p { margin: 0 0 20px; }

.qp-hero { align-items: flex-end; background: var(--qp-ink); color: var(--qp-white); display: flex; min-height: calc(100vh - 84px); min-height: 680px; overflow: hidden; position: relative; }
.qp-hero__image { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.qp-hero::after { background: linear-gradient(90deg, rgba(63, 29, 25, .82) 0%, rgba(63, 29, 25, .34) 58%, rgba(63, 29, 25, .12) 100%); content: ""; inset: 0; position: absolute; }
.qp-hero__content { max-width: 760px; padding-bottom: clamp(70px, 10vw, 140px); padding-top: 100px; position: relative; z-index: 1; }
.qp-hero .qp-eyebrow { color: #eadbd5; }
.qp-hero .qp-display em { color: #f0ded7; }
.qp-hero p { font-size: 19px; line-height: 1.65; max-width: 510px; }
.qp-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.qp-section { padding-block: clamp(78px, 10vw, 138px); }
.qp-section--cream { background: var(--qp-cream); }
.qp-section--dark { background: var(--qp-ink); color: var(--qp-white); }
.qp-split { align-items: center; display: grid; gap: clamp(50px, 8vw, 110px); grid-template-columns: 1.05fr .95fr; }
.qp-split--reverse { grid-template-columns: .95fr 1.05fr; }
.qp-split__media { min-height: 590px; position: relative; }
.qp-split__media img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.qp-split__copy { max-width: 560px; }
.qp-year { align-items: center; background: var(--qp-white); bottom: -28px; box-shadow: var(--qp-shadow); display: flex; font-family: var(--qp-serif); font-size: 34px; height: 112px; justify-content: center; position: absolute; right: -28px; width: 150px; }

.qp-specialties { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.qp-specialty { background: var(--qp-paper); border: 1px solid var(--qp-line); margin: 0 -1px -1px 0; padding: 38px 34px; }
.qp-specialty__number { color: var(--qp-moss); font-family: var(--qp-serif); font-size: 18px; }
.qp-specialty h3 { font-family: var(--qp-serif); font-size: 30px; font-weight: 400; margin: 42px 0 14px; }
.qp-specialty p { color: var(--qp-muted); line-height: 1.7; margin: 0; }

.qp-quote { margin: auto; max-width: 980px; text-align: center; }
.qp-quote blockquote { font-family: var(--qp-serif); font-size: clamp(34px, 5vw, 66px); letter-spacing: -.025em; line-height: 1.12; margin: 0; }
.qp-quote cite { color: #dbc9c4; display: block; font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: .16em; margin-top: 34px; text-transform: uppercase; }

.qp-gallery-grid { display: grid; gap: 18px; grid-template-columns: 1.2fr .8fr .8fr; }
.qp-gallery-grid a { display: block; min-height: 300px; overflow: hidden; position: relative; }
.qp-gallery-grid a:first-child { grid-row: span 2; }
.qp-gallery-grid img { height: 100%; inset: 0; object-fit: cover; position: absolute; transition: transform .5s ease; width: 100%; }
.qp-gallery-grid a:hover img { transform: scale(1.035); }
.qp-gallery-grid a:first-child { min-height: 618px; }

.qp-cta { align-items: center; display: flex; gap: 50px; justify-content: space-between; }
.qp-cta .qp-heading { color: var(--qp-white); margin-bottom: 0; max-width: 760px; }
.qp-cta .qp-eyebrow { color: #dbc9c4; }

.qp-page-hero { background: var(--qp-cream); padding-block: clamp(80px, 10vw, 130px); }
.qp-page-hero .qp-display { max-width: 920px; }
.qp-page-hero p { max-width: 680px; }
.qp-prose { font-size: 17px; line-height: 1.8; margin-inline: auto; max-width: 820px; padding-block: 80px; }
.qp-prose h2, .qp-prose h3 { font-family: var(--qp-serif); font-weight: 400; line-height: 1.15; }
.qp-prose h2 { font-size: 42px; margin-top: 58px; }
.qp-contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.qp-contact-card { border-top: 1px solid var(--qp-line); padding: 28px 0; }
.qp-contact-card h2 { font-family: var(--qp-serif); font-size: 28px; font-weight: 400; margin: 0 0 14px; }
.qp-contact-card p, .qp-contact-card a { color: var(--qp-muted); line-height: 1.7; }
.qp-contact-card a:hover { color: var(--qp-ink); }
.qp-faq-list { border-top: 1px solid var(--qp-line); margin-top: 50px; }
.qp-faq-list details { border-bottom: 1px solid var(--qp-line); }
.qp-faq-list summary { cursor: pointer; font-family: var(--qp-serif); font-size: clamp(22px, 2.5vw, 30px); list-style: none; padding: 27px 55px 27px 0; position: relative; }
.qp-faq-list summary::-webkit-details-marker { display: none; }
.qp-faq-icon { height: 22px; position: absolute; right: 8px; top: 30px; transition: transform .2s ease; width: 22px; }
.qp-faq-list details[open] .qp-faq-icon { transform: rotate(45deg); }
.qp-faq-list details div { color: var(--qp-muted); line-height: 1.75; max-width: 760px; padding: 0 55px 28px 0; }
.qp-faq-list details p { margin: 0; }
.qp-map { border: 0; min-height: 480px; width: 100%; }
.qp-empty { background: var(--qp-cream); padding: 28px; }

.qp-footer { background: #321713; color: var(--qp-white); padding: 88px 0 28px; }
.qp-footer__grid { display: grid; gap: clamp(44px, 6vw, 92px); grid-template-columns: 1.35fr repeat(3, 1fr); }
.qp-footer__brand { font-family: var(--qp-serif); font-size: 32px; margin-bottom: 34px; }
.qp-footer__tagline { color: #fdfcfc !important; font-family: var(--qp-serif); font-size: 21px; line-height: 1.45 !important; }
.qp-footer h2 { color: #d0a47f; font-size: 11px; letter-spacing: .16em; margin: 8px 0 36px; text-transform: uppercase; }
.qp-footer p, .qp-footer a, .qp-footer button { color: #fdfcfc; }
.qp-footer ul { list-style: none; margin: 0; padding: 0; }
.qp-footer li { margin-bottom: 18px; }
.qp-footer a, .qp-footer__column button { background: none; border: 0; cursor: pointer; font-size: 15px; line-height: 1.45; padding: 0; text-align: left; text-decoration: none; transition: color .2s ease; }
.qp-footer a:hover, .qp-footer button:hover { color: #e0b493; }
.qp-footer__socials { display: flex; gap: 12px; margin-top: 40px; }
.qp-footer__socials a { align-items: center; border: 1px solid rgba(253,252,252,.5); display: flex; height: 38px; justify-content: center; width: 38px; }
.qp-footer__socials svg { height: 19px; stroke-width: 1.7; width: 19px; }
.qp-footer__column a .qp-icon, .qp-text-link .qp-icon { height: 15px; margin-left: 4px; vertical-align: -2px; width: 15px; }
.qp-footer__rule { border-top: 1px solid rgba(253,252,252,.23); margin-top: 94px; }
.qp-footer__bottom { align-items: flex-end; display: flex; gap: 50px; justify-content: space-between; padding-top: 34px; }
.qp-footer__bottom p { color: #d7c7c2; font-size: 12px; margin: 0; }
.qp-footer__support-logo { align-items: center; display: flex; justify-content: flex-end; min-height: 66px; min-width: 320px; }
.qp-footer__support-logo img { height: auto; max-height: 56px; max-width: min(380px, 38vw); object-fit: contain; object-position: right center; width: auto; }
.qp-info-modal { background: var(--qp-paper); border: 0; color: var(--qp-ink); margin: auto; max-height: min(760px, calc(100vh - 48px)); max-width: 720px; padding: 0; width: calc(100% - 40px); }
.qp-info-modal::backdrop { backdrop-filter: blur(4px); background: rgba(43, 18, 15, .84); }
.qp-info-modal__inner { max-height: min(760px, calc(100vh - 48px)); overflow-y: auto; padding: clamp(38px, 7vw, 72px); }
.qp-info-modal__inner h2 { font-family: var(--qp-serif); font-size: clamp(34px, 5vw, 52px); font-weight: 400; line-height: 1.05; margin: 0 50px 30px 0; }
.qp-info-modal__content { color: var(--qp-muted); font-size: 16px; line-height: 1.75; }
.qp-info-modal__content h3 { color: var(--qp-ink); font-family: var(--qp-serif); font-size: 23px; font-weight: 400; margin: 30px 0 8px; }
.qp-info-modal__content p { margin: 0 0 18px; }
.qp-info-modal__close { align-items: center; background: transparent; border: 1px solid var(--qp-line); color: var(--qp-ink); cursor: pointer; display: flex; height: 44px; justify-content: center; position: absolute; right: 22px; top: 22px; width: 44px; z-index: 2; }
.qp-info-modal__close .qp-icon, .qp-lightbox__close .qp-icon { height: 20px; width: 20px; }

.qp-lightbox { align-items: center; background: rgba(43, 18, 15, .95); border: 0; display: none; height: 100%; inset: 0; justify-content: center; margin: 0; max-height: none; max-width: none; padding: 70px; position: fixed; width: 100%; z-index: 1000; }
.qp-lightbox[open] { display: flex; }
.qp-lightbox img { max-height: calc(100vh - 140px); max-width: min(1100px, 100%); object-fit: contain; }
.qp-lightbox__close { align-items: center; background: var(--qp-white); border: 0; color: var(--qp-ink); cursor: pointer; display: flex; height: 44px; justify-content: center; position: absolute; right: 24px; top: 24px; width: 44px; }

@media (max-width: 980px) {
  .qp-header__inner { grid-template-columns: 1fr auto; min-height: 74px; }
  .qp-header__actions .qp-button { display: none; }
  .qp-menu-toggle { display: block; }
  .qp-nav { background: var(--qp-paper); border-top: 1px solid var(--qp-line); display: none; inset: 74px 0 auto; min-height: calc(100vh - 74px); padding: 36px 28px; position: fixed; }
  .qp-nav.is-open { display: block; }
  .qp-nav ul { align-items: flex-start; flex-direction: column; gap: 0; }
  .qp-nav li { border-bottom: 1px solid var(--qp-line); width: 100%; }
  .qp-nav a { display: block; font-family: var(--qp-serif); font-size: 30px; font-weight: 400; padding: 18px 0; text-transform: none; }
  .qp-split, .qp-split--reverse { gap: 55px; grid-template-columns: 1fr; }
  .qp-split--reverse .qp-split__media { order: -1; }
  .qp-specialties { grid-template-columns: 1fr 1fr; }
  .qp-footer__grid { grid-template-columns: 1fr 1fr; }
  .qp-footer__intro { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .admin-bar .qp-header { top: 46px; }
  .qp-container { padding-inline: 20px; }
  .qp-hero { min-height: 650px; }
  .qp-hero::after { background: linear-gradient(0deg, rgba(63,29,25,.86), rgba(63,29,25,.18)); }
  .qp-hero__actions .qp-button { width: 100%; }
  .qp-split__media { min-height: 430px; }
  .qp-year { bottom: -20px; right: -8px; }
  .qp-specialties { grid-template-columns: 1fr; }
  .qp-specialty h3 { margin-top: 25px; }
  .qp-gallery-grid { grid-template-columns: 1fr 1fr; }
  .qp-gallery-grid a, .qp-gallery-grid a:first-child { min-height: 240px; }
  .qp-gallery-grid a:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 430px; }
  .qp-cta { align-items: flex-start; flex-direction: column; }
  .qp-contact-grid, .qp-footer__grid { grid-template-columns: 1fr; }
  .qp-footer__intro { grid-column: auto; }
  .qp-footer__rule { margin-top: 60px; }
  .qp-footer__bottom { align-items: flex-start; flex-direction: column; }
  .qp-footer__support-logo { justify-content: flex-start; min-width: 0; }
  .qp-footer__support-logo img { object-position: left center; }
  .qp-lightbox { padding: 60px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
