/* ============================================
   CornerCo — The Modern Corner Store
   Premium dark theme with red accents & glow
   ============================================ */

/* --- CSS Variables --- */
:root {
  --red: #C41E3A;
  --red-glow: #C41E3A;
  --red-bright: #E8243F;
  --black: #0A0A0A;
  --black-deep: #050505;
  --dark: #1A1A1A;
  --dark-card: #111111;
  --dark-border: #222222;
  --white: #F5F5F5;
  --white-muted: #AAAAAA;
  --white-dim: #666666;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--red);
  color: var(--white);
}

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

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

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

.red {
  color: var(--red);
}

/* --- Grain Overlay --- */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background-image: url('./assets/noise.png');
  background-repeat: repeat;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* --- Reveal Animation Base --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-smooth);
  background: transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid rgba(196, 30, 58, 0.15);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.8;
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white-muted);
  transition: color 0.3s;
  text-transform: uppercase;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link--cta {
  color: var(--red);
  border: 1px solid rgba(196, 30, 58, 0.4);
  padding: 8px 20px;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-link--cta:hover {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 20px rgba(196, 30, 58, 0.3);
}

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

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

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

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

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

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.06em;
  color: var(--white-muted);
  transition: color 0.3s;
}

.mobile-menu-link:hover {
  color: var(--white);
}

.mobile-menu-link--cta {
  color: var(--red);
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.hero-glow--1 {
  width: 600px;
  height: 600px;
  background: var(--red);
  top: -200px;
  right: -100px;
  animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow--2 {
  width: 400px;
  height: 400px;
  background: var(--red);
  bottom: -100px;
  left: -100px;
  animation: glowPulse 8s ease-in-out infinite 4s;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.1); }
}

/* Decorative lines */
.hero-line {
  position: absolute;
  background: rgba(196, 30, 58, 0.03);
}

.hero-line--1 {
  width: 1px;
  height: 100%;
  left: 20%;
  top: 0;
}

.hero-line--2 {
  width: 1px;
  height: 100%;
  right: 25%;
  top: 0;
}

.hero-line--3 {
  width: 100%;
  height: 1px;
  top: 60%;
  left: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(196, 30, 58, 0.3);
  padding: 8px 20px;
  border-radius: 2px;
  margin-bottom: 40px;
  background: rgba(196, 30, 58, 0.05);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--red);
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-title-corner {
  position: relative;
}

.hero-title-co {
  position: relative;
  text-shadow: 0 0 40px rgba(196, 30, 58, 0.4), 0 0 80px rgba(196, 30, 58, 0.2);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white-dim);
  margin-bottom: 48px;
}

.hero-subtitle-location {
  color: var(--white);
  position: relative;
}

.hero-subtitle-location::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}

/* Email form */
.hero-form {
  max-width: 480px;
  margin: 0 auto;
}

.hero-form-inner {
  display: flex;
  border: 1px solid var(--dark-border);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(26, 26, 26, 0.6);
  transition: border-color 0.3s;
}

.hero-form-inner:focus-within {
  border-color: rgba(196, 30, 58, 0.5);
  box-shadow: 0 0 20px rgba(196, 30, 58, 0.1);
}

.hero-form-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
}

.hero-form-input::placeholder {
  color: var(--white-dim);
}

.hero-form-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.hero-form-btn:hover {
  background: var(--red-bright);
  box-shadow: 0 0 30px rgba(196, 30, 58, 0.4);
}

.hero-form-success {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--red);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s var(--ease-out);
}

.hero-form-success.show {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
  transition: opacity 0.4s;
}

.hero-scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-dim);
}

/* --- ABOUT SECTION --- */
.about {
  padding: 140px 0;
  position: relative;
  background: var(--black);
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--dark-border), transparent);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  position: relative;
  padding-left: 24px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--red);
  box-shadow: 0 0 6px var(--red-glow);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 100px;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--white-muted);
  margin-bottom: 20px;
}

.about-text strong {
  color: var(--white);
  font-weight: 600;
}

/* Differentiator Cards */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.diff-card {
  padding: 32px 24px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 3px;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.diff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 0 10px var(--red-glow);
}

.diff-card:hover::before {
  transform: scaleX(1);
}

.diff-card:hover {
  border-color: rgba(196, 30, 58, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.diff-card-icon {
  margin-bottom: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196, 30, 58, 0.2);
  border-radius: 2px;
  background: rgba(196, 30, 58, 0.05);
}

.diff-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--white);
}

.diff-card-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--white-dim);
}

/* --- OFFERINGS SECTION --- */
.offerings {
  padding: 140px 0;
  background: var(--black-deep);
  position: relative;
}

.offerings::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--dark-border), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

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

.offering-card {
  position: relative;
  padding: 40px 32px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 3px;
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.offering-card:hover {
  border-color: rgba(196, 30, 58, 0.3);
  transform: translateY(-2px);
}

.offering-card-glow {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: var(--red);
  filter: blur(80px);
  opacity: 0;
  transition: opacity 0.5s;
}

.offering-card:hover .offering-card-glow {
  opacity: 0.12;
}

.offering-card--wide {
  grid-column: 1 / -1;
}

.offering-card-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: rgba(196, 30, 58, 0.2);
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.4s;
}

.offering-card:hover .offering-card-number {
  color: rgba(196, 30, 58, 0.5);
}

.offering-card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--white);
}

.offering-card-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--white-muted);
}

/* --- LOCATION SECTION --- */
.location {
  padding: 140px 0;
  background: var(--black);
  position: relative;
}

.location::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--dark-border), transparent);
}

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

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

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.location-detail-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196, 30, 58, 0.2);
  border-radius: 2px;
  background: rgba(196, 30, 58, 0.05);
}

.location-detail div {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--white-muted);
}

.location-detail strong {
  color: var(--white);
  font-weight: 600;
}

.location-map-frame {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--dark-border);
  position: relative;
  background: var(--dark-card);
}

.location-map-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

.location-map-frame iframe {
  filter: grayscale(1) invert(0.92) contrast(0.85);
}

/* --- FOOTER --- */
.footer {
  padding: 48px 0;
  background: var(--black-deep);
  border-top: 1px solid var(--dark-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.footer-url {
  font-size: 0.8rem;
  color: var(--white-dim);
  margin-top: 4px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dark-border);
  border-radius: 2px;
  color: var(--white-muted);
  transition: all 0.3s;
}

.footer-social-link:hover {
  color: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 12px rgba(196, 30, 58, 0.2);
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--white-dim);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .about-grid {
    gap: 48px;
  }
  
  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: flex;
  }
  
  .hero {
    padding: 100px 20px 60px;
    min-height: 100svh;
  }
  
  .hero-title {
    font-size: clamp(3.5rem, 16vw, 7rem);
  }
  
  .hero-form-inner {
    flex-direction: column;
  }
  
  .hero-form-btn {
    justify-content: center;
    padding: 14px;
  }
  
  .hero-scroll-indicator {
    display: none;
  }
  
  .about {
    padding: 80px 0;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 60px;
  }
  
  .diff-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .offerings {
    padding: 80px 0;
  }
  
  .offerings-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    margin-bottom: 48px;
  }
  
  .location {
    padding: 80px 0;
  }
  
  .location-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .location-map-frame {
    aspect-ratio: 16/10;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .section-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .offering-card {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 14px;
    margin-bottom: 28px;
  }

  .hero-tagline {
    font-size: 1rem;
    letter-spacing: 0.04em;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 36px;
  }

  .diff-card {
    padding: 24px 20px;
  }

  .offering-card-number {
    font-size: 2rem;
  }
}
