/* Albufeira Prime 32 — static site styles */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }

:root {
  --teal: #1a6c7a;
  --teal-dark: #135561;
  --navy: #153243;
  --ink: #2b3138;
  --muted: #5b6670;
  --pale: #f3f9fb;
  --line: #dbe8eb;
  --white: #ffffff;
  --radius: 10px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; font-weight: 700; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
p { margin: 0 0 1em; }
address { font-style: normal; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid #f2c94c; outline-offset: 2px; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 34px; width: auto; }
.site-header nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.site-header nav a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-header nav a:hover { background: var(--pale); }
.site-header nav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
@media (max-width: 560px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 10px; padding-bottom: 6px; }
  .brand img { height: 28px; }
  .site-header nav a { padding: 6px 10px 6px 0; margin-right: 10px; font-size: 0.9rem; }
  .site-header { position: static; }
}

/* buttons */
.btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; text-align: center; }
.btn-solid { background: var(--teal); color: var(--white); }
.btn-solid:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--pale); color: var(--navy); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--navy); }
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img img { object-fit: cover; object-position: 42% 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,50,67,0.15) 0%, rgba(21,50,67,0.35) 40%, rgba(21,50,67,0.88) 100%); }
.hero-text { position: relative; padding-top: 120px; padding-bottom: 56px; max-width: 820px; margin-left: max(0px, calc((100vw - var(--wrap)) / 2)); }
.hero h1 { color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.hero .lede { font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem); max-width: 640px; text-shadow: 0 1px 10px rgba(0,0,0,0.35); }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 560px) {
  .hero { min-height: 78vh; }
  .hero-text { padding-top: 90px; padding-bottom: 36px; }
  .hero .cta .btn { flex: 1 1 100%; }
}

/* intro */
.intro { padding-top: 64px; padding-bottom: 56px; max-width: 860px; }
.facts { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 24px; }
.facts li { padding-left: 28px; position: relative; font-weight: 600; color: var(--navy); }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }

/* gallery */
.gallery-band { background: var(--pale); padding: 56px 0 64px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 999px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .gallery { grid-template-columns: 1fr; gap: 18px; } }
.gallery figure { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(21,50,67,0.06), 0 6px 20px rgba(21,50,67,0.06); height: 100%; }
.g-link { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.g-link picture, .g-link img { width: 100%; height: 100%; }
.g-link img { object-fit: cover; transition: transform .35s ease; }
.g-link:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 12px 16px 14px; font-weight: 600; color: var(--navy); font-size: 0.95rem; }

.closing { padding-top: 56px; padding-bottom: 72px; text-align: center; max-width: 720px; }
.closing .cta { justify-content: center; }

/* inner pages */
.page-head { padding-top: 56px; padding-bottom: 20px; max-width: 860px; }
.lede { font-size: 1.1rem; }
.muted { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 72px; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }
.card { background: var(--pale); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card h2 { font-size: 1.2rem; }
.card .mt { margin-top: 1.4em; }
.big { font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.big a { text-decoration: none; }
.prose { max-width: 760px; padding-bottom: 72px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.todo { background: #fff3c4; padding: 0 4px; }

/* footer */
.site-footer { background: var(--navy); color: #d9e6ea; padding: 44px 0 18px; }
.site-footer a { color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-logo { height: 30px; width: auto; filter: invert(1) brightness(2); margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.copyright { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: #a9bfc7; }

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(8,20,28,0.94); color: #fff; }
.lightbox::backdrop { background: rgba(8,20,28,0.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: calc(100vw - 120px); max-height: calc(100vh - 40px); display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { padding-top: 12px; font-weight: 600; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) {
  .lightbox figure { max-width: 100vw; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
