/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a1628;
  color: #e8e0d0;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== COLORS ===== */
:root {
  --navy: #0a1628;
  --navy-light: #132240;
  --navy-mid: #1a3060;
  --gold: #d4a843;
  --gold-light: #f0d080;
  --gold-dark: #b8892e;
  --cream: #e8e0d0;
  --cream-muted: #a89a80;
  --white: #f5f0ea;
}

/* ===== 3D FLOATING GEOMETRIC BACKGROUND ===== */
.geo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.geo {
  position: absolute;
  border-radius: 0;
  opacity: 0.08;
  will-change: transform;
}
.geo-1 {
  width: 400px; height: 400px;
  background: var(--gold);
  top: -80px; right: -100px;
  transform: rotate(25deg);
  animation: float1 18s ease-in-out infinite;
}
.geo-2 {
  width: 250px; height: 250px;
  background: var(--gold-dark);
  bottom: 10%; left: -60px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: float2 22s ease-in-out infinite;
}
.geo-3 {
  width: 180px; height: 180px;
  background: var(--navy-mid);
  top: 40%; right: 10%;
  border-radius: 50%;
  animation: float3 16s ease-in-out infinite;
}
.geo-4 {
  width: 120px; height: 120px;
  background: var(--gold);
  bottom: 30%; right: 20%;
  transform: rotate(45deg);
  animation: float1 20s ease-in-out infinite reverse;
}
.geo-5 {
  width: 300px; height: 300px;
  background: var(--navy-light);
  top: 60%; left: -80px;
  border-radius: 50%;
  animation: float2 24s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: rotate(25deg) translateY(0) translateX(0); }
  33% { transform: rotate(30deg) translateY(-30px) translateX(20px); }
  66% { transform: rotate(20deg) translateY(20px) translateX(-15px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-40px) translateX(25px); }
}
@keyframes float3 {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.1) translateY(-25px); }
}

/* ===== LAYOUT ===== */
header, main, footer {
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
.header {
  padding: 1.5rem 1.5rem 0.5rem;
  text-align: center;
}
.header-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.logo {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(212, 168, 67, 0.15);
}
.tagline {
  font-size: 0.9rem;
  color: var(--cream-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.25rem;
}
.nav-link {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ===== HERO ===== */
.hero {
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}
.hero-card {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(19, 34, 64, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(212,168,67,0.1);
}
.hero-title {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.gold {
  color: var(--gold);
}
.hero-text {
  font-size: 1.1rem;
  color: var(--cream-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.03em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 6px 30px rgba(212, 168, 67, 0.5);
  transform: scale(1.03);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(212, 168, 67, 0.1);
  transform: scale(1.03);
}
.btn-sm {
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 3px 12px rgba(212, 168, 67, 0.25);
}
.btn-sm:hover,
.btn-sm:focus-visible {
  box-shadow: 0 5px 20px rgba(212, 168, 67, 0.4);
  transform: scale(1.05);
}

/* JIGGLE animation */
.jiggle-anim {
  animation: jiggle 0.4s ease;
}
@keyframes jiggle {
  0%   { transform: rotate(0deg) scale(1); }
  15%  { transform: rotate(-4deg) scale(1.05); }
  30%  { transform: rotate(4deg) scale(1.05); }
  45%  { transform: rotate(-3deg) scale(1.03); }
  60%  { transform: rotate(2deg) scale(1.02); }
  80%  { transform: rotate(-1deg) scale(1.01); }
  100% { transform: rotate(0deg) scale(1); }
}

/* ===== SECTIONS ===== */
.section-title {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

/* ===== GALLERY ===== */
.gallery {
  padding: 3rem 1.5rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.wig-card {
  background: rgba(19, 34, 64, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
.wig-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.wig-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wig-emoji {
  font-size: 4rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.wig-card figcaption {
  padding: 1rem 1rem 1.25rem;
}
.wig-card h3 {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.wig-price {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* ===== ABOUT ===== */
.about {
  padding: 3rem 1.5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}
.about-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  background: rgba(19, 34, 64, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: 24px;
  padding: 2rem;
}
.about-shape {
  flex: 0 0 160px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.shape-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  opacity: 0.3;
}
.shape-triangle {
  width: 0; height: 0;
  border-left: 45px solid transparent;
  border-right: 45px solid transparent;
  border-bottom: 80px solid var(--navy-mid);
  opacity: 0.25;
}
.about-text {
  flex: 1;
  min-width: 240px;
}
.about-text .section-title {
  text-align: left;
  margin-bottom: 1rem;
}
.about-text p {
  color: var(--cream-muted);
  margin-bottom: 0.75rem;
}
.about-text .btn {
  margin-top: 0.5rem;
}

/* ===== CONTACT ===== */
.contact {
  padding: 3rem 1.5rem 4rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.contact-intro {
  color: var(--cream-muted);
  margin-bottom: 2rem;
}
.contact-form {
  text-align: left;
  background: rgba(19, 34, 64, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 24px;
  padding: 2rem;
}
.field {
  margin-bottom: 1.25rem;
}
.field label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream-muted);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 168, 67, 0.2);
  background: rgba(10, 22, 40, 0.6);
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}
.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}
.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gold-light);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(212, 168, 67, 0.1);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
}
.footer-name {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.footer-nav {
  display: flex;
  gap: 1.25rem;
}
.footer-nav a {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--gold);
}
.attribution {
  font-size: 0.75rem;
  opacity: 0.6;
}
.attribution a {
  color: var(--cream-muted);
  text-decoration: none;
}
.attribution a:hover {
  color: var(--gold);
}

/* ===== FOCUS ===== */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto;
  }
  .geo { display: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero-title { font-size: 2rem; }
  .hero-card { padding: 2rem 1.25rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .about-card { flex-direction: column; text-align: center; }
  .about-text .section-title { text-align: center; }
  .nav { gap: 1.25rem; }
  .logo { font-size: 1.8rem; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
}
