/* ============================================
   COMMON STYLES - Shared across all pages
   Miro Marsik Photography Website
   ============================================ */

/* ============================================
   GOOGLE FONTS - Elegant typography
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500;600&family=Julius+Sans+One&display=swap');

/* ============================================
   CSS VARIABLES - DESIGN SYSTEM
   ============================================ */
:root {
  /* Colors */
  --color-text: rgba(10,10,12,0.92);
  --color-text-dark: #222;
  --color-text-darker: #101010;
  --color-bg: #fff;
  --color-bg-alt: #f8f8f8;
  --color-bg-cta: #f2f2f2;
  --color-bg-card: #f7f8fb;
  --color-primary: #000;
  --color-accent: #0b57d0;
  --color-footer: #111;
  --color-muted: #5b6275;

  /* Brand colors (gold/orange) */
  --color-brand: #D4861F;
  --color-brand-dark: #B8710A;
  --color-brand-light: #C9863A;
  --color-brand-rgb: 212, 134, 31;
  --color-brand-light-rgb: 201, 134, 58;

  /* Borders */
  --border: #eee;
  --border-strong: #ddd;

  /* Effects */
  --shadow: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-card: 0 10px 30px rgba(10, 20, 40, .08);
  --star: #f5b800;

  /* Sizing */
  --radius: 10px;
  --radius-lg: 18px;
  --max-width: 1400px;
  --spacing-section: 10px 5vw;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--color-bg);
  font-family: 'Josefin Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5em;
  letter-spacing: -0.01em;
  color: var(--color-text-dark);
}

body {
  margin: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Julius Sans One', sans-serif;
  font-weight: 400;
  line-height: 1.4em;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

p {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  line-height: 1.5em;
}

p, li {
  font-size: 1.15em;
  line-height: 1.5em;
}

ul {
  padding-left: 20px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.hidden {
  transform: translateY(-100%);
}

/* Sticky scroll effect */
.site-nav.is-stuck {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(10,10,12,0.12);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(18px, 3.2vw, 34px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 72px;
  gap: 14px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  text-decoration: none;
  color: var(--color-text);
}

.nav-brand:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* Optional: Brand mark (MM logo style) */
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(10,10,12,0.12);
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.brand-text {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(10,10,12,0.78);
  font-weight: 500;
}

.nav-menu {
  display: none; /* Hidden on mobile, shown on desktop */
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 18px;
  align-items: center;
}

.nav-menu a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--color-text-dark);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a:hover {
  color: var(--color-brand);
  background: transparent;
  text-decoration: none;
}

.nav-menu a[aria-current="page"] {
  color: var(--color-brand);
  font-weight: 400;
  background: transparent;
}

/* Hamburger menu button (mobile only) */
.nav-toggle {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(10,10,12,0.12);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  transition: background 140ms ease, transform 140ms ease;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.nav-toggle-icon {
  width: 18px;
  height: 14px;
  display: grid;
  gap: 4px;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon span {
  content: '';
  display: block;
  height: 2px;
  width: 18px;
  border-radius: 2px;
  background: rgba(10,10,12,0.72);
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-icon::before {
  position: absolute;
  top: 0;
}

.nav-toggle-icon span {
  position: absolute;
  top: 6px;
}

.nav-toggle-icon::after {
  position: absolute;
  top: 12px;
}

/* Hamburger animation when open */
.nav-toggle.active .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-icon span {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Desktop navigation */
@media (min-width: 980px) {
  .nav-menu {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* Mobile navigation */
@media (max-width: 979px) {
  .nav-menu.active {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 6px;
    border-bottom: 1px solid rgba(10,10,12,0.12);
    box-shadow: 0 18px 50px rgba(0,0,0,0.12);
  }

  .nav-menu.active li {
    width: 100%;
  }

  .nav-menu.active a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: rgba(10,10,12,0.03);
    color: rgba(10,10,12,0.92);
  }

  .nav-menu.active a svg {
    position: relative;
    top: -2px;
  }

  .nav-menu.active a:hover {
    background: rgba(10,10,12,0.08);
  }

  .nav-menu.active a[aria-current="page"] {
    border-color: rgba(10,10,12,0.12);
    background: rgba(10,10,12,0.1);
  }
}

/* No padding on body - let header go behind nav */

/* ============================================
   HEADER / HERO SECTION
   ============================================ */
.page-header {
  margin-top: 72px;
  padding: 250px 20px 290px;
  margin-bottom: 40px;
  color: white;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page-header h1,
.page-header .title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.page-header p,
.page-header .subtitle {
  font-size: clamp(18px, 2.5vw, 26px);
  opacity: 0.95;
  max-width: 600px;
  margin: 10px auto 0;
}

/* ============================================
   LAYOUT
   ============================================ */
.wrap {
  max-width: var(--max-width);
  margin: 32px auto 96px;
  padding: 0 20px;
}

section {
  padding: var(--spacing-section);
  max-width: var(--max-width);
  margin: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 14px 30px;
  margin-top: 30px;
  border-radius: 6px;
  font-size: 1.1em;
  border: none;
}

.btn.btn-primary:hover {
  background-color: #333;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  background: var(--color-footer);
  padding: 50px 20px 40px;
  color: white;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: white;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.footer-copyright {
  font-size: 14px;
  opacity: 0.6;
}

.footer-left {
  font-size: 15px;
  opacity: 0.9;
}

.footer-right {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-right a {
  color: white;
  opacity: 0.8;
  font-weight: 500;
  transition: opacity 0.2s;
}

.footer-right a:hover {
  opacity: 1;
  text-decoration: none;
}

.footer-right a[aria-current="page"] {
  opacity: 1;
  border-bottom: 2px solid white;
}

/* Legacy footer (for photowalk compatibility) */
footer:not(.site-footer) {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.5px;
  background-color: var(--color-footer);
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 80px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--color-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(10, 20, 40, .12);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.text-center {
  text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  html, body {
    font-size: 17px;
  }

  .wrap {
    padding: 0 16px;
    margin: 20px auto 60px;
  }

  header {
    padding: 160px 20px 180px;
    margin-bottom: 24px;
  }

  section {
    padding: 8px 4vw;
  }

  h2 {
    font-size: 1.9em;
    margin-bottom: 16px;
  }

  .site-footer {
    margin-top: 50px;
    padding: 30px 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  html, body {
    font-size: 16px;
  }

  header {
    padding: 160px 14px 180px;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 1.6em;
    margin-bottom: 14px;
  }

  section {
    padding: 6px 3.5vw;
  }

  .wrap {
    padding: 0 14px;
    margin: 16px auto 50px;
  }

  .site-footer {
    margin-top: 40px;
    padding: 24px 14px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .btn {
    display: none;
  }

  .site-footer {
    display: none;
  }

  footer:not(.site-footer) {
    display: none;
  }
}
