/* =========================================================
   360in360 Living Memories — Stylesheet
   Brand palette: #edece7 cream · #070707 ink · #5b5a59 slate
                  #7b7b7c mist · #45c575 green
   ========================================================= */

:root {
  --cream:   #edece7;
  --ink:     #070707;
  --slate:   #5b5a59;
  --mist:    #7b7b7c;
  --green:   #45c575;
  --paper:   #f5f4f0;
  --line:    #d8d6d0;
  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 900; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.6rem; margin-bottom: 0.75rem; }
em { font-style: italic; color: var(--green); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1rem;
}
.eyebrow.accent { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: #3bb868; transform: translateY(-1px); }
.btn-ghost { border-color: var(--slate); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.btn-large { padding: 18px 36px; font-size: 1.05rem; margin-top: 2rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245, 244, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { height: 44px; width: auto; }
.nav-title { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.nav-title em { font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--slate); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: var(--cream) !important; padding: 10px 20px; }
.nav-cta:hover { background: var(--green); color: var(--ink) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, #1a1a18 0%, #070707 60%, #1c241e 100%);
  color: var(--cream);
  position: relative; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 40%, rgba(69,197,117,0.18) 0%, transparent 55%);
}
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero .eyebrow { color: var(--green); }
.hero h1 { color: var(--cream); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--green); font-style: italic; }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 640px;
  color: #c9c8c3; line-height: 1.6; margin-bottom: 2.5rem; font-weight: 300;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(237,236,231,0.4); color: var(--cream); }
.hero .btn-ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(237,236,231,0.5); text-align: center;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 40px; margin: 8px auto 0;
  background: linear-gradient(to bottom, rgba(237,236,231,0.5), transparent);
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-intro { font-size: 1.1rem; color: var(--slate); margin-top: 0.5rem; }

/* ---------- Mission ---------- */
.mission { background: var(--paper); }
.mission-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.mission-text h2 { margin-bottom: 1.5rem; }
.mission-text p { margin-bottom: 1.2rem; color: var(--slate); font-size: 1.05rem; }
.mission-signature {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem;
  color: var(--ink) !important; border-left: 3px solid var(--green); padding-left: 20px; margin-top: 2rem;
}
.mission-stats { display: flex; flex-direction: column; gap: 24px; }
.stat {
  background: var(--cream); border: 1px solid var(--line); padding: 28px;
  display: flex; align-items: baseline; gap: 20px;
}
.stat-num { font-family: var(--serif); font-size: 3rem; font-weight: 900; color: var(--green); line-height: 1; }
.stat-label { font-size: 0.95rem; color: var(--slate); }

/* ---------- Services ---------- */
.services { background: var(--cream); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--paper); border: 1px solid var(--line); padding: 36px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); border-color: var(--green); }
.service-icon { font-size: 2.4rem; margin-bottom: 18px; }
.service-card h3 { font-size: 1.35rem; }
.service-card p { color: var(--slate); font-size: 0.97rem; }

/* ---------- Showcase ---------- */
.showcase { background: var(--paper); }
.showcase-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  margin-bottom: 96px;
}
.showcase-item.reverse .showcase-media { order: 2; }
.showcase-item.reverse .showcase-text { order: 1; }
.showcase-media img {
  width: 100%; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
.showcase-text .eyebrow { margin-bottom: 0.75rem; }
.showcase-text h3 { font-size: 2rem; margin-bottom: 1rem; }
.showcase-text p { color: var(--slate); margin-bottom: 1rem; }
.showcase-text .btn { margin-top: 0.5rem; }

.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,0.12); background: #000; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-item { background: var(--cream); padding: 56px; border: 1px solid var(--line); }

/* ---------- Galleries ---------- */
.galleries { background: #0d0d0d; color: var(--cream); }
.galleries .section-head h2 { color: var(--cream); }
.galleries .section-intro { color: var(--mist); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gallery-card {
  background: #141414; border: 1px solid #262626; padding: 30px;
  transition: border-color 0.25s;
}
.gallery-card:hover { border-color: var(--green); }
.gallery-media {
  aspect-ratio: 4/3; margin-bottom: 20px; overflow: hidden;
  border: 1px solid #262626;
}
.gallery-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.gallery-card:hover .gallery-media img { transform: scale(1.05); }
.gallery-card .eyebrow { margin-bottom: 0.5rem; }
.gallery-card h3 { color: var(--cream); font-size: 1.3rem; }
.gallery-card p { color: var(--mist); font-size: 0.9rem; margin-bottom: 1.2rem; }
.gallery-card code { background: #1f1f1f; color: var(--green); padding: 2px 6px; font-size: 0.82rem; font-family: monospace; }
.gallery-card .btn-ghost { border-color: #444; color: var(--cream); }
.gallery-card .btn-ghost:hover { background: var(--green); color: var(--ink); border-color: var(--green); }

/* ---------- Social ---------- */
.social { background: var(--cream); }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.social-card { background: var(--paper); border: 1px solid var(--line); padding: 32px; }
.social-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.social-badge {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: #fff;
}
.social-badge.yt { background: #ff0000; }
.social-badge.fb { background: #1877f2; }
.social-head h3 { font-size: 1.3rem; margin: 0; }
.social-head p { color: var(--slate); font-size: 0.9rem; margin: 0; }
.yt-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin-bottom: 20px; background: #000; }
.yt-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.fb-embed { position: relative; height: 500px; overflow: hidden; margin-bottom: 20px; }
.fb-embed iframe { width: 100%; height: 500px; border: 0; display: block; margin: 0 auto; max-width: 340px; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--slate); margin-bottom: 1.2rem; font-size: 1.05rem; }
.about-creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.about-creds span {
  font-size: 0.8rem; font-weight: 500; padding: 8px 14px; border: 1px solid var(--line);
  background: var(--cream); color: var(--ink);
}
.about-portrait { text-align: center; }
.about-portrait img { width: 100%; max-width: 280px; margin: 0 auto; border: 1px solid var(--line); }
.about-caption { margin-top: 16px; font-size: 0.85rem; color: var(--mist); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(135deg, #1a1a18 0%, #070707 100%); color: var(--cream); padding: 120px 0; }
.contact .eyebrow { color: var(--green); }
.contact-card { max-width: 760px; margin: 0 auto; text-align: center; }
.contact-card h2 { color: var(--cream); margin-bottom: 1.5rem; }
.contact-card > p { color: #c9c8c3; font-size: 1.15rem; max-width: 560px; margin: 0 auto 2.5rem; font-weight: 300; }
.contact-details { display: flex; flex-direction: column; gap: 16px; max-width: 480px; margin: 0 auto; text-align: left; }
.contact-link {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 24px;
  border: 1px solid #2a2a2a; background: rgba(255,255,255,0.02); transition: border-color 0.2s;
}
.contact-link:hover { border-color: var(--green); }
.contact-label { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mist); }
.contact-value { font-weight: 500; color: var(--cream); }

/* ---------- Cross-link (book site) ---------- */
.crosslink {
  background: #070707; color: var(--cream);
  padding: 56px 0; border-top: 1px solid #1c1c1c; text-align: center;
}
.crosslink-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.crosslink .eyebrow { margin: 0; }
.crosslink-text {
  font-family: var(--serif); font-size: 1.15rem; color: #c9c8c3;
  max-width: 560px; margin: 0; line-height: 1.5;
}
.crosslink-text em { color: var(--cream); font-style: italic; }
.crosslink .btn { margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--mist); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid #1c1c1c; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo {
  width: 88px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.footer-brand p { font-size: 0.92rem; max-width: 320px; line-height: 1.5; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-social a { font-size: 0.9rem; color: var(--mist); transition: color 0.2s; }
.footer-links a:hover, .footer-social a:hover { color: var(--green); }
.footer-social h4 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: #444; margin-bottom: 4px; }
.footer-base { padding-top: 24px; text-align: center; }
.footer-base p { font-size: 0.82rem; color: #555; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mission-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .showcase-item, .showcase-item.reverse { grid-template-columns: 1fr; gap: 32px; }
  .showcase-item.reverse .showcase-media { order: 1; }
  .showcase-item.reverse .showcase-text { order: 2; }
  .video-item { padding: 32px; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--paper); padding: 24px; gap: 18px; border-bottom: 1px solid var(--line);
    transform: translateY(-150%); transition: transform 0.3s ease; z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
  .service-grid, .gallery-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 110px 24px 70px; }
  .stat { flex-direction: column; gap: 8px; }
  .stat-num { font-size: 2.4rem; }
  .contact-link { flex-direction: column; align-items: flex-start; gap: 4px; }
}
