/* ==============================================
   Psychedelic Institute Australia — Shared Styles
   ============================================== */

/* CSS Variables */
:root {
  --white: #ffffff;
  --off-white: #f8fafb;
  --ice: #e8f1f5;
  --ice-light: #eef5f8;
  --ice-pale: #f3f8fa;
  --beige: #d5d3c8;
  --beige-light: #e8e6dd;
  --stone: #8a8a80;
  --slate: #4a6a7a;
  --navy: #1e3a4f;
  --navy-deep: #142c3d;
  --navy-dark: #0f2330;
  --text-dark: #1a2e3d;
  --text-mid: #4a5d6a;
  --text-light: #7a8d98;
  --gold-accent: #c4a55a;
  --border-light: #dfe8ed;
  --border-ice: #d0e2ea;
}

/* Global Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: 'Cormorant Garamond', serif; font-weight: 400; }

/* Navigation */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.5rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.5s ease;
  background: white;
}
nav.scrolled {
  padding: 1rem 4rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-light);
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.nav-logo-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--ice-pale);
}
.nav-logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 500; color: var(--navy-deep);
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.78rem; font-weight: 400; color: var(--text-mid);
  text-decoration: none; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  padding: 0.6rem 1.6rem !important; background: var(--navy-deep) !important;
  color: white !important; border-radius: 50px;
  transition: all 0.4s ease !important;
}
.nav-cta:hover {
  background: var(--navy) !important; transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(30,58,79,0.2);
}

/* Dropdown Menus */
.nav-item {
  position: relative;
}
.nav-item > a {
  padding: 0.8rem 1rem;
  display: flex; align-items: center; gap: 0.3rem;
}
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  background: white; border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(30,58,79,0.1);
  min-width: 220px;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  z-index: 1001;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block; padding: 0.8rem 1.2rem;
  color: var(--text-mid); text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.02em;
  text-transform: none; font-weight: 400;
  transition: all 0.2s;
}
.nav-dropdown a:hover {
  background: var(--ice-pale); color: var(--navy-deep);
  padding-left: 1.5rem;
}
.nav-dropdown-arrow {
  font-size: 0.6rem; transition: transform 0.3s;
}
.nav-item:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-deep);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Buttons */
.btn {
  display: inline-block; padding: 0.95rem 2.4rem; border-radius: 50px;
  font-family: 'Outfit', sans-serif; font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.13em; text-transform: uppercase; text-decoration: none;
  transition: all 0.4s ease; cursor: pointer; border: none;
}
.btn-navy { background: var(--navy-deep); color: white; box-shadow: 0 4px 15px rgba(20,44,61,0.3); }
.btn-navy:hover { background: var(--gold-accent); color: white; transform: translateY(-3px); box-shadow: 0 8px 30px rgba(196,165,90,0.4); }
.btn-outline { background: transparent; color: var(--navy-deep); border: 1px solid var(--border-ice); box-shadow: 0 2px 8px rgba(20,44,61,0.08); }
.btn-outline:hover { background: var(--navy-deep); color: white; border-color: var(--navy-deep); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(20,44,61,0.2); }

/* Wave Divider */
.wave-divider { width: 100%; line-height: 0; overflow: hidden; }
.wave-divider svg { width: 100%; height: 100px; display: block; }

/* Sections */
.section { padding: 8rem 4rem; }
.section-white { background: var(--white); }
.section-ice { background: var(--ice-pale); }
.section-navy { background: var(--navy-deep); color: white; }
.section-label {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-label::before { content: ''; width: 22px; height: 1px; background: var(--slate); }
.section-navy .section-label { color: rgba(255,255,255,0.5); }
.section-navy .section-label::before { background: rgba(255,255,255,0.3); }

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 0.8rem;
  color: var(--navy-deep); line-height: 1.15;
}
.section-desc {
  font-size: 1.05rem; color: var(--text-mid); max-width: 700px;
  line-height: 1.85; margin-bottom: 3rem;
}

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

/* Hero (shared base) */
.hero {
  min-height: auto; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--ice-pale) 0%, var(--white) 60%);
  padding: 10rem 2rem 5rem;
}
.hero-bg-circles { position: absolute; inset: 0; overflow: hidden; }
.hero-bg-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--border-ice); opacity: 0.4;
}
.hero-bg-circle:nth-child(1) { width: 700px; height: 700px; top: -20%; right: -10%; animation: gp 15s ease-in-out infinite; }
.hero-bg-circle:nth-child(2) { width: 500px; height: 500px; bottom: -15%; left: -8%; animation: gp 15s ease-in-out infinite reverse; }
.hero-bg-circle:nth-child(3) { width: 300px; height: 300px; top: 20%; left: 15%; border-color: var(--beige-light); animation: gp 12s ease-in-out infinite 3s; }
@keyframes gp { 0%,100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.05); opacity: 0.5; } }

.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 2rem; }
.hero-label {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  opacity: 0; animation: fu 1s ease forwards 0.2s;
}
.hero-label::before, .hero-label::after { content: ''; width: 25px; height: 1px; background: var(--slate); opacity: 0.4; }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1.1;
  color: var(--navy-deep); margin-bottom: 1.8rem; font-weight: 400;
  opacity: 0; animation: fu 1s ease forwards 0.4s;
}
.hero h1 em { font-style: italic; color: var(--slate); font-weight: 300; }
.hero-desc {
  font-size: 1.05rem; color: var(--text-mid); max-width: 600px;
  margin: 0 auto 2.5rem; line-height: 1.85;
  opacity: 0; animation: fu 1s ease forwards 0.6s;
}
.hero-actions {
  display: flex; gap: 1.2rem; justify-content: center; align-items: center;
  opacity: 0; animation: fu 1s ease forwards 0.8s;
}
@keyframes fu { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Footer (complex — index.html style) */
footer { padding: 5rem 4rem 2rem; background: var(--navy-dark); color: white; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-logo-img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  margin-bottom: 1rem;
  opacity: 0.7;
}
.footer-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: white; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.88rem; max-width: 260px; line-height: 1.7; }
.footer-col h5 { font-family: 'Outfit', sans-serif; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1.3rem; }
.footer-col a { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 0.7rem; transition: color 0.3s; }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-location { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-location svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* Footer (simple — subpage style) */
footer.footer-simple { padding: 4rem 2rem; background: var(--navy-deep); text-align: center; }
footer.footer-simple p { opacity: 0.7; font-size: 0.9rem; }
footer.footer-simple a { color: var(--gold-accent); text-decoration: none; }

/* Acknowledgement */
.acknowledgement { padding: 3.5rem 4rem; text-align: center; border-top: 1px solid var(--border-light); background: var(--white); }
.acknowledgement p { max-width: 750px; margin: 0 auto; font-size: 0.88rem; font-style: italic; color: var(--text-light); line-height: 1.8; font-family: 'Cormorant Garamond', serif; font-weight: 400; }

/* Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .section { padding: 6rem 2rem; }
  nav { padding: 1.2rem 2rem; }
  nav.scrolled { padding: 1rem 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 2rem; }
  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 70px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    list-style: none;
    border-bottom: 1px solid var(--border-light);
    z-index: 999;
  }
  .nav-links.active { display: flex; }
  .nav-item {
    border-bottom: 1px solid var(--border-light);
  }
  .nav-item > a {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-dropdown {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    background: var(--ice-pale);
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
  }
  .nav-item.active .nav-dropdown {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    padding: 0.5rem 0;
  }
  .nav-dropdown a {
    padding: 0.8rem 3rem;
  }
  .nav-cta { display: none; }
  .nav-logo-text { display: none; }
  .section { padding: 4rem 1.5rem; }
  .hero { padding-top: 60px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* ==============================================
   CTA Section (shared across all pages)
   ============================================== */
.cta-section {
  padding: 8rem 4rem; text-align: center; position: relative;
  overflow: hidden; background: var(--ice-pale);
}
.cta-circles { position: absolute; inset: 0; }
.cta-circles div {
  position: absolute; border-radius: 50%; border: 1px solid var(--border-ice);
  top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0.4;
}
.cta-circles div:nth-child(1) { width: 300px; height: 300px; }
.cta-circles div:nth-child(2) { width: 500px; height: 500px; }
.cta-circles div:nth-child(3) { width: 700px; height: 700px; }
.cta-inner {
  position: relative; z-index: 1; max-width: 580px; margin: 0 auto; text-align: center;
}
.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.2rem; color: var(--navy-deep);
}
.cta-inner p { color: var(--text-mid); margin-bottom: 2.5rem; font-size: 1rem; }
.cta-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
@media (max-width: 768px) {
  .cta-section { padding: 5rem 1.5rem; }
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--ice-pale) 0%, var(--beige-light) 100%);
  padding: 3rem; border-radius: 16px; border: 1px solid var(--border-light);
  text-align: center;
}
.newsletter-section h3 { color: var(--navy-deep); font-size: 1.3rem; margin-bottom: 0.8rem; }
.newsletter-section p { color: var(--text-mid); margin-bottom: 1.5rem; font-size: 0.95rem; }
.newsletter-form {
  display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center;
}
.newsletter-form input {
  -webkit-appearance: none; appearance: none;
  flex: 1; min-width: 250px; padding: 0.9rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--border-light); border-radius: 50px;
  font-family: 'Outfit', sans-serif; font-size: 0.9rem; color: var(--text-dark);
  transition: all 0.3s ease;
}
.newsletter-form input:focus {
  outline: none; border-color: var(--gold-accent);
  box-shadow: 0 0 0 3px rgba(196, 165, 90, 0.1);
}
.newsletter-form button {
  -webkit-appearance: none; appearance: none;
  padding: 0.9rem 1.8rem; background: var(--navy-deep); color: white;
  border: none; border-radius: 50px; font-family: 'Outfit', sans-serif;
  font-size: 0.8rem; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: all 0.4s ease; letter-spacing: 0.08em;
}
.newsletter-form button:hover {
  background: var(--navy); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30,58,79,0.2);
}
.privacy-notice {
  background: var(--white); padding: 1.5rem; border-radius: 12px;
  border: 1px solid var(--border-light); margin-top: 1.5rem;
  font-size: 0.85rem; color: var(--text-light); text-align: center;
}
@media (max-width: 768px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: 100%; }
}
