/* ============================================================
   701 Harbour Terrace Condominium Association
   Shared stylesheet — built to 701harbour-design-spec.md
   ============================================================ */

:root {
  --navy:        #0C3D6B;  /* Nav / header / links */
  --teal:        #1A7A8A;  /* Hero / accent / hover */
  --offwhite:    #F5F7FA;  /* Page background */
  --charcoal:    #2C2C2A;  /* Body text */
  --lightteal:   #E8F4F6;  /* Alt section background */
  --white:       #FFFFFF;
  --maxwidth:    900px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 18px;          /* 18px minimum body size */
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.3;
}
h1 { font-size: 36px; font-weight: 700; margin-bottom: 0.5em; }
h2 { font-size: 28px; font-weight: 700; margin-bottom: 0.5em; }
h3 { font-size: 22px; font-weight: 600; margin-bottom: 0.4em; }

p  { margin-bottom: 1.1em; }

/* ---------- Links ---------- */
a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;   /* all links underlined */
}
a:hover, a:focus { color: var(--teal); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 48px;            /* guarantees clear space between logo and links */
  min-height: 72px;
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 10px 24px 10px 0; /* extra breathing room to the right of the logo */
  flex: none;
}
.nav-brand:hover { color: inherit; }
.nav-logo-desktop { height: 40px; width: auto; display: block; }
.nav-logo-mobile  { height: 44px; width: auto; display: none; }

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 4px;
}
.nav-links a {
  display: block;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding: 8px 10px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a:focus { color: var(--white); border-bottom-color: var(--teal); }
.nav-links a.active { color: var(--white); border-bottom-color: var(--teal); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 6px;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}

/* ============================================================
   HERO / IMAGE SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 360px;
  max-height: 560px;
  overflow: hidden;
  background: var(--navy);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 5;
}
.hero-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
}
.hero-dot.active { background: var(--white); }

/* ============================================================
   PAGE SECTIONS
   ============================================================ */
.section {
  padding: 48px 20px;
}
.section.alt { background: var(--lightteal); }

.container {
  max-width: var(--maxwidth);
  margin: 0 auto;
}

/* Teal accent band (page intro) */
.accent-band {
  background: var(--teal);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}
.accent-band h1 { color: var(--white); margin-bottom: 0; }

/* ---------- Document / PDF lists ---------- */
.doc-list { list-style: none; margin: 18px 0; }
.doc-list li {
  border-bottom: 1px solid #d9e2ea;
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.doc-list li:first-child { border-top: 1px solid #d9e2ea; }

/* Title link — opens a preview in a new tab */
.doc-link {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 16px 6px;
  text-decoration: none;
}
.doc-link .doc-title { text-decoration: underline; }
.doc-link:hover { background: var(--lightteal); }

/* Download arrow — saves the file directly */
.doc-download {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 14px;
  text-decoration: none;
  font-weight: 700;
}
.doc-download .doc-icon { font-size: 20px; line-height: 1; }
.doc-download:hover { background: var(--lightteal); }

.note { font-style: italic; color: #55606a; }

/* In-content bullet lists (e.g. Privacy Policy) */
.container ul:not(.doc-list) {
  margin: 0 0 1.1em 1.4em;
  padding-left: 1em;
}
.container ul:not(.doc-list) li { margin-bottom: 0.4em; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.info-block { margin-bottom: 28px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 8px;
}

form.contact-form { margin-top: 6px; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-row .req { color: #b0241c; }
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 18px;
  padding: 12px 14px;
  border: 1px solid #b9c4ce;
  border-radius: 6px;
  background: var(--white);
  color: var(--charcoal);
}
.form-row textarea { min-height: 150px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }

.btn-submit {
  background: var(--navy);
  color: var(--white);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.btn-submit:hover, .btn-submit:focus { background: var(--teal); }

.privacy-note { margin-top: 16px; font-size: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 28px 20px;
  font-size: 14px;
}
.site-footer a { color: var(--white); font-weight: 600; }
.site-footer a:hover { color: var(--lightteal); }
.site-footer p { margin-bottom: 6px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav-logo-desktop { display: none; }
  .nav-logo-mobile  { display: block; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 22px;
    border-bottom: none;
    border-left: 4px solid transparent;
  }
  .nav-links a:hover,
  .nav-links a.active { border-bottom: none; border-left-color: var(--teal); }

  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
}
