/* ===================================
   TENDO KARATEKLUBB OPPSAL
   Shared Stylesheet
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700;900&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --ink: #1a1a1a;
  --paper: #f5f0e8;
  --paper-dark: #e8e0d0;
  --red: #c23b22;
  --red-dark: #9e2f1b;
  --gold: #b8944f;
  --gold-light: #d4b06a;
  --white: #ffffff;
  --grey: #6b6560;
  --grey-light: #9a948d;
  --shadow: rgba(26, 26, 26, 0.12);
}

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

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

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Noise texture overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover {
  color: var(--red-dark);
}

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

/* ===================================
   HEADER / NAVIGATION
   =================================== */
.site-header {
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-area img {
  height: 50px;
  width: 50px;
  border-radius: 4px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .club-name {
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.logo-text .club-sub {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--gold-light);
}

nav a:hover::after {
  width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--ink);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.4) 0%,
    rgba(26, 26, 26, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
  animation: fadeUp 1s ease-out;
}

.hero .kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 0.5rem;
  letter-spacing: 0.2em;
  text-shadow: 0 2px 30px rgba(194, 59, 34, 0.4);
}

.hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--gold-light);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--red);
  color: var(--white);
  background: var(--red);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: transparent;
  color: var(--red);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   SECTIONS
   =================================== */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.section-title .accent {
  color: var(--red);
}

.section-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--grey-light);
  font-weight: 600;
  margin-bottom: 2rem;
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--red);
  margin-bottom: 2rem;
}

/* ===================================
   ABOUT / OM OSS
   =================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--grey);
  font-size: 1.05rem;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 4px;
  box-shadow: 0 10px 40px var(--shadow);
}

.about-image::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: -15px;
  bottom: -15px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  z-index: -1;
}

/* ===================================
   TRAINING SCHEDULE
   =================================== */
.schedule {
  background: var(--ink);
  color: var(--paper);
}

.schedule .section-title {
  color: var(--paper);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.schedule-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.schedule-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}

.schedule-card .day {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.schedule-card .time {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.schedule-card .group {
  font-size: 0.95rem;
  color: var(--grey-light);
  margin-bottom: 0.3rem;
}

.schedule-card .age {
  font-size: 0.8rem;
  color: var(--grey);
  font-style: italic;
}

/* ===================================
   STYLE INFO / WADO-RYU
   =================================== */
.style-section {
  background: var(--paper-dark);
}

.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.style-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.style-card:hover {
  transform: translateY(-4px);
}

.style-card .icon {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.5rem;
  color: var(--red);
  margin-bottom: 0.8rem;
}

.style-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.style-card p {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ===================================
   LOCATION
   =================================== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.location-info h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.location-info p {
  color: var(--grey);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.location-info .address {
  font-weight: 600;
  color: var(--ink);
  font-size: 1.1rem;
}

.map-placeholder {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
}

.map-placeholder img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta {
  background: var(--red);
  color: var(--white);
  text-align: center;
}

.cta .section-title {
  color: var(--white);
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.cta .btn:hover {
  background: var(--white);
  color: var(--red);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
  background: var(--ink);
  color: var(--grey-light);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--gold);
}

.site-footer .footer-links {
  margin-bottom: 0.8rem;
}

.site-footer .footer-links a {
  margin: 0 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

/* ===================================
   INSTRUCTORS PAGE
   =================================== */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--grey-light);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.instructors-section {
  padding: 4rem 2rem;
}

.instructor-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--paper-dark);
}

.instructor-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.instructor-photo {
  position: relative;
}

.instructor-photo img {
  border-radius: 4px;
  box-shadow: 0 8px 30px var(--shadow);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.instructor-photo::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: 8px;
  bottom: 8px;
  border: 2px solid var(--red);
  border-radius: 4px;
  z-index: -1;
}

.instructor-info h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.instructor-info .rank {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.instructor-info .role {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.instructor-info p {
  color: var(--grey);
  font-size: 1rem;
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

.instructor-info .quote {
  font-style: italic;
  color: var(--ink);
  border-left: 3px solid var(--red);
  padding-left: 1.2rem;
  margin-top: 1.2rem;
  font-size: 1.05rem;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
  }

  nav ul {
    gap: 1.2rem;
  }

  .hero {
    min-height: 55vh;
  }

  .hero .kanji {
    font-size: 2.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

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

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

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

  .instructor-card {
    grid-template-columns: 1fr;
  }

  .instructor-photo {
    max-width: 280px;
  }

  .instructor-photo::before {
    display: none;
  }

  section {
    padding: 3rem 1.5rem;
  }
}
