/* NorthStar Photography School — Global Styles */

:root {
  --bg-primary: #0b1c15;
  --bg-secondary: #122820;
  --bg-card: #163024;
  --bg-card-hover: #1d3d30;
  --text-primary: #f3f7f4;
  --text-muted: #b8c9bf;
  --heading: #b8e0c5;
  --accent: #7bd99a;
  --accent-hover: #9ff2b8;
  --border: rgba(123, 217, 154, 0.15);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --glow: 0 0 24px rgba(123, 217, 154, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.5rem;
}

.container {
  width: min(92%, 1280px);
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #52b97a);
  color: var(--bg-primary);
  box-shadow: 0 6px 20px rgba(123, 217, 154, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(123, 217, 154, 0.4);
  color: var(--bg-primary);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-small {
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 28, 21, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(11, 28, 21, 0.95);
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 999;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu .nav-list {
  flex-direction: column;
  gap: 1rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 76px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 28, 21, 0.92), rgba(11, 28, 21, 0.7));
  z-index: -1;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(123, 217, 154, 0.08);
  border: 1px solid var(--border);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
}

.hero-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Section backgrounds */
.bg-alt {
  background: var(--bg-secondary);
}

.bg-gradient {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: var(--glow), var(--shadow);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(123, 217, 154, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-icon svg {
  color: var(--accent);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

/* Feature cards */
.feature-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
}

.feature-card .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.feature-card h4 {
  margin-bottom: 0.5rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Image content blocks */
.image-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-block img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.text-block h2 {
  margin-bottom: 1rem;
}

.text-block .lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* Lists with icons */
.icon-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.icon-list li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(123, 217, 154, 0.15);
}

.timeline-item h4 {
  margin-bottom: 0.4rem;
}

/* FAQ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--accent);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
}

/* Pricing cards */
.pricing-card {
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border: 1px solid var(--accent);
  box-shadow: var(--glow), var(--shadow);
}

.pricing-card .price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  margin: 1rem 0;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Quote */
.quote {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-primary);
}

.quote-author {
  display: block;
  margin-top: 1rem;
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* Info box */
.info-box {
  background: rgba(123, 217, 154, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.info-box h4 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* CTA block */
.cta-block {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(123, 217, 154, 0.08) 0%, transparent 60%);
  z-index: 0;
}

.cta-block .container {
  position: relative;
  z-index: 1;
}

.cta-block h2 {
  margin-bottom: 1rem;
}

.cta-block p {
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--heading);
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.95rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 217, 154, 0.12);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: #ff7b7b;
}

.error-message {
  color: #ff7b7b;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Map */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  display: block;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 28, 21, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: var(--glow), var(--shadow);
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-icon {
  width: 72px;
  height: 72px;
  background: rgba(123, 217, 154, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.modal-icon svg {
  color: var(--accent);
}

.modal h3 {
  margin-bottom: 0.75rem;
}

.modal-close {
  margin-top: 1.5rem;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr) 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin: 1rem 0 1.5rem;
  max-width: 320px;
}

.footer-title {
  color: var(--heading);
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.75rem;
}

.footer-list a {
  color: var(--text-muted);
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-contact svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.social-links a:hover svg {
  color: var(--bg-primary);
}

.social-links svg {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(120%);
  transition: transform var(--transition);
}

.cookie-banner.show {
  transform: translateY(0);
}

/* Page hero mini */
.page-hero {
  padding: 10rem 0 5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(11, 28, 21, 0.95), rgba(22, 48, 36, 0.95));
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.breadcrumbs {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.breadcrumbs span {
  color: var(--accent);
}

/* Article content */
.article-content {
  max-width: 820px;
  margin: 0 auto;
}

.article-content h2,
.article-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.meta {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.category {
  color: var(--accent);
  font-weight: 600;
}

/* Legal content */
.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-badges {
    flex-direction: column;
  }

  .grid-2 {
    gap: 2rem;
  }

  .image-block img {
    min-height: 260px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }

  .map-container iframe {
    height: 320px;
  }
}

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

  .btn {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

@media (min-width: 1440px) {
  .container {
    width: min(88%, 1400px);
  }
}

/* Dropdowns */
.has-dropdown {
  position: relative;
}

.dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 260px;
  margin-top: 0.5rem;
  z-index: 100;
}

.nav .has-dropdown:hover .dropdown,
.nav .has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  white-space: normal;
  transition: color var(--transition), background var(--transition);
}

.dropdown a:hover {
  color: var(--accent);
  background: var(--bg-card-hover);
}

.mobile-menu .dropdown {
  display: block;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  margin: 0.5rem 0 0 0.5rem;
}

.mobile-menu .dropdown a {
  color: var(--text-muted);
  padding: 0.4rem 0;
}

.mobile-menu .dropdown a:hover {
  color: var(--accent);
  background: transparent;
}
