/* ==========================================================================
   Epicdays Studio Ver2 - American Vintage / Cool / Luxury theme
   Palette sampled from assets/logo/epicdaysstudio169.png
   ========================================================================== */

:root {
  --color-bg: #10201f;
  --color-bg-alt: #16302d;
  --color-surface: #1b3230;
  --color-text: #f2ead9;
  --color-text-muted: #ab9f8a;
  --color-border: rgba(196, 169, 94, 0.28);
  --color-gold: #c3a95e;
  --color-gold-light: #e2c98a;
  --color-red: #a8172c;
  --color-accent: #c3a95e;
  --color-accent-contrast: #10201f;
  --max-width: 1120px;
  --gap: 24px;
  --radius: 4px;
  --font-display: "Bebas Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-base: "EB Garamond", "Times New Roman", "Hiragino Mincho ProN", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  font-size: 1.08rem;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* subtle print-grain texture over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 32, 31, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}

.brand img {
  height: 46px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--color-gold-light);
}

.nav-cta {
  background: var(--color-gold);
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  padding: 9px 20px !important;
  color: var(--color-bg) !important;
}

.nav-cta:hover {
  background: transparent;
  color: var(--color-gold-light) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-gold);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---- Hero ---- */
.hero {
  padding: 104px 0 72px;
  position: relative;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--color-text);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 560px;
  color: var(--color-text-muted);
  font-size: 1.15rem;
  margin: 0 0 36px;
}

.button-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-gold-light);
}

.btn-secondary {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

.btn:hover {
  transform: translateY(-1px);
}

/* ---- Section heading ---- */
.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.9rem;
  margin: 0;
  color: var(--color-text);
}

.section-head .link-more {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--color-gold);
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 2px;
}

/* ---- Works grid ---- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
}

.work-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.work-card::before,
.work-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--color-gold);
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 2;
  pointer-events: none;
}

.work-card::before {
  top: 6px;
  left: 6px;
  border-right: none;
  border-bottom: none;
}

.work-card::after {
  bottom: 6px;
  right: 6px;
  border-left: none;
  border-top: none;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  border-color: var(--color-gold);
}

.work-card:hover::before,
.work-card:hover::after {
  opacity: 1;
}

.work-thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: rgba(242, 234, 217, 0.92);
  position: relative;
  filter: saturate(0.82) contrast(1.05);
}

.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 32, 31, 0) 55%, rgba(16, 32, 31, 0.55) 100%);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--color-surface);
}

.work-meta {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--color-border);
}

.work-meta .work-name {
  font-weight: 600;
  font-size: 0.98rem;
  margin: 0 0 4px;
  color: var(--color-text);
}

.work-meta .work-category {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.placeholder-note {
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--color-gold-light);
  background: rgba(196, 169, 94, 0.12);
  border: 1px solid var(--color-border);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.about-heading {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 32px;
  color: var(--color-text);
}

.about-portrait {
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, #1b2b1f, #4a3a1c);
}

.about-intro p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.divider-badge {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 36px 0;
}

.divider-badge::before,
.divider-badge::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.divider-badge .badge-dot {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-badge .badge-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
}

.about-block h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--color-gold);
  margin: 0 0 10px;
}

.about-block p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ---- Contact / CTA ---- */
.cta-band {
  background: var(--color-gold);
  color: var(--color-bg);
  border-radius: 6px;
  border: 1px solid var(--color-gold-light);
  padding: 60px;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 2rem;
}

.cta-band p {
  color: rgba(16, 32, 31, 0.75);
  margin: 0 0 30px;
  font-size: 1.1rem;
}

.cta-band .btn-primary {
  background: var(--color-bg);
  color: var(--color-gold-light);
  border-color: var(--color-bg);
}

.cta-band .btn-primary:hover {
  background: transparent;
  color: var(--color-bg);
  border-color: var(--color-bg);
}

.form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 22px;
}

.form-row label {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(196, 169, 94, 0.18);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 36px 0;
  margin-top: 64px;
  background: var(--color-bg-alt);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a:hover {
  color: var(--color-gold-light);
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

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

  .cta-band {
    padding: 40px 24px;
  }
}
