/* ===========================
   CSS Custom Properties
   =========================== */
:root {
  --teal: #00899e;
  --teal-dark: #006d7e;
  --teal-light: #e6f5f7;
  --gold: #d6af83;
  --gold-light: #f5ece2;
  --dark: #111111;
  --dark-soft: #2a2a2a;
  --gray-700: #444444;
  --gray-500: #777777;
  --gray-300: #cccccc;
  --gray-100: #f4f4f4;
  --white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

/* ===========================
   Reveal Animations
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===========================
   Typography Shared
   =========================== */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 60px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 137, 158, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 62px;
  width: auto;
  transition: opacity 0.3s ease;
}

.nav-logo:hover img {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:not(.nav-cta):hover {
  color: var(--teal);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 60px;
  font-weight: 500;
  transition: all 0.3s var(--ease-out) !important;
}

.nav-cta:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 137, 158, 0.25);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.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(5px, -5px);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--white) 0%, var(--teal-light) 50%, var(--gold-light) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 20s ease-in-out infinite;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: var(--teal);
  top: -15%;
  right: -10%;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 350px;
  height: 350px;
  background: var(--gold);
  bottom: -10%;
  left: -5%;
  animation-delay: -7s;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--teal);
  top: 40%;
  left: 15%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 10px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 28px;
}

.hero-title span {
  display: block;
}

.hero-title em {
  font-style: italic;
  color: var(--teal);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--gray-700);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* ===========================
   About Section
   =========================== */
.about {
  padding: 140px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-title {
  max-width: 440px;
}

.about-description {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-icon-card {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, var(--teal-light), var(--gold-light));
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.5s var(--ease-out);
}

.about-icon-card:hover {
  transform: rotate(3deg) scale(1.02);
}

.about-icon-card::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 36px;
  border: 2px dashed var(--gold);
  opacity: 0.4;
}

.about-pear-icon {
  width: 140px;
  height: auto;
}

/* ===========================
   Services Section
   =========================== */
.services {
  padding: 140px 0;
  background: var(--gray-100);
}

.services-header {
  text-align: center;
  margin-bottom: 72px;
}

.services-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border-color: var(--teal-light);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--teal-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 24px;
  transition: all 0.35s var(--ease-out);
}

.service-card:hover .service-icon {
  background: var(--teal);
  color: var(--white);
  transform: scale(1.05);
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-accent {
  color: var(--teal);
  font-style: italic;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.service-description {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.service-number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* Last two cards span to center */
.services-grid .service-card:nth-child(4) {
  grid-column: 1 / 2;
}

.services-grid .service-card:nth-child(5) {
  grid-column: 2 / 3;
}

/* ===========================
   Founder Section
   =========================== */
.founder {
  padding: 140px 0;
  background: var(--white);
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.founder-image-wrapper {
  position: relative;
}

.founder-image-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 420px;
}

.founder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.founder-image-frame:hover .founder-image {
  transform: scale(1.03);
}

.founder-image-accent {
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--gold);
  border-radius: 24px;
  z-index: -1;
  opacity: 0.5;
}

.founder-description {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 20px;
}

.founder-social {
  margin-top: 32px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--gray-100);
  border-radius: 60px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.3s var(--ease-out);
}

.social-link:hover {
  background: var(--teal-light);
  color: var(--teal);
  transform: translateY(-2px);
}

.social-link svg {
  flex-shrink: 0;
}

/* ===========================
   Contact / CTA Section
   =========================== */
.contact {
  padding: 140px 0;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-soft) 100%);
}

.contact-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact .section-label {
  color: var(--gold);
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--gray-300);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-actions {
  display: flex;
  justify-content: center;
}

.contact .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  font-weight: 600;
}

.contact .btn-primary:hover {
  background: #c9a070;
  border-color: #c9a070;
  box-shadow: 0 8px 30px rgba(214, 175, 131, 0.35);
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--dark);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 44px;
  width: auto;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.footer-logo:hover img {
  opacity: 0.8;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: auto;
  }

  .services-grid .service-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero {
    padding: 140px 24px 100px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .hero-scroll-indicator {
    display: none;
  }

  .about {
    padding: 80px 0;
  }

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

  .about-visual {
    order: -1;
  }

  .about-icon-card {
    width: 200px;
    height: 200px;
  }

  .about-pear-icon {
    width: 100px;
  }

  .services {
    padding: 80px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-grid .service-card:nth-child(5) {
    max-width: none;
  }

  .founder {
    padding: 80px 0;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .founder-image-frame {
    max-width: 320px;
    margin: 0 auto;
  }

  .founder-image-accent {
    top: 12px;
    left: 12px;
    right: -12px;
    bottom: -12px;
  }

  .contact {
    padding: 80px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .service-card {
    padding: 32px 24px;
  }
}
