/* ========================================
   Dustin's Nail Supply — Stylesheet
   Forest Green + Off-White Editorial Design
   ======================================== */

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

:root {
  --green-900: #0B1F12;
  --green-800: #1B4332;
  --green-700: #2D6A4F;
  --green-600: #40916C;
  --green-500: #52B788;
  --green-400: #74C69D;
  --green-300: #95D5B2;
  --green-200: #B7E4C7;
  --green-100: #D8F3DC;
  --cream-50: #FAF8F5;
  --cream-100: #F5F0E8;
  --cream-200: #EDE6D8;
  --cream-300: #E0D5C4;
  --ink-900: #0D1110;
  --ink-800: #1A2019;
  --ink-700: #2C362A;
  --ink-600: #3D4F3F;
  --ink-500: #5A6B5C;
  --ink-400: #7A8B7C;
  --ink-300: #9AA89A;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--ink-800);
  background: var(--cream-50);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-900);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--green-700);
  font-weight: 600;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--ink-500);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 64px;
}

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

.section-header-center .section-subtitle {
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--green-700);
  border: 1.5px solid var(--green-700);
}

.btn-secondary:hover {
  background: var(--green-700);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(250, 248, 245, 0.95);
  box-shadow: 0 4px 30px rgba(27, 67, 50, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--green-800);
}

.nav-logo-text {
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-600);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--green-600);
  transition: var(--transition);
}

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

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

.nav-cta {
  background: var(--green-700) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 500;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--green-800) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cream-50);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-800);
  padding: 8px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu-links a {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink-800);
  transition: var(--transition);
}

.mobile-menu-links a:hover {
  color: var(--green-700);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green-900);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #0B1F12 0%,
    #1B4332 25%,
    #2D6A4F 50%,
    #1B4332 75%,
    #0B1F12 100%
  );
  z-index: 1;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(82, 183, 136, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(116, 198, 157, 0.1) 0%, transparent 60%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 860px;
  padding: 120px 24px 80px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 24px;
  padding: 8px 20px;
  border: 1px solid rgba(149, 213, 178, 0.3);
  border-radius: 50px;
  background: rgba(149, 213, 178, 0.08);
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--cream-50);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--green-300);
  font-weight: 600;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(215, 204, 200, 0.8);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-actions .btn-primary {
  background: var(--cream-50);
  color: var(--green-800);
}

.hero-actions .btn-primary:hover {
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-actions .btn-secondary {
  border-color: rgba(215, 204, 200, 0.4);
  color: var(--cream-200);
}

.hero-actions .btn-secondary:hover {
  background: rgba(215, 204, 200, 0.1);
  border-color: var(--cream-200);
  color: var(--white);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

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

.hero-stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cream-50);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(215, 204, 200, 0.6);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(215, 204, 200, 0.2);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(215, 204, 200, 0.4);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

/* ---------- Products ---------- */
.products-section {
  background: var(--cream-50);
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(27, 67, 50, 0.06);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(27, 67, 50, 0.12);
}

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

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card-body {
  padding: 24px;
}

.product-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink-900);
}

.product-card-desc {
  font-size: 0.9375rem;
  color: var(--ink-500);
  line-height: 1.6;
}

/* ---------- About ---------- */
.about-section {
  background: var(--cream-100);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--green-200);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content .section-eyebrow {
  margin-bottom: 16px;
}

.about-text {
  font-size: 1.0625rem;
  color: var(--ink-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-700);
}

.about-feature svg {
  color: var(--green-600);
  flex-shrink: 0;
}

/* ---------- Why Us ---------- */
.why-section {
  background: var(--green-800);
}

.why-section .section-eyebrow {
  color: var(--green-300);
}

.why-section .section-title {
  color: var(--cream-50);
}

.why-section .section-title em {
  color: var(--green-300);
}

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

.why-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.why-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(116, 198, 157, 0.15);
  color: var(--green-300);
  margin-bottom: 24px;
}

.why-card-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--cream-50);
  margin-bottom: 12px;
}

.why-card-desc {
  font-size: 0.9375rem;
  color: rgba(215, 204, 200, 0.7);
  line-height: 1.7;
}

/* ---------- Gallery ---------- */
.gallery-section {
  background: var(--cream-50);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 31, 18, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
}

.gallery-item-large {
  grid-column: span 7;
  grid-row: span 2;
}

.gallery-item:not(.gallery-item-large) {
  grid-column: span 5;
}

/* ---------- CTA ---------- */
.cta-section {
  background: var(--cream-200);
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

.cta-title em {
  font-style: italic;
  color: var(--green-700);
}

.cta-text {
  font-size: 1.0625rem;
  color: var(--ink-500);
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact-section {
  background: var(--cream-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.contact-info .section-eyebrow {
  margin-bottom: 16px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.contact-detail {
  display: flex;
  gap: 16px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  flex-shrink: 0;
}

.contact-detail-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.contact-detail-value {
  font-size: 1rem;
  color: var(--ink-800);
  line-height: 1.5;
}

.contact-detail-value a {
  color: var(--green-700);
  transition: var(--transition);
}

.contact-detail-value a:hover {
  color: var(--green-600);
  text-decoration: underline;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  box-shadow: 0 8px 32px rgba(27, 67, 50, 0.1);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green-900);
  color: rgba(215, 204, 200, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(215, 204, 200, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--cream-50);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 20px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  font-size: 0.9375rem;
  color: rgba(215, 204, 200, 0.6);
  transition: var(--transition);
}

.footer-links li a:hover {
  color: var(--cream-50);
}

.footer-links li:not(:has(a)) {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(215, 204, 200, 0.4);
}

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

  .about-grid {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding: 100px 20px 80px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-number {
    font-size: 1.375rem;
  }

  .section {
    padding: 72px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .about-image-wrapper {
    order: -1;
  }

  .about-image-accent {
    display: none;
  }

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

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item:not(.gallery-item-large) {
    grid-column: span 1;
  }

  .gallery-grid .gallery-item {
    height: 200px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-map {
    min-height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .gallery-item-large {
    grid-column: span 1;
  }
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}
