/* Mill Hollow Skis - Styles */

:root {
  --color-cream: #faf9f7;
  --color-warm-white: #f5f3f0;
  --color-tan: #b8a078;
  --color-tan-dark: #9a845f;
  --color-brown: #5c4a32;
  --color-charcoal: #2a2a2a;
  --color-black: #1a1a1a;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-2xl: 8rem;

  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-charcoal);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

/* Hide hero text until fonts load */
.hero-content {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fonts-loaded .hero-content {
  opacity: 1;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--spacing-md);
  color: var(--color-black);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

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

.section-lead {
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: var(--spacing-lg);
  color: #666;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-tan);
  color: white;
}

.btn-primary:hover {
  background: var(--color-tan-dark);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

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

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-tan);
  transition: width 0.3s ease, left 0.3s ease;
}

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

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

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

.nav-links a.active {
  color: var(--color-tan);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.4) 100%
  );
}

.hero-content {
  position: relative;
  text-align: left;
  color: white;
  padding: var(--spacing-md);
  max-width: var(--max-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 30px rgba(0,0,0,0.5), 0 4px 60px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 4px 40px rgba(0,0,0,0.3);
}

/* About Section */
.about {
  padding: var(--spacing-2xl) 0;
  background: var(--color-cream);
}

.about-intro {
  max-width: 700px;
  margin-bottom: var(--spacing-xl);
}

.about-intro h2 {
  margin-bottom: var(--spacing-sm);
}

.about-intro p {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: var(--spacing-sm);
}

.about-intro p:last-child {
  margin-bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

.about-image {
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

/* Parallax Break */
.parallax-break {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Skis Section */
.skis {
  padding: var(--spacing-2xl) 0;
  background: var(--color-warm-white);
}

.skis h2 {
  text-align: center;
}

.skis .section-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.skis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  max-width: 1000px;
  margin: 0 auto;
}

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

.ski-card img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto var(--spacing-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.ski-info h3 {
  font-family: var(--font-serif);
  color: var(--color-brown);
}

.ski-info p {
  color: #666;
  font-size: 0.95rem;
}

/* Workshop Break */
.workshop-break {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.workshop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workshop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.workshop-content {
  position: relative;
  text-align: center;
  padding: var(--spacing-md);
}

.workshop-content blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: white;
  max-width: 700px;
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: var(--spacing-2xl) 0;
  background: var(--color-cream);
}

.contact h2 {
  text-align: center;
}

.contact .section-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  color: var(--color-charcoal);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid #ddd;
  background: white;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-tan);
}

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

.contact-form .btn {
  width: 100%;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-status {
  text-align: center;
  margin-top: var(--spacing-sm);
  font-size: 0.95rem;
}

.form-status a {
  color: inherit;
  text-decoration: underline;
}

.form-status-success {
  color: #2e7d32;
}

.form-status-error {
  color: #c62828;
}

/* Footer */
.footer {
  padding: var(--spacing-lg) 0;
  background: var(--color-charcoal);
  color: white;
  text-align: center;
}

.footer-content {
  margin-bottom: var(--spacing-md);
}

.footer-logo {
  height: 60px;
  width: auto;
  margin: 0 auto var(--spacing-sm);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    align-items: flex-start;
  }

  .hero-content {
    padding-top: 25vh;
  }

  .hero-img {
    object-position: 75% center;
  }

  .nav-links {
    gap: var(--spacing-sm);
  }

  .nav-links a {
    font-size: 0.75rem;
  }

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

  .about-image img {
    height: 250px;
  }

  .skis-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

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

@media (max-width: 480px) {
  .hero-img {
    object-position: 85% center;
  }

  .logo-img {
    height: 40px;
  }

  .nav.scrolled .logo-img {
    height: 35px;
  }

  .about-image img {
    height: 200px;
  }
}

/* Phone landscape */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-img {
    object-position: 85% 70%;
  }

  .hero-content {
    padding-top: 15vh;
  }
}
