/* ===== TwinRidge Creative Studio — Shared Styles ===== */

:root {
  --paper: #fbfcfc;
  --ink: #14202b;
  --ink-soft: #3d4f5c;
  --muted: #6b7a85;
  --river-deep: #143f49;
  --river: #2f7d8a;
  --river-mist: #6fb3bd;
  --river-glow: #a3d5dc;
  --line: #dfe6ea;
  --card-bg: #ffffff;
  --shadow: rgba(20, 63, 73, 0.08);
  --radius: 10px;
  --nav-height: 60px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--river); text-decoration: none; }
a:hover { color: var(--river-deep); }

/* ---- Navigation ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 252, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.nav-brand:hover { color: var(--river); }
.nav-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--river);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(47, 125, 138, 0.08);
  color: var(--river);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px 24px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; width: 100%; }
}

/* ---- Page Hero ---- */
.page-hero {
  background:
    radial-gradient(120% 90% at 25% 0%, rgba(111,179,189,0.30), transparent 60%),
    linear-gradient(170deg, var(--river-deep) 0%, var(--river) 75%, #2a6f7b 100%);
  color: #fff;
  padding: 70px 24px 80px;
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 50px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 50% 0%, 0 40%);
}
.page-hero h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Content ---- */
.content {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 8px 30px var(--shadow);
  transform: translateY(-3px);
}
.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--line);
}
.card-body {
  padding: 20px;
}
.card-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.card-body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(47, 125, 138, 0.1);
  color: var(--river);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary {
  background: var(--river);
  color: #fff;
}
.btn-primary:hover {
  background: var(--river-deep);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--river);
  border: 1.5px solid var(--river);
}
.btn-outline:hover {
  background: var(--river);
  color: #fff;
}

/* ---- Photo Gallery ---- */
.album-section { margin-bottom: 50px; }
.album-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}
.album-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--line);
  transition: transform 0.25s;
  cursor: pointer;
}
.photo-grid img:hover { transform: scale(1.03); }

.shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 30px;
  padding: 8px 18px;
  border-radius: 7px;
  background: rgba(47,125,138,0.08);
  color: var(--river);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.shuffle-btn:hover { background: rgba(47,125,138,0.16); }

/* ---- Video Grid ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.video-card:hover {
  box-shadow: 0 8px 30px var(--shadow);
  transform: translateY(-3px);
}
.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--river-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 48px;
}
.video-thumb::after {
  content: "▶";
  position: absolute;
  font-size: 40px;
  color: rgba(255,255,255,0.8);
  transition: transform 0.2s;
}
.video-card:hover .video-thumb::after { transform: scale(1.15); }
.video-info { padding: 18px; }
.video-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.video-info p {
  font-size: 14px;
  color: var(--muted);
}

/* ---- Contact Form ---- */
.contact-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card-bg);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--river);
  box-shadow: 0 0 0 3px rgba(47, 125, 138, 0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-inner a:hover { color: var(--river); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-30 { margin-bottom: 30px; }

@media (max-width: 600px) {
  .page-hero { padding: 50px 20px 60px; }
  .page-hero h1 { font-size: 28px; }
  .content { padding: 30px 20px 60px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .video-grid { grid-template-columns: 1fr; }
}
