/* ============================================================
   Odd Fellow Logen nr 5 Grankulla – Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #0d1108;
  --bg-alt:      #141a0d;
  --bg-card:     #1a2213;
  --gold:        #c8a96e;
  --gold-light:  #dfc08a;
  --gold-dim:    rgba(200,169,110,0.15);
  --text:        #e0d8c6;
  --text-muted:  #8a8272;
  --border:      rgba(200,169,110,0.2);
  --ff-display:  'Playfair Display', Georgia, serif;
  --ff-body:     'Lora', Georgia, serif;
  --max:         1160px;
  --radius:      4px;
  --transition:  0.3s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Utility ────────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.text-gold  { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── Navigation ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,17,8,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.nav-logo span { display: block; font-size: 0.72rem; color: var(--text-muted); font-family: var(--ff-body); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--ff-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--gold); }

.nav-cta {
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--gold);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.75rem 2rem; }
  .nav-cta { margin: 0.5rem 2rem; display: inline-block; }
}

/* ── Page Hero (shared) ─────────────────────────────────────── */
.page-hero {
  padding: 5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 0%, rgba(200,169,110,0.07) 0%, transparent 70%);
}
.page-hero .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-family: var(--ff-body);
}
.page-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  max-width: 700px;
  margin: 0 auto 1.25rem;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero .lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Decorative divider */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem auto;
  max-width: 240px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-icon { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.2em; }

/* ── Section ────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-family: var(--ff-body);
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.section-title em { font-style: italic; color: var(--gold); }
.section-body { color: var(--text-muted); max-width: 640px; line-height: 1.85; }

/* ── Cards ──────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card-num {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  color: var(--gold-dim);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.card h3 {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.card p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); color: var(--bg); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); background: var(--gold-dim); }

/* ── Testimonial ────────────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: var(--ff-display);
  font-size: 5rem;
  color: var(--gold-dim);
  position: absolute;
  top: 0.5rem; left: 1.5rem;
  line-height: 1;
}
.testimonial blockquote {
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  padding-top: 1.5rem;
  font-size: 0.9375rem;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.testimonial cite strong { color: var(--gold); display: block; font-family: var(--ff-display); font-size: 0.9375rem; }

/* ── Timeline ───────────────────────────────────────────────── */
.timeline { position: relative; margin-top: 3rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  display: flex;
  gap: 2.5rem;
  padding: 0 0 3rem 0;
  position: relative;
}
.timeline-year {
  min-width: 80px;
  text-align: right;
  font-family: var(--ff-display);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  padding-top: 0.1rem;
  position: relative;
}
.timeline-year::after {
  content: '';
  position: absolute;
  right: -2.5rem;
  top: 0.55rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--gold);
  transform: translateX(50%);
}
.timeline-content h3 {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.timeline-content p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; }

@media (max-width: 580px) {
  .timeline::before { left: 0; }
  .timeline-item { flex-direction: column; gap: 0.75rem; padding-left: 1.25rem; }
  .timeline-year { min-width: auto; text-align: left; }
  .timeline-year::after { right: auto; left: -1.25rem; transform: none; }
}

/* ── Values trio ────────────────────────────────────────────── */
.values-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 3rem;
  overflow: hidden;
}
.value-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: background var(--transition);
}
.value-item:last-child { border-right: none; }
.value-item:hover { background: var(--bg-card); }
.value-icon { font-family: var(--ff-display); font-size: 2rem; color: var(--gold); margin-bottom: 1rem; font-style: italic; }
.value-item h3 { font-family: var(--ff-display); font-size: 1.2rem; color: var(--text); margin-bottom: 0.75rem; }
.value-item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 640px) {
  .values-trio { grid-template-columns: 1fr; }
  .value-item { border-right: none; border-bottom: 1px solid var(--border); }
  .value-item:last-child { border-bottom: none; }
}

/* ── Steps ──────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 3rem; }
.step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.step:last-child { border-bottom: none; }
.step-num {
  min-width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-family: var(--ff-display);
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
}
.step h3 { font-family: var(--ff-display); font-size: 1.1rem; color: var(--text); margin-bottom: 0.4rem; }
.step p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { margin-top: 3rem; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--ff-display);
  font-size: 1rem;
  gap: 1rem;
}
.faq-question:hover { color: var(--gold); }
.faq-icon { color: var(--gold); font-size: 1.25rem; flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* ── Contact form ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.contact-info h2 {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.contact-detail-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 80px;
  padding-top: 0.15rem;
}
.contact-detail-value { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.6; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(200,169,110,0.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3.5rem;
  text-align: center;
  margin: 5rem 0 0;
}
.cta-banner h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--text);
  margin-bottom: 1rem;
}
.cta-banner h2 em { font-style: italic; color: var(--gold); }
.cta-banner p { color: var(--text-muted); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.7;
  max-width: 300px;
}
.footer-brand .brand-name {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 600;
}
.footer-col h4 {
  font-family: var(--ff-display);
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8125rem; color: var(--text-muted); }
.footer-motto { font-family: var(--ff-display); font-style: italic; color: var(--gold); font-size: 0.875rem; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeUp 0.7s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 0.4em; color: var(--border); }
