/* ===== Design System — Midkiff Media Co ===== */

:root {
  --mm-white: #FAFAF7;
  --mm-cream: #F5F0EB;
  --mm-sand: #E8E0D8;
  --mm-charcoal: #2C2C30;
  --mm-text: #4A4A4A;
  --mm-text-muted: #8A8A8A;
  --mm-accent: #8B7355;
  --mm-accent-light: #C4A882;
  --mm-accent-hover: #6E5A43;
  --mm-error: #C0392B;
  --mm-success: #27AE60;

  --font-script: 'Playfair Display', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Raleway', sans-serif;

  --max-width: 1200px;
  --nav-height: 72px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--mm-text);
  background: var(--mm-white);
}

/* ===== Typography ===== */

h1, h2, h3 {
  font-family: var(--font-script);
  color: var(--mm-charcoal);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--mm-charcoal);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--mm-text);
  max-width: 680px;
}

a {
  color: var(--mm-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--mm-accent-hover);
}

/* ===== Layout ===== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--mm-cream);
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header p {
  margin: 16px auto 0;
  color: var(--mm-text-muted);
}

/* ===== Navigation ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--mm-sand);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

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

.nav-logo {
  height: 40px;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--mm-charcoal);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mm-text);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--mm-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--mm-charcoal);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--mm-charcoal);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--mm-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--mm-accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--mm-accent);
  border: 1.5px solid var(--mm-accent);
}

.btn-outline:hover {
  background: var(--mm-accent);
  color: #fff;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.75rem;
}

/* ===== Cards ===== */

.card {
  background: #fff;
  border: 1px solid var(--mm-sand);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.card-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--mm-text-muted);
}

/* ===== Grid ===== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--mm-cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--mm-charcoal);
}

.hero p {
  font-size: 1.2rem;
  color: var(--mm-text-muted);
  margin: 0 auto 40px;
  max-width: 560px;
}

.hero .tagline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mm-accent);
  margin-bottom: 16px;
}

/* ===== Coming Soon Overlay ===== */

.coming-soon {
  position: relative;
}

.coming-soon .card-image {
  filter: grayscale(0.3);
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 247, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-text {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--mm-accent);
}

/* ===== Footer ===== */

.footer {
  background: var(--mm-charcoal);
  color: var(--mm-sand);
  padding: 60px 0 30px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--mm-sand);
  line-height: 1.6;
  max-width: 320px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--mm-sand);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.footer-links a:hover {
  color: #fff;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(232, 224, 216, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mm-sand);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--mm-accent);
  border-color: var(--mm-accent);
  color: #fff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(232, 224, 216, 0.15);
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--mm-text-muted);
  max-width: 100%;
}

/* ===== Forms ===== */

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mm-charcoal);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--mm-text);
  background: #fff;
  border: 1px solid var(--mm-sand);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--mm-accent);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 12px 16px;
  margin-top: 16px;
}

.form-message.success {
  background: rgba(39, 174, 96, 0.1);
  color: var(--mm-success);
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.form-message.error {
  background: rgba(192, 57, 43, 0.1);
  color: var(--mm-error);
  border: 1px solid rgba(192, 57, 43, 0.2);
}

/* ===== Divider ===== */

.divider {
  width: 60px;
  height: 1px;
  background: var(--mm-accent);
  margin: 20px auto;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(250, 250, 247, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--mm-sand);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-text {
    max-width: 100%;
  }

  .hero {
    min-height: 80vh;
  }
}

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

  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.75rem;
  }
}
