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

/* Reset and basics */
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #222;
  background-color: #fff;
}

a { color: #0077cc; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header and nav */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}

.container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  position: relative;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

nav li {
  position: relative;
}

nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  padding: 0.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 1000;
}

nav li:hover > ul { display: block; }

nav li ul li { padding: 0 1rem; white-space: nowrap; }
nav li ul li a { display: block; padding: 0.5rem 0; }

/* Active link styling */
nav a.active {
  color: #005fa3;
  font-weight: 600;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.burger span {
  height: 2px;
  width: 24px;
  background: #333;
  margin-bottom: 4px;
  border-radius: 1px;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    border-top: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    gap: 0;
  }
  nav.open ul { display: flex; }
  nav li ul {
    position: static;
    border: none;
    box-shadow: none;
  }
  nav li:hover > ul { display: none; }
  .burger { display: flex; }
}

/* Main and hero */
main { padding: 2rem 0; }

.hero {
  position: relative;
  color: #fff;
  min-height: 60vh;
  overflow: hidden;
}
@media (max-width: 768px) {
  .hero { min-height: 50vh; }
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.hero picture,
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 90%;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.cta-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  background: #0077cc;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}
.cta-buttons a:hover { background: #005fa3; }

/* Card */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); }
.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
@media (max-width: 768px) {
  .card img { height: 180px; }
}
.card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-content h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.card-content p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #555;
  flex: 1;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.breadcrumb a { color: #0077cc; }

/* Read time */
.read-time {
  font-size: 0.875rem;
  color: #999;
}

/* Related section */
.related {
  border-top: 1px solid #eee;
  padding-top: 2rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0077cc;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { background: #005fa3; }

/* Blog post styles */
.blog-post-header {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}
.blog-post-header h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.blog-post-header .lead {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.blog-post-header .meta {
  font-size: 0.875rem;
  color: #999;
}
.blog-post-header img {
  width: 100%;
  height: auto;
  margin-top: 1rem;
  border-radius: 6px;
}
.image-credit {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.5rem;
  text-align: left;
}
.blog-post-content {
  max-width: 720px;
  margin: 2rem auto;
  font-size: 1rem;
}
.blog-post-content p { margin-bottom: 1.2rem; }
.blog-post-content h2,
.blog-post-content h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.blog-post-content h2 { font-size: 1.8rem; }
.blog-post-content h3 { font-size: 1.4rem; }
.blog-post-content ul,
.blog-post-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
.blog-post-content strong { font-weight: 700; }
.blog-post-content em { font-style: italic; }

/* Contact form */
.contact-form {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
label {
  font-weight: 600;
  font-size: 14px;
  color: rgba(0,0,0,.75);
}
input, textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.4;
  background: #fff;
}
textarea { min-height: 180px; resize: vertical; }
input:focus, textarea:focus {
  outline: none;
  border-color: rgba(0,0,0,.45);
  box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  background: #0077cc;
  color: #fff;
  text-decoration: none;
}
.btn-primary:hover { background: #005fa3; }
.micro { margin-top: 10px; font-size: 13px; color: rgba(0,0,0,.6); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Footer */
footer {
  background: #f8f8f8;
  padding: 2rem 0;
  font-size: 0.875rem;
  text-align: center;
  color: #666;
  border-top: 1px solid #eee;
}
footer a { color: #0077cc; }