/* La Perla — matches Serv247's visual design exactly (Jon, 31 Oct): same navy/cream/
   gold palette and Georgia/Verdana typography, pulled from the live serv247.es
   stylesheet. Structure (hero, weather card, fact-sheet, brochure grid, doc-list) is
   what the PHP pages hook into — keep the class names if you change anything further. */

:root {
  --sand: #F3EEE3;      /* page background */
  --card: #FDFBF5;      /* card background */
  --border: #E0D8C6;    /* hairline borders */
  --navy: #1F3A5C;      /* primary text / brand */
  --navy-deep: #16283F; /* footer, hero gradients */
  --muted: #6B7A90;     /* secondary text */
  --body-text: #33475F; /* paragraph text */
  --gold: #B98A3C;      /* accent / links / buttons */
  --gold-deep: #A67A30; /* accent hover */
  --orange: #C2761B;    /* weather temperature */
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Verdana, Geneva, sans-serif;
  color: var(--navy);
  background: var(--sand);
}
h1, h2, .brand { font-family: Georgia, serif; font-weight: normal; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: var(--sand);
  border-bottom: 1px solid var(--border);
}
.site-header .brand {
  color: var(--navy);
  text-decoration: none;
  font-size: 26px;
}
.lang-nav a { color: var(--muted); margin-left: .6rem; text-decoration: none; font-size: 13px; padding: 3px 7px; border-radius: 4px; }
.lang-nav a.active { color: var(--gold); border: 1px solid var(--gold); }

main { max-width: 900px; margin: 0 auto; padding: 48px 40px 5rem; }

.hero {
  background: var(--navy);
  color: var(--sand);
  text-align: center;
  padding: 60px 40px;
  margin: -48px -40px 2rem;
  border-radius: 0;
}
.hero h1 { font-size: 36px; margin-bottom: 14px; }
.hero .tagline { color: #C6CFDC; font-size: 15px; max-width: 620px; margin: 0 auto; line-height: 1.7; }

/* Weather — same gradient card treatment as Serv247 */
.weather { margin-bottom: 2rem; }
.weather h2 { color: var(--navy); font-size: 26px; margin-bottom: .6rem; }
.weather-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  background: linear-gradient(135deg, #FFF7E8 0%, #FCE9C2 46%, #E7F1FB 100%);
  border-radius: 14px;
  padding: 20px 26px;
  border: 1px solid #EAD6A9;
}
.weather-main { display: flex; align-items: center; gap: .9rem; }
.weather-icon { display: flex; width: 58px; height: 58px; }
.weather-temp-block { display: flex; flex-direction: column; gap: 2px; }
.weather-temp { font-family: Georgia, serif; font-size: 40px; color: var(--orange); line-height: 1; }
.weather-desc { color: var(--body-text); font-size: 14px; }
.weather-side { margin-left: auto; text-align: right; color: var(--muted); font-size: 13px; line-height: 1.8; }
.weather-unavailable { color: var(--muted); font-style: italic; }

.fact-sheet {
  width: 420px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fact-sheet h2 { color: var(--navy); font-size: 20px; margin: 0 0 1rem; text-align: center; }
.fact-sheet-table dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; font-size: 13px; }
.fact-sheet-table dt { font-weight: bold; color: var(--gold); }
.fact-sheet-table dd { color: var(--body-text); }

.full-photo { margin-bottom: 2rem; }
.full-photo img, .photo-placeholder {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  background: var(--card);
  color: var(--muted);
}

.sector-plan { text-align: center; margin-bottom: 2rem; }
.sector-plan h2 { color: var(--navy); font-size: 26px; margin-bottom: .6rem; }
.sector-plan img {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.brochures { margin-bottom: 2rem; }
.brochures h2 { color: var(--navy); font-size: 26px; margin-bottom: 1rem; }
.brochure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.brochure-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--navy);
  display: block;
  transition: border-color .15s, box-shadow .15s;
}
.brochure-card:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(31,58,92,.10); }
.brochure-card img, .brochure-thumb-placeholder {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #20507B 0%, #1F3A5C 62%, #173049 100%);
}
.brochure-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card);
}
.brochure-card span { display: block; padding: 16px 18px 18px; font-family: Georgia, serif; font-size: 17px; line-height: 1.4; }
.brochure-reader-thumb { max-width: 240px; border-radius: 8px; border: 1px solid var(--border); margin: 1rem 0; }

.owner-access-cta { text-align: center; margin-bottom: 2rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.button {
  display: inline-block;
  background: var(--gold);
  color: var(--card);
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
}
.button:hover { background: var(--gold-deep); }
.button-secondary { background: var(--navy); }
.button-secondary:hover { background: var(--navy-deep); }

.area-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.area-bar .chip {
  padding: .45rem 1rem;
  border-radius: 6px;
  background: var(--card);
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--border);
  font-size: 14px;
}
.area-bar .chip.active { background: var(--navy); color: var(--sand); border-color: var(--navy); }

.area-panel { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; }
.doc-list { list-style: none; padding-left: 0; }
.doc-list li { padding: .35rem 0; border-bottom: 1px solid var(--border); }
.doc-list a { color: var(--gold); text-decoration: none; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
th { text-align: left; padding: .5rem .6rem; border-bottom: 2px solid var(--border); color: var(--gold); font-weight: normal; }
td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--border); color: var(--body-text); }

.bank-notice-form, .access-form form, .incident-form form {
  display: flex; flex-direction: column; gap: .85rem; max-width: 460px;
}
.bank-notice-form label, .access-form label, .incident-form label {
  display: flex; flex-direction: column; gap: .3rem; font-size: 13px; color: var(--muted);
}
.bank-notice-form input, .bank-notice-form textarea,
.access-form input,
.incident-form input, .incident-form textarea, .incident-form select {
  padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 14px;
}
.bank-notice-form button, .access-form button, .incident-form button {
  align-self: flex-start; background: var(--gold); color: var(--card); border: none;
  padding: 10px 22px; border-radius: 6px; cursor: pointer; font-size: 14px;
}
.bank-notice-form button:hover, .access-form button:hover, .incident-form button:hover { background: var(--gold-deep); }
.incident-form .intro { color: var(--muted); margin-bottom: 1rem; }
.confirm { color: var(--gold); font-weight: bold; }
.error { color: #B3482F; }

.site-footer {
  background: var(--navy-deep);
  color: #9AA9BC;
  text-align: center;
  padding: 20px 40px 26px;
  margin: 2rem -40px -5rem;
  font-size: 12px;
  line-height: 1.8;
}
.site-footer .footer-links { margin-top: .4rem; }
.site-footer a { color: #9AA9BC; }

.reader { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 2rem; }
.doc-text { line-height: 1.6; color: var(--body-text); }
.legal-text h2 { color: var(--gold); font-size: 18px; margin-top: 1.5rem; }
.legal-text p { line-height: 1.8; color: var(--body-text); }

/* Floating contact buttons — pill style matching Serv247's .fab */
.contact-buttons {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  z-index: 50;
}
.contact-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(22,40,63,.30);
  transition: background .15s;
}
.contact-btn.whatsapp { background: #25d366; }
.contact-btn.email { background: var(--navy); }
.contact-btn:hover { background: var(--gold); }

@media (max-width: 640px) {
  main { padding: 2rem 1.2rem 5rem; }
  .hero { margin: -32px -1.2rem 2rem; padding: 2.5rem 1.2rem; }
  .site-footer { margin: 2rem -1.2rem -5rem; }
  .weather-card { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .weather-side { text-align: left; margin-left: 0; }
}
