@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

:root {
  --navy:     #153043;
  --navy-dk:  #0d1f2d;
  --navy-lt:  #1e4a6b;
  --ocean:    #1a7fa8;
  --sky:      #e4f2f7;
  --sand:     #c8a96e;
  --sand-lt:  #f5eed8;
  --white:    #ffffff;
  --light:    #f2f6f8;
  --text:     #1a2e3b;
  --muted:    #6b7c88;
  --border:   #d5e0e6;
  --radius:   10px;
  --shadow:   0 2px 14px rgba(21,48,67,0.10);
  --shadow-md:0 4px 24px rgba(21,48,67,0.14);
}

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

body {
  font-family: 'Lato', system-ui, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--ocean); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── NAV ── */
nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-logo img { width: 32px; height: 32px; border-radius: 50%; }

.nav-links {
  display: flex;
  gap: 0.2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  text-decoration: none;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: white;
  font-size: 1.5rem;
  line-height: 1;
}

/* ── HERO ── */
.hero {
  position: relative;
  background: url('images/header_peka_1800x848.png') center center / cover no-repeat;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,31,45,0.72) 0%, rgba(21,48,67,0.50) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  color: white;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.92;
  margin-bottom: 1.8rem;
  max-width: 540px;
  font-weight: 300;
}

.subscribe-box {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  max-width: 460px;
}

.subscribe-box p {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.subscribe-box form {
  display: flex;
  gap: 0.5rem;
}

.subscribe-box input[type="email"] {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  border: none;
  font-size: 0.95rem;
  outline: none;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--sand);
  color: var(--navy-dk);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn:hover { background: #d4b578; text-decoration: none; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--sand);
  color: var(--sand);
}

.btn-outline:hover { background: var(--sand); color: var(--navy-dk); }

.btn-navy {
  background: var(--navy);
  color: white;
}

.btn-navy:hover { background: var(--navy-lt); }

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.section {
  padding: 3rem 1.2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 1.8rem;
  font-size: 0.97rem;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  border: 1px solid var(--border);
}

.card-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

/* ── CONDITIONS ── */
.conditions-strip {
  background: var(--navy);
  color: white;
  padding: 0.5rem 0;
}

.conditions-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.cond-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.cond-item .label { opacity: 0.65; font-size: 0.8rem; }

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.cond-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--ocean);
}

.cond-card.featured {
  grid-column: span 2;
  border-top-color: var(--navy);
}

.cond-card .big-val {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  margin: 0.3rem 0;
}

.cond-card .big-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.cond-card .desc {
  color: var(--muted);
  font-size: 0.9rem;
}

.cond-detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 0.7rem;
  padding-top: 0.7rem;
}

.forecast-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.forecast-day {
  text-align: center;
  flex: 1;
}

.forecast-day .day-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.forecast-day .day-icon { font-size: 1.4rem; margin: 0.2rem 0; }

.forecast-day .day-temp {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.forecast-day .day-low { color: var(--muted); font-weight: 400; }

.loading { color: var(--muted); font-size: 0.9rem; font-style: italic; }
.error-msg { color: #c0392b; font-size: 0.88rem; }

/* status dot */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.status-dot.online { background: #27ae60; }
.status-dot.offline { background: #e74c3c; }

/* ── TIDE WIDGET ── */
.tide-times { margin-top: 0.5rem; }
.tide-entry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.tide-arrow { font-size: 1.1rem; }

/* ── LINK CARDS (surf, swimguide etc) ── */
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.ext-link {
  color: var(--ocean);
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.85rem;
}

.ext-link::after { content: ' ↗'; }

/* ── NOTICE BOARD ── */
.notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.notice-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--ocean);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.notice-card.lost-found { border-left-color: #e74c3c; }
.notice-card.for-sale   { border-left-color: #27ae60; }
.notice-card.free       { border-left-color: var(--sand); }
.notice-card.wanted     { border-left-color: #9b59b6; }
.notice-card.general    { border-left-color: var(--ocean); }

.notice-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  background: var(--sky);
  color: var(--navy);
}

.notice-title { font-weight: 700; margin-bottom: 0.3rem; font-size: 1rem; }
.notice-body  { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.notice-meta  { font-size: 0.78rem; color: var(--muted); margin-top: 0.6rem; }

/* ── EVENTS ── */
.events-list { display: flex; flex-direction: column; gap: 1rem; }

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.event-date-box {
  background: var(--navy);
  color: white;
  border-radius: 8px;
  text-align: center;
  padding: 0.6rem 0.9rem;
  min-width: 58px;
  flex-shrink: 0;
}

.event-date-box .month {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.event-date-box .day {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.event-info h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.event-info p  { font-size: 0.88rem; color: var(--muted); }
.event-info .event-venue { font-size: 0.82rem; color: var(--ocean); margin-top: 0.3rem; }

.powered-by {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1rem;
  text-align: right;
}

.powered-by a { color: var(--muted); }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.fact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.fact-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.fact-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.4rem; }
.fact-card p  { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }

/* ── INFO ── */
.info-section { margin-bottom: 2.5rem; }
.info-section h2 {
  font-size: 1.2rem;
  color: var(--navy);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.mp-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.mp-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.mp-detail h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.mp-detail .electorate { color: var(--ocean); font-size: 0.88rem; margin-bottom: 0.5rem; }
.mp-detail p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.2rem; }

.alert-box {
  background: var(--sand-lt);
  border: 1px solid var(--sand);
  border-left: 4px solid var(--sand);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  color: #7a5a1e;
  margin-top: 0.8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-card h4 { font-size: 0.9rem; color: var(--navy); margin-bottom: 0.3rem; }
.contact-card p, .contact-card a { font-size: 0.88rem; color: var(--muted); }

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.04); }

/* ── FOOTER ── */
footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 1.2rem;
  margin-top: 4rem;
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-col h4 { color: white; margin-bottom: 0.7rem; font-size: 0.9rem; }
.footer-col p, .footer-col li { margin-bottom: 0.3rem; }
.footer-col a { color: rgba(255,255,255,0.55); }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-col ul { list-style: none; }

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* ── UTILITY ── */
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.text-navy   { color: var(--navy); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  background: var(--sky);
  color: var(--ocean);
  margin-bottom: 0.5rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 58px; left: 0; right: 0; background: var(--navy); padding: 0.5rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 1rem; }
  .nav-hamburger { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .cond-card.featured { grid-column: span 1; }
  .mp-card { flex-direction: column; }
  .hero { min-height: 320px; }
  .subscribe-box form { flex-direction: column; }
  .event-card { flex-direction: column; gap: 0.8rem; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .forecast-row { gap: 0.2rem; }
  .forecast-day .day-name { font-size: 0.68rem; }
}
