/* ============================================
   Levi's Ink Emporium — Styles
   Palette: Teal (#0D7377) + Slate Grey (#2D3748)
   Fonts: Cormorant Garamond (headings) + Inter (body)
   ============================================ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: #2D3748;
  background-color: #FAFBFC;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #0D7377;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

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

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: #1A202C;
}

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0D7377;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  color: #1A202C;
  margin-bottom: 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn--dark {
  background: #0D7377;
  color: #fff;
  border-color: #0D7377;
}

.btn--dark:hover {
  background: #095456;
  border-color: #095456;
}

.btn--outline {
  background: transparent;
  color: #0D7377;
  border-color: #0D7377;
}

.btn--outline:hover {
  background: #0D7377;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: #2D3748;
  border-color: #CBD5E0;
}

.btn--ghost:hover {
  border-color: #0D7377;
  color: #0D7377;
}

.btn--light {
  background: #fff;
  color: #0D7377;
  border-color: #fff;
}

.btn--light:hover {
  background: #F0FDFA;
}

.btn--full {
  width: 100%;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(45, 55, 72, 0.08);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 1px 20px rgba(45, 55, 72, 0.06);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: #0D7377;
  line-height: 1;
}

.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #1A202C;
  letter-spacing: 0.02em;
}

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

.main-nav ul {
  display: flex;
  gap: 2.25rem;
}

.main-nav a:not(.btn) {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #4A5568;
  transition: color 0.25s ease;
  position: relative;
}

.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #0D7377;
  transition: width 0.3s ease;
}

.main-nav a:not(.btn):hover {
  color: #0D7377;
}

.main-nav a:not(.btn):hover::after {
  width: 100%;
}

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

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #2D3748;
  transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

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

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  padding-right: 2rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0D7377;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: #0D7377;
}

.hero-title {
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: #1A202C;
  margin-bottom: 1.75rem;
}

.hero-title em {
  font-style: italic;
  color: #0D7377;
}

.hero-subtitle {
  font-size: 1.0625rem;
  font-weight: 300;
  color: #4A5568;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 440px;
}

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

/* Hero image stack */
.hero-visual {
  position: relative;
}

.hero-image-stack {
  position: relative;
  padding-left: 3rem;
}

.hero-img {
  overflow: hidden;
  position: relative;
}

.hero-img--main {
  width: 100%;
  max-width: 520px;
}

.hero-img--main img {
  width: 100%;
  height: 640px;
  object-fit: cover;
}

.hero-img--accent {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  width: 200px;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.hero-img--accent img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  top: 2rem;
  right: -1rem;
  background: #0D7377;
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 3;
}

/* Decorative line */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100px;
  height: 1px;
  background: #CBD5E0;
  z-index: 1;
}

/* ── Services ── */
.services {
  padding: 8rem 0;
  background: #fff;
}

.section-header {
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid #E2E8F0;
}

.service-card {
  padding: 3rem 2.5rem;
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  transition: background 0.3s ease;
  position: relative;
}

.service-card:nth-child(3n) {
  border-right: none;
}

.service-card:hover {
  background: #F7FAFC;
}

.service-card:hover .service-name {
  color: #0D7377;
}

.service-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 300;
  color: #E2E8F0;
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.service-card:hover .service-number {
  color: #0D7377;
  opacity: 0.3;
}

.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #1A202C;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.service-desc {
  font-size: 0.9375rem;
  font-weight: 300;
  color: #718096;
  line-height: 1.75;
}

/* ── About ── */
.about {
  padding: 8rem 0;
  background: #F7FAFC;
}

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

.about-image {
  overflow: hidden;
}

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

.about-content {
  padding-left: 1rem;
}

.about-text {
  font-size: 1.0625rem;
  font-weight: 300;
  color: #4A5568;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.stat {
  flex: 1;
}

.stat--divider {
  padding-left: 2rem;
  border-left: 1px solid #E2E8F0;
}

.stat-number {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #0D7377;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #718096;
  letter-spacing: 0.02em;
}

/* ── Gallery ── */
.gallery {
  padding: 8rem 0;
  background: #fff;
}

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

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

.gallery-item {
  overflow: hidden;
  position: relative;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 115, 119, 0);
  transition: background 0.3s ease;
}

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

.gallery-item:hover::after {
  background: rgba(13, 115, 119, 0.08);
}

/* ── CTA Banner ── */
.cta-banner {
  padding: 6rem 0;
  background: #0D7377;
  text-align: center;
}

.cta-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.cta-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: #fff;
  margin-bottom: 2.5rem;
}

/* ── Contact ── */
.contact {
  padding: 8rem 0;
  background: #F7FAFC;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-details {
  margin: 2.5rem 0;
}

.contact-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #E2E8F0;
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-item-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0D7377;
  margin-bottom: 0.5rem;
}

.contact-item dd {
  font-size: 1.0625rem;
  font-weight: 300;
  color: #2D3748;
  line-height: 1.7;
}

.contact-item a {
  color: #2D3748;
  transition: color 0.25s ease;
}

.contact-item a:hover {
  color: #0D7377;
}

.contact-map {
  margin-top: 2rem;
  border: 1px solid #E2E8F0;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 280px;
  filter: grayscale(30%);
}

/* Contact form */
.contact-form-wrap {
  background: #fff;
  padding: 3rem;
  border: 1px solid #E2E8F0;
}

.contact-form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #1A202C;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4A5568;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  color: #1A202C;
  background: #F7FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 0;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0D7377;
  background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #A0AEC0;
}

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

.form-success {
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: #0D7377;
  background: #F0FDFA;
  border: 1px solid #B2F5EA;
}

/* ── Footer ── */
.site-footer {
  background: #1A202C;
  padding: 3rem 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.footer-brand .logo-mark {
  color: #0D7377;
}

.footer-brand .logo-name {
  color: #fff;
  font-size: 1.125rem;
}

.footer-copy {
  font-size: 0.8125rem;
  font-weight: 300;
  color: #718096;
  margin-bottom: 0.25rem;
}

.footer-address {
  font-size: 0.8125rem;
  font-weight: 300;
  color: #4A5568;
}

/* ── Scroll reveal (progressive enhancement) ── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 3rem;
  }

  .hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  }

  .about-grid {
    gap: 3rem;
  }

  .contact-grid {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: #FAFBFC;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 3rem;
    border-left: 1px solid #E2E8F0;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 100;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .main-nav a:not(.btn) {
    font-size: 1rem;
  }

  .main-nav .btn {
    margin-top: 1rem;
  }

  /* Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 32, 44, 0.4);
    z-index: 99;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    padding-right: 0;
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-image-stack {
    padding-left: 0;
  }

  .hero-img--main img {
    height: 420px;
  }

  .hero-img--accent {
    width: 140px;
    left: auto;
    right: 0;
    bottom: -1rem;
  }

  .hero-img--accent img {
    height: 190px;
  }

  .hero-badge {
    right: 0;
  }

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

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Services */
  .services {
    padding: 5rem 0;
  }

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

  .service-card {
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
    padding: 2rem 0;
  }

  .service-card:last-child {
    border-bottom: none;
  }

  /* About */
  .about {
    padding: 5rem 0;
  }

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

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

  .about-content {
    padding-left: 0;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat--divider {
    padding-left: 0;
    border-left: none;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
  }

  /* Gallery */
  .gallery {
    padding: 5rem 0;
  }

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

  .gallery-item img {
    height: 280px;
  }

  /* Contact */
  .contact {
    padding: 5rem 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form-wrap {
    padding: 2rem;
  }

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

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

  .section-title {
    font-size: 1.75rem;
  }

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

  .gallery-item img {
    height: 320px;
  }
}
