/* ========================================
   Andrew Cornelius Photography Portfolio
   Static Site — Cloned from WordPress
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h2 {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}

h3 {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.site-logo-text {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #222;
}

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #444;
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #333;
  transition: width 0.3s;
}

.main-nav a:hover {
  opacity: 1;
  color: #111;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 180px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  margin-top: 12px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 24px;
  font-size: 0.75rem;
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 9px; }
.mobile-toggle span:nth-child(3) { top: 18px; }

.mobile-toggle.active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 99;
  padding: 40px;
}

.mobile-nav.active {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #444;
  font-weight: 500;
}

.mobile-nav .sub-link {
  padding-left: 16px;
  font-size: 0.8rem;
  color: #888;
}

/* --- Hero Slideshow --- */
.hero {
  margin-top: 73px;
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  background: #f5f5f5;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

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

/* Slideshow dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dot.active {
  background: #fff;
}

/* --- Section Title / Divider --- */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
}

.divider {
  width: 60px;
  height: 1px;
  background: #ccc;
  margin: 0 auto;
}

/* --- Category Cards (Weddings / Senior / Prints) --- */
.categories {
  padding: 80px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.category-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  display: flex;
  align-items: flex-end;
}

.category-card .card-label {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
}

/* --- About Section (Home) --- */
.about-home {
  padding: 100px 0;
  background: #fafafa;
}

.about-home-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-home-text h3 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: #999;
  margin-bottom: 12px;
}

.about-home-text h2 {
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  color: #222;
}

.about-home-text p {
  margin-bottom: 16px;
  font-size: 0.92rem;
  line-height: 1.9;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid #333;
  color: #333;
  margin-top: 16px;
  transition: all 0.3s;
}

.btn:hover {
  background: #333;
  color: #fff;
  opacity: 1;
}

/* --- Gallery Grid (Portfolio / Weddings / Senior) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gallery-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* --- Page Header (Subpages) --- */
.page-header {
  margin-top: 73px;
  padding: 80px 24px;
  text-align: center;
  background: #fafafa;
}

.page-header h1 {
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  color: #222;
}

.page-header p {
  max-width: 600px;
  margin: 16px auto 0;
}

/* --- About Page --- */
.about-page {
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 24px;
  color: #222;
}

.about-text p {
  margin-bottom: 16px;
}

/* --- Contact / Booking Forms --- */
.form-section {
  padding: 80px 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #333;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit {
  display: inline-block;
  padding: 14px 40px;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid #333;
  background: #333;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
}

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

/* --- Mini Sessions --- */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.session-card {
  border: 1px solid #eee;
  padding: 32px;
  text-align: center;
}

.session-card h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.session-card .price {
  font-size: 1.8rem;
  font-weight: 300;
  color: #222;
  margin-bottom: 16px;
}

.session-card p {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.session-card .btn {
  margin-top: 24px;
}

/* --- Footer --- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid #eee;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
}

.footer-copy {
  font-size: 0.75rem;
  color: #bbb;
  letter-spacing: 0.1em;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    height: 60vh;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card {
    aspect-ratio: 16 / 9;
  }

  .about-home-inner,
  .about-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .header-inner {
    padding: 16px 24px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 50vh;
  }

  .page-header {
    padding: 60px 24px;
  }

  .page-header h1 {
    font-size: 1.2rem;
  }
}
