/* THEME VARIABLES
   -------------------------------------------------- */

:root {
  --bg-color: #ffffff;
  --bg-alt-color: #f7f7f7;
  --card-bg-color: #ffffff;
  --border-color: #e0e0e0;
  --border-soft: #e3e3e3;
  --text-color: #222222;
  --muted-text-color: #555555;
  --muted-2-text-color: #777777;
  --placeholder-bg-1: #f4f4f4;
  --placeholder-bg-2: #e0e0e0;
  --accent-color: #222222;
  --accent-contrast: #ffffff;
  --link-color: #444444;
  --footer-bg: #fafafa;
}

:root[data-theme="dark"] {
  --bg-color: #050505;
  --bg-alt-color: #101010;
  --card-bg-color: #111111;
  --border-color: #2a2a2a;
  --border-soft: #333333;
  --text-color: #f5f5f5;
  --muted-text-color: #cccccc;
  --muted-2-text-color: #aaaaaa;
  --placeholder-bg-1: #1c1c1c;
  --placeholder-bg-2: #333333;
  --accent-color: #f5f5f5;
  --accent-contrast: #000000;
  --link-color: #f0f0f0;
  --footer-bg: #050505;
}

/* RESET & BASE
   -------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Layout */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 720px;
}

.section {
  padding: 64px 0;
}

.section-light {
  background: var(--bg-alt-color);
}

.section-title {
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.section-text {
  margin: 0 0 24px;
  color: var(--muted-text-color);
}

/* Header
   -------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 50px;
  width: auto;
}

/* Navigation */

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  margin-left: 24px;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2-text-color);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent-color);
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* THEME TOGGLE BUTTON
   -------------------------------------------------- */

.theme-toggle {
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  padding: 6px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  background: var(--accent-color);
  color: var(--accent-contrast);
  border-color: var(--accent-color);
}

/* Hero
   -------------------------------------------------- */

.hero {
  padding: 72px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-2-text-color);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 32px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
}

.hero-meta {
  font-size: 14px;
  color: var(--muted-text-color);
  margin: 0 0 20px;
}

.hero-description {
  font-size: 15px;
  color: var(--muted-text-color);
  margin: 0 0 24px;
}

.hero-photo {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* Buttons
   -------------------------------------------------- */

.btn-primary {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--accent-color);
  background: var(--accent-color);
  color: var(--accent-contrast);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-color);
}

/* Photo placeholder (used for video placeholder)
   -------------------------------------------------- */

.photo-placeholder {
  border: 1px solid var(--border-soft);
  background: linear-gradient(
    135deg,
    var(--placeholder-bg-1) 0%,
    var(--placeholder-bg-2) 100%
  );
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-2-text-color);
}

/* Components grid
   -------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg-color);
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-photo img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 16px 18px 18px;
}

.card-body h3 {
  font-size: 18px;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted-text-color);
}

/* Video section
   -------------------------------------------------- */

.video-section {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 32px;
  align-items: center;
}

.video-frame iframe {
  width: 100%;
  min-height: 260px;
  border: none;
}

/* Contact page
   -------------------------------------------------- */

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-item h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
}

.contact-item a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact-item a:hover {
  border-bottom-color: var(--link-color);
}

/* Contact form */

.contact-form-wrap h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  font: inherit;
  resize: vertical;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* Footer
   -------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 0 32px;
  font-size: 13px;
  color: var(--muted-2-text-color);
  background: var(--footer-bg);
}

.footer-inner {
  text-align: center;
}

.footer-inner a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-inner a:hover {
  border-bottom-color: var(--link-color);
}

.footer-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted-2-text-color);
}

/* Responsive
   -------------------------------------------------- */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    margin-top: 8px;
  }

  .main-nav a {
    margin-left: 0;
    margin-right: 18px;
  }

  .hero-inner,
  .video-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-photo {
    order: -1;
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: 26px;
  }
}
