/* ============================================================
   SHIHAN FERNANDO — BRAND STYLESHEET
   Brand: St. Anthony's Industries Lanka (Pvt) Ltd
   Theme: Deep Teal + Gold | Playfair Display
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=DM+Mono:wght@300;400;500&display=swap');

/* ── CSS VARIABLES (Brand Tokens) ── */
:root {
  /* Core Brand Colors */
  --ink:          #061c20;
  --teal-deep:    #082830;
  --teal-mid:     #0d3d47;
  --teal-light:   #124f5c;

  /* Text */
  --cream:        #f5f2ec;
  --warm-grey:    #7a9da5;

  /* Gold Palette */
  --gold:         #c9a84c;
  --gold-light:   #dfc06a;
  --gold-dim:     #a07c2a;

  /* UI */
  --rule:         #1a4450;
  --card-bg:      #0a2c34;

  /* Typography */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --section-pad:  7rem 0;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--teal-deep);
  color: var(--cream);
  font-family: var(--font-serif);
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 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.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4vw;
  transition: background 0.4s, backdrop-filter 0.4s;
}

nav.scrolled {
  background: rgba(6, 28, 32, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  border-radius: 3px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.nav-logo-text strong {
  font-weight: 600;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.2s;
}

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  padding: 0 4vw 5vh;
  border-bottom: 1px solid rgba(201,168,76,0.22);
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 40%, rgba(13,61,71,0.55) 0%, transparent 70%), var(--teal-deep);
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(8rem, 18vw, 20rem);
  font-weight: 400;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,168,76,0.06);
  white-space: nowrap;
  letter-spacing: -0.02em;
  user-select: none;
  pointer-events: none;
  animation: driftIn 2s ease forwards;
}

/* Hero inner two-column layout */
.hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

/* Hero Photo */
.hero-photo-wrap {
  flex-shrink: 0;
  width: clamp(260px, 32vw, 420px);
  height: clamp(320px, 42vw, 540px);
  position: relative;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,168,76,0.3);
  transform: translate(12px, -12px);
  z-index: 0;
  pointer-events: none;
}

.hero-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--teal-deep) 0%, transparent 100%);
  z-index: 2;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 20% top;
  display: block;
  position: relative;
  z-index: 1;
  filter: contrast(1.05) saturate(0.9);
}

/* Hero Text Elements */
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-name {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-top: 0.6rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-name em {
  font-style: italic;
  color: var(--gold);
}

.hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  font-weight: 400;
  color: var(--warm-grey);
  max-width: 520px;
  line-height: 1.75;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.hero-scroll-line {
  position: absolute;
  bottom: 2rem;
  right: 4vw;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--warm-grey);
  writing-mode: vertical-rl;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}

.hero-scroll-line::before {
  content: '';
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  color: var(--ink);
}

.btn-outline-cream {
  display: inline-block;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,242,236,0.28);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
}

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

/* ============================================================
   SECTION COMMONS
   ============================================================ */
section {
  padding: var(--section-pad);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0 2rem;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  background: var(--ink);
}

.about-body {
  font-size: 1.15rem;
  line-height: 1.85;
  color: rgba(245,242,236,0.78);
  font-weight: 400;
}

.qual-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(245,242,236,0.6);
}

.qual-item strong {
  color: var(--gold);
  font-weight: 500;
}

/* ============================================================
   VALUE PROPOSITION CARDS
   ============================================================ */
#value {
  background: var(--teal-deep);
}

.vp-card {
  background: var(--card-bg);
  border: 1px solid rgba(201,168,76,0.12);
  padding: 2rem 1.8rem;
  height: 100%;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.vp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.vp-card:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-4px);
}

.vp-card:hover::before {
  transform: scaleX(1);
}

.vp-num {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.vp-title {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.vp-desc {
  font-size: 0.95rem;
  color: var(--warm-grey);
  line-height: 1.75;
  font-weight: 400;
}

/* ============================================================
   PROGRAMME SECTION
   ============================================================ */
#program {
  background: var(--ink);
}

.session-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.session-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: default;
  transition: background 0.2s, padding-left 0.25s;
}

.session-item:first-child {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.session-item:hover {
  background: rgba(201,168,76,0.04);
  padding-left: 0.5rem;
}

.session-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gold);
  opacity: 0.5;
  min-width: 2rem;
  padding-top: 0.18rem;
}

.session-name {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.4;
}

.session-name em {
  font-style: italic;
  color: var(--warm-grey);
  font-size: 0.88rem;
  display: block;
  margin-top: 0.12rem;
}

/* ============================================================
   AUDIENCE SECTION
   ============================================================ */
#audience {
  background: var(--teal-deep);
}

.aud-pill {
  display: inline-block;
  border: 1px solid rgba(201,168,76,0.25);
  padding: 0.6rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(245,242,236,0.7);
  margin: 0.3rem;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.aud-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
  background: linear-gradient(135deg, #051318 0%, #082830 100%);
  border-top: 1px solid rgba(201,168,76,0.18);
}

.contact-card {
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 3rem;
}

.contact-link {
  color: var(--cream);
  text-decoration: none;
  font-size: 1.05rem;
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, padding-left 0.2s;
}

.contact-link:last-child {
  border-bottom: none;
}

.contact-link:hover {
  color: var(--gold);
  padding-left: 0.5rem;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-grey);
  display: block;
  margin-bottom: 0.15rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #030f12;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes driftIn {
  from { opacity: 0; transform: translate(-50%, -44%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

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

/* ============================================================
   SCROLL REVEAL (JS-applied)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 2rem;
  }

  .hero-photo-wrap {
    width: 100%;
    height: 300px;
  }

  .contact-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .nav-links { display: none; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
  .hero-name { font-size: 3.2rem; }
}
