/* ============================================================
   KOBERA.DIGITAL — Shared stylesheet (v2.1 — April 2026)
   ============================================================ */

/* FONTS */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/playfair-display-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/playfair-display-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/playfair-display-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/dm-sans-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-sans-500-normal.woff2') format('woff2');
}

/* RESET + ROOT */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #0f0f0d;
  --bg2: #161613;
  --text: #e8e4db;
  --muted: #a8a49b;
  --accent: #c8a96e;
  --accent-dim: rgba(200,169,110,0.12);
  --border: #2a2a26;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Selection colour */
::selection {
  background: var(--accent-dim);
  color: var(--text);
}

/* Focus ring — visible on keyboard nav, hidden on mouse */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Links */
a {
  color: inherit;
}

/* ——— NAV ——— */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: rgba(15,15,13,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--text);
}
nav a.active {
  color: var(--text);
}

/* Hamburger + mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  text-transform: none;
}
.mobile-menu a:hover {
  color: var(--accent);
}

/* ——— SHARED SECTION STRUCTURE ——— */
section {
  padding: 6rem 4rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 5rem;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
}

/* ——— INNER PAGE HEADER ——— */
.page-header {
  padding: 10rem 4rem 5rem;
  position: relative;
}
.page-header .section-label {
  margin-bottom: 1.5rem;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 22ch;
  color: var(--text);
}
.page-header p {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 55ch;
  line-height: 1.85;
  font-weight: 300;
}

/* ——— HERO (HOME) ——— */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(200,169,110,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
  max-width: 56ch;
  line-height: 1.7;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.15;
  font-weight: 400;
  max-width: 22ch;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.85;
  font-weight: 300;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-scroll::before {
  content: '';
  width: 1px;
  height: 3rem;
  background: var(--border);
  display: block;
}

/* ——— INTRO / STORY ——— */
.intro-body {
  max-width: 680px;
}
.intro-hook {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 2rem;
}
.intro-body p {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 1.4rem;
}
.intro-body p:last-child {
  margin-bottom: 0;
}

/* ——— HOMEPAGE SERVICE LAYOUT (two-column explainer) ——— */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: flex-start;
}
.service-left h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  position: sticky;
  top: 7rem;
}
.service-right p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.25rem;
}
.service-right p:last-child {
  margin-bottom: 0;
}

/* ——— TRACK TEASER (HOME) ——— */
.teaser {
  max-width: 680px;
  margin-top: 0.85rem;
}
.teaser p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.25rem;
}
.teaser a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}
.teaser a::after {
  content: '→';
}
.teaser a:hover {
  gap: 0.85rem;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */

.services-body {
  max-width: 820px;
}

/* New block-based services layout */
.service-block {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
.service-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.service-heading {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.service-block p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.25rem;
  max-width: 660px;
}
.service-block p:last-child {
  margin-bottom: 0;
}

.service-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
}
.service-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 0.75rem;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.service-list strong {
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   TRACK RECORD
   ============================================================ */

.bucket {
  margin-bottom: 3.5rem;
}
.bucket:last-child {
  margin-bottom: 0;
}
.bucket-title {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text);
  font-weight: 500;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.75rem;
  line-height: 1.4;
}
.entries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.entry {
  background: var(--bg2);
  padding: 1.75rem;
  transition: background 0.25s;
}
.entry:hover {
  background: #1a1a17;
}
.entry-meta {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.entry p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
}

/* ============================================================
   PHILIPPINES PAGE
   ============================================================ */

.philippines-body {
  max-width: 660px;
}

.ph-heading {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--text);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.ph-heading:first-of-type {
  margin-top: 0;
}

.philippines-body p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.25rem;
}
.philippines-body p:last-child {
  margin-bottom: 0;
}

.ph-divider {
  border-top: 1px solid var(--border);
  margin: 3rem 0 2.5rem;
}

.ph-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5rem;
}
.ph-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 0.9rem;
}
.ph-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.ph-list strong {
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   FAQ PAGE
   ============================================================ */

.faq-list {
  max-width: 680px;
}
.faq-item {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: none;
  padding-top: 0;
}
.faq-q {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.faq-a {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
}
.faq-a a {
  color: var(--accent);
  text-decoration: none;
}
.faq-a a:hover {
  text-decoration: underline;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: flex-start;
}
.faq-intro {
  position: sticky;
  top: 7rem;
}
.faq-intro p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  margin-top: 1rem;
}

/* ============================================================
   SIGNALS (HOME)
   ============================================================ */

.signals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  background: transparent;
  margin-top: 2.5rem;
}
.signal-item {
  background: var(--bg2);
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.signal-item:hover {
  background: #1a1a17;
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.signal-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.signal-tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.signal-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}
.signal-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 1rem 4rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
#cookie-banner p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  max-width: 64ch;
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  color: var(--muted);
  background: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.2s;
}
.cookie-btn.accept {
  border-color: var(--accent);
  color: var(--accent);
}
.cookie-btn:hover {
  background: var(--border);
}
.cookie-btn.accept:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}
.about-photo-col {
  position: relative;
}
.about-photo {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(100%);
  opacity: 0.88;
  transition: opacity 0.4s, filter 0.4s;
}
.about-photo:hover {
  opacity: 1;
  filter: grayscale(40%);
}
.about-caption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--accent);
  line-height: 1.55;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.about-body p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.1rem;
}
.about-body p:last-child {
  margin-bottom: 0;
}
.about-body a {
  color: var(--accent);
  text-decoration: none;
}
.about-body a:hover {
  text-decoration: underline;
}

.cta-btn {
  display: inline-block;
  padding: 0.8rem 2.25rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.25s;
  background: transparent;
  font-family: var(--sans);
  cursor: pointer;
}
.cta-btn:hover {
  background: var(--accent);
  color: var(--bg);
}
/* ============================================================
   CONTACT GRID (inner pages / home)
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: flex-start;
}
.contact-left p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.25rem;
}
.contact-left p:last-child {
  margin-bottom: 0;
}
.contact-links {
  padding-top: 1rem;
}
.contact-item {
  margin-bottom: 1.25rem;
}
.contact-item:last-child {
  margin-bottom: 0;
}
.contact-item-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.contact-item a {
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-item a:hover {
  color: var(--accent);
}
.contact-item span {
  font-size: 0.92rem;
  color: var(--text);
}
.cta-right h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.cta-right h2 em {
  font-style: italic;
  color: var(--accent);
}
.cta-right > p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.75rem;
  max-width: 42ch;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  padding: 2rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer p {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--text);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-label { animation: fadeUp 0.6s ease 0.2s both; }
.hero h1    { animation: fadeUp 0.7s ease 0.4s both; }
.hero-sub   { animation: fadeUp 0.7s ease 0.6s both; }
.hero-scroll { animation: fadeUp 0.7s ease 0.8s both; }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  nav {
    padding: 1.25rem 2rem;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .hero {
    padding: 0 2rem 5rem;
  }
  .hero-scroll {
    display: none;
  }

  section {
    padding: 4rem 2rem;
  }
  .page-header {
    padding: 8rem 2rem 3.5rem;
  }

  .service-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-left h2 {
    position: static;
  }

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

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

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

  #cookie-banner {
    padding: 1rem 2rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-photo {
    max-height: 280px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .faq-intro {
    position: static;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    max-width: 100%;
  }
  .cta-right > p {
    max-width: 100%;
  }
}