/* ===== Cegonha — página institucional ===== */
:root {
  --cream: #FBF5EE;
  --cream-2: #F4EADC;
  --card: #FFFDFA;
  --taupe: #CBBBAB;
  --taupe-soft: #E5D9CB;
  --ink: #4E3A27;
  --ink-soft: #8A7460;
  --accent: #F2A055;
  --accent-soft: #FCE3C6;
  --heading-font: "Baloo 2", sans-serif;
  --body-font: "Nunito", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  text-wrap: pretty;
}

h1, h2, h3 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

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

.wrap {
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--cream) 88%, white);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--taupe-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { height: 38px; width: auto; }
.brand strong {
  font-family: var(--heading-font);
  font-size: 22px;
  letter-spacing: 0.01em;
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--ink); }

@media (max-width: 760px) {
  .site-header .wrap {
    flex-wrap: wrap;
    row-gap: 2px;
    padding: 12px 8px 12px;
    min-height: 0;
  }
  .brand img { height: 32px; }
  .brand strong { font-size: 20px; }
  .site-nav {
    order: 2;
    width: 100%;
    margin-left: 0;
    padding-top: 4px;
  }
  .site-nav a { font-size: 14px; padding: 6px 9px; }
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(620px 320px at 85% 0%, var(--accent-soft) 0%, transparent 70%),
    var(--cream);
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}
.hero-logo { width: min(420px, 78vw); height: auto; }
.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: 0.01em;
}
.hero .tagline {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink-soft);
  max-width: 34ch;
  font-weight: 600;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.badge {
  background: var(--card);
  border: 1.5px solid var(--taupe-soft);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 999px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

/* split variant */
body[data-hero="split"] .hero .wrap {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  text-align: left;
  justify-items: start;
  gap: 32px;
}
body[data-hero="split"] .hero-logo { grid-column: 2; grid-row: 1 / span 5; justify-self: end; }
body[data-hero="split"] .hero h1,
body[data-hero="split"] .hero .tagline { grid-column: 1; }
body[data-hero="split"] .hero-badges,
body[data-hero="split"] .hero-cta { grid-column: 1; justify-content: flex-start; }
@media (max-width: 720px) {
  body[data-hero="split"] .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  body[data-hero="split"] .hero-logo { grid-column: 1; grid-row: auto; justify-self: center; }
  body[data-hero="split"] .hero-badges,
  body[data-hero="split"] .hero-cta { justify-content: center; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body-font);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in oklab, var(--accent) 40%, transparent);
}
.btn-primary:hover { box-shadow: 0 6px 18px color-mix(in oklab, var(--accent) 55%, transparent); }
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--taupe);
}
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ===== Sections ===== */
section { padding: 64px 0; }
.section-alt { background: var(--cream-2); }
.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-head h2 { font-size: clamp(28px, 4.5vw, 40px); }
.section-head p {
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 52ch;
  margin: 6px auto 0;
}

/* ===== Cards: o que vendemos ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1.5px solid var(--taupe-soft);
  border-radius: 24px;
  padding: 16px;
  display: grid;
  gap: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(78, 58, 39, 0.10);
}
.card image-slot { width: 100%; height: 180px; }
.card h3 { font-size: 22px; padding: 0 8px; }
.card p { color: var(--ink-soft); font-size: 15.5px; padding: 0 8px 8px; }

/* ===== Marcas ===== */
.brand-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.brand-chips span {
  background: var(--card);
  border: 1.5px dashed var(--taupe);
  color: var(--ink-soft);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
}
.note {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 18px;
  font-style: italic;
}

/* ===== Galeria ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery image-slot { width: 100%; aspect-ratio: 1; height: auto; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Quem somos ===== */
.about {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}
.about image-slot,
.about .about-foto {
  width: 280px;
  height: 280px;
}
.about .about-foto {
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--card);
  box-shadow: 0 10px 30px rgba(78, 58, 39, 0.18);
}
.about h2 { font-size: clamp(28px, 4.5vw, 40px); margin-bottom: 12px; }
.about p { color: var(--ink-soft); font-weight: 600; margin-bottom: 12px; }
.about-quote {
  margin-top: 18px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}
.about-quote p {
  font-family: var(--heading-font);
  font-style: italic;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 4px;
}
.about-quote cite {
  color: var(--ink-soft);
  font-weight: 700;
  font-style: normal;
  font-size: 14px;
}
@media (max-width: 720px) {
  .about { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about image-slot,
  .about .about-foto { width: min(260px, 70vw); height: min(260px, 70vw); }
}

/* ===== Contactos ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--card);
  border: 1.5px solid var(--taupe-soft);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: center;
}
.contact-card h3 { font-size: 20px; margin-bottom: 6px; }
.contact-card a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  font-size: 18px;
}
.contact-card a:hover { color: var(--accent); }
.contact-card .sub { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.hours-table {
  display: grid;
  gap: 4px;
  justify-items: center;
}
.hours-table div {
  display: flex;
  gap: 12px;
  font-weight: 700;
}
.hours-table .closed { color: var(--ink-soft); }

/* ===== Localização ===== */
.map-card {
  background: var(--card);
  border: 1.5px solid var(--taupe-soft);
  border-radius: 24px;
  overflow: hidden;
}
.map-card iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}
.map-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
}
.map-meta address {
  font-style: normal;
  font-weight: 700;
  flex: 1;
  min-width: 220px;
}
.map-meta address span { display: block; color: var(--ink-soft); font-weight: 600; font-size: 15px; }

/* ===== Redes sociais (dentro de Contactos) ===== */
.social-strip {
  background: var(--accent-soft);
  border-radius: 24px;
  text-align: center;
  margin-top: 20px;
  padding: 36px 24px;
}
.social-strip h3 { font-size: clamp(22px, 3.2vw, 28px); }
.social-strip p {
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 6px;
}
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.social-strip .note { margin-top: 14px; }
.btn-social {
  background: var(--card);
  color: var(--ink);
  border-color: var(--taupe);
  font-size: 17px;
  padding: 14px 30px;
}
.btn-social:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(78, 58, 39, 0.12);
}
.btn-social svg { flex-shrink: 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 40px 0 32px;
}
.site-footer .wrap {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}
.site-footer .brand { color: var(--cream); }
.site-footer .brand img { height: 44px; }
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 18px;
  border: 1.5px solid color-mix(in oklab, var(--cream) 35%, transparent);
  border-radius: 999px;
  transition: background 0.15s;
}
.footer-social a:hover { background: color-mix(in oklab, var(--cream) 15%, transparent); }
.site-footer small { color: color-mix(in oklab, var(--cream) 70%, transparent); font-size: 13px; }
