:root {
  --text: #1a1a1a;
  --muted: #666;
  --accent: #2563eb;
  --bg: #ffffff;
  --border: #e5e5e5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.site-title {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
}
.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-header nav a:hover {
  color: var(--accent);
}
.site-header .nav-item {
  position: relative;
  display: inline-block;
  margin-left: 20px;
  /* Padding (not margin) below the link extends the hoverable area down to the dropdown, so
     moving the pointer from the link into the dropdown doesn't cross a dead zone and lose
     :hover; the negative margin cancels the extra height so the header's layout doesn't shift. */
  padding-bottom: 8px;
  margin-bottom: -8px;
}
.site-header .nav-item:last-child .submenu {
  left: auto;
  right: 0;
}
.site-header .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 160px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  z-index: 10;
}
.site-header .nav-item:hover .submenu,
.site-header .nav-item:focus-within .submenu {
  display: block;
}
.site-header .submenu a {
  display: block;
  padding: 8px 14px;
  white-space: nowrap;
}
.nav-icon {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  vertical-align: -4px;
  margin-right: 6px;
}
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 0.4em;
}
.page-list {
  list-style: none;
  padding: 0;
}
.page-list li {
  margin-bottom: 10px;
}
.page-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.1rem;
}
.page-list a:hover {
  text-decoration: underline;
}
article a {
  color: var(--accent);
}
.page-hero {
  position: relative;
  min-height: 320px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
  display: flex;
  align-items: flex-end;
  padding: 40px;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-slide h2 {
  color: white;
  background: rgba(0, 0, 0, 0.45);
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 1.8rem;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.hero-dots {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.hero-dot.is-active {
  background: white;
}
.page-cards {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.page-card {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.page-card-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.page-card-button {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.page-card-button:hover {
  text-decoration: underline;
}
.contact-form {
  max-width: 480px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.form-field {
  margin-bottom: 18px;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}
.form-field textarea {
  min-height: 120px;
}
.contact-form button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.95rem;
  cursor: pointer;
}
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.site-footer nav a {
  margin-right: 20px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer nav a:hover {
  color: var(--accent);
}
