/* ============================================================
   ASPICS.IE — Main Stylesheet
   Sports Photography by a 12-year-old from Cork, Ireland
   Official Photographer: Cobh Ramblers FC, League of Ireland
   ============================================================ */

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

:root {
  --black:   #0a0a0a;
  --white:   #f5f3ee;
  --accent:  #e8c547;
  --red:     #c8352a;
  --gray:    #888;
  --card-bg: #141414;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding 0.3s;
}
nav.scrolled { padding: 0.9rem 2.5rem; }

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-decoration: none;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: 65px; left: 0; right: 0; z-index: 99;
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 2.5rem;
  flex-direction: column; gap: 1.25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--gray); text-decoration: none;
  font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--white); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: var(--black); }
.btn-primary:hover { background: #f0d15a; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: rgba(255,255,255,0.6); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.75rem; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 2.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

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

.hero-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: subtle-scale 14s ease-in-out infinite alternate;
  opacity: 0.6;
}

.hero-cell .fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.5rem;
  color: rgba(255,255,255,0.12);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.hero-cell .fallback svg { width: 2rem; height: 2rem; opacity: 0.25; }

.hero-cell:nth-child(1) { background: linear-gradient(135deg,#1a1a2e,#0f3460); }
.hero-cell:nth-child(2) { background: linear-gradient(135deg,#2d1b1b,#7a2020); }
.hero-cell:nth-child(3) { background: linear-gradient(135deg,#1a2e1a,#145214); }
.hero-cell:nth-child(4) { background: linear-gradient(135deg,#2d2d1b,#7a6a20); }
.hero-cell:nth-child(5) { background: linear-gradient(135deg,#1a1a1a,#1a1a2e); }
.hero-cell:nth-child(6) { background: linear-gradient(135deg,#2e1a2e,#521452); }

@keyframes subtle-scale {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.hero-cell:nth-child(2) img { animation-delay: -4s; }
.hero-cell:nth-child(3) img { animation-delay: -8s; }
.hero-cell:nth-child(4) img { animation-delay: -2s; }
.hero-cell:nth-child(5) img { animation-delay: -6s; }
.hero-cell:nth-child(6) img { animation-delay: -10s; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(10,10,10,1) 0%,
    rgba(10,10,10,0.5) 35%,
    rgba(10,10,10,0.1) 65%,
    transparent 100%);
  z-index: 1;
}

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

.cobh-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(200,53,42,0.15);
  border: 1px solid rgba(200,53,42,0.4);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e88070;
  margin-bottom: 1.5rem;
}
.cobh-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.8rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.hero h1 em { color: var(--accent); font-style: normal; display: block; }

.hero-sub {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 300;
  max-width: 440px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

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

/* ── ABOUT ── */
.about-strip {
  padding: 5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.stat-item {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: var(--card-bg);
}
.stat-item .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-item .label {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  line-height: 1.05;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.about-text h2 span { color: var(--accent); }
.about-text p {
  color: var(--gray);
  font-weight: 300;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ── SHARED SECTION STYLES ── */
section { padding: 5rem 2.5rem; }

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 3rem;
}

/* ── PORTFOLIO ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--card-bg);
}
.portfolio-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.portfolio-item:hover img { transform: scale(1.04); }

.p-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.5rem;
  color: rgba(255,255,255,0.12);
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.p-fallback svg { width: 2rem; height: 2rem; opacity: 0.2; }

.p-bg-1 { background: linear-gradient(160deg,#2d1b1b,#7a2020); }
.p-bg-2 { background: linear-gradient(160deg,#1a2e1a,#145214); }
.p-bg-3 { background: linear-gradient(160deg,#2d2d1b,#7a6a20); }
.p-bg-4 { background: linear-gradient(160deg,#0a0a1a,#0a0a40); }
.p-bg-5 { background: linear-gradient(160deg,#1a1a2e,#0f3460); }

.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.portfolio-overlay p { font-size: 0.76rem; color: #bbb; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.95);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  font-size: 2rem; color: var(--white); cursor: pointer;
  background: none; border: none; line-height: 1; opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ── COBH RAMBLERS ── */
.cobh-section {
  background: var(--card-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cobh-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.cobh-badge-large {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--red);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.cobh-crest {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8352a, #8b1a15);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: white;
  margin-bottom: 1.75rem;
  border: 2px solid rgba(255,255,255,0.1);
}
.cobh-image-area {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg,#1a0a0a,#400a0a);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.cobh-image-area img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── SUPPORT ── */
.support-section { text-align: center; }

.support-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin: 3rem auto 0;
  text-align: left;
}

.support-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.support-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.support-card.featured {
  border-color: rgba(232,197,71,0.5);
  background: linear-gradient(160deg,#1a1a0a,#252510);
}

.support-card .best {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem;
}
.support-card .amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem; color: var(--accent);
  letter-spacing: 0.05em; margin-bottom: 0.2rem; line-height: 1;
}
.support-card .tier {
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gray); margin-bottom: 1rem;
}
.support-card .perks {
  font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.7;
}

/* ── SUPPORT BREAKDOWN BOX ── */
.support-breakdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 820px;
  margin: 1.75rem auto 0;
  background: var(--card-bg);
  border: 1px solid rgba(232,197,71,0.2);
  border-radius: 12px;
  padding: 1.75rem 2.5rem;
  box-sizing: border-box;
}

.support-breakdown-header {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  text-align: center;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.support-breakdown-items {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.support-breakdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 1.5rem;
}

.breakdown-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.breakdown-desc {
  font-size: 0.83rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.5;
}

.breakdown-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .support-breakdown { padding: 1.5rem; }
  .support-breakdown-items { flex-direction: column; }
  .breakdown-divider { width: 48px; height: 1px; }
}

.kofi-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 2.5rem;
  padding: 1rem 2.5rem;
  background: #ff5e5b;
  border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
  color: white; text-decoration: none;
  transition: all 0.2s;
}
.kofi-btn:hover { background: #ff7573; transform: translateY(-2px); }

/* ── CONTACT ── */
.contact-section { border-top: 1px solid rgba(255,255,255,0.06); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.contact-form select option { background: #1a1a1a; color: var(--white); }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--accent); }
.contact-form textarea { height: 130px; resize: vertical; }

.contact-info h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem; letter-spacing: 0.06em; margin-bottom: 1rem;
}
.contact-info p {
  color: var(--gray); font-weight: 300;
  line-height: 1.8; font-size: 0.92rem; margin-bottom: 2rem;
}

.social-links { display: flex; flex-direction: column; gap: 0.75rem; }
.social-link {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--gray); text-decoration: none; font-size: 0.88rem;
  transition: all 0.2s;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  background: var(--card-bg);
}
.social-link:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }

.social-icon {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}
.si-ig   { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: white; }
.si-tw   { background: #000; color: white; font-size: 0.85rem; }
.si-yt   { background: #ff0000; color: white; }
.si-mail { background: var(--accent); color: var(--black); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
footer .logo { font-size: 1.4rem; }
footer p { font-size: 0.78rem; color: var(--gray); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 300;
  background: var(--accent); color: var(--black);
  padding: 0.9rem 1.6rem;
  border-radius: 8px;
  font-size: 0.85rem; font-weight: 500;
  transform: translateY(100px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .desktop-only { display: none; }

  .hero { padding: 0 1.5rem 3.5rem; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5.5rem); }

  .about-strip { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.5rem; }
  section { padding: 3.5rem 1.5rem; }

  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-item:first-child { grid-column: span 2; }

  .cobh-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cobh-image-area { aspect-ratio: 16/9; }

  .support-cards { grid-template-columns: 1fr; max-width: 380px; }

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

  footer { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
}

@media (max-width: 540px) {
  .hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item:first-child { grid-column: span 1; aspect-ratio: 4/3; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
