/* ============================================================
   PT ORBIX XAV MED — Official Website Stylesheet
   Pure CSS — no framework dependencies
   ============================================================ */

/* ----------------------------------------------------------
   CSS Custom Properties (Brand Tokens)
   ---------------------------------------------------------- */
:root {
  --primary:       #C67A3D;
  --secondary:     #F1C40F;
  --background:    #FFF9F0;
  --accent:        #2E2E2E;
  --foreground:    #2E2E2E;
  --card:          #FFFDF8;
  --border:        #E0CDB8;
  --primary-fg:    #FFF9F0;
  --accent-fg:     #FFF9F0;
  --secondary-fg:  #2E2E2E;
  --muted-fg:      #777068;
  --font-sans:     'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif:    'Fraunces', Georgia, 'Times New Roman', serif;
  --radius-sm:     2px;
  --radius:        4px;
  --container:     1200px;
  --nav-height:    72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
}

/* ----------------------------------------------------------
   Utilities
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 3rem;
}

.text-primary { color: var(--primary); }

/* ----------------------------------------------------------
   Scroll Animations
   ---------------------------------------------------------- */
.anim-fade-up,
.anim-slide-left,
.anim-scale-in {
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(.16,1,.3,1),
              transform 0.85s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--delay, 0s);
}

.anim-fade-up    { transform: translateY(36px); }
.anim-slide-left { transform: translateX(-36px); }
.anim-scale-in   { transform: scale(0.88); }

.anim-fade-up.is-visible,
.anim-slide-left.is-visible,
.anim-scale-in.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero fires immediately, not via IntersectionObserver */
#hero .anim-fade-up  { animation: fadeUp 0.85s cubic-bezier(.16,1,.3,1) forwards; }
#hero .anim-scale-in { animation: scaleIn 1s cubic-bezier(.16,1,.3,1) 0.2s forwards; }

@keyframes fadeUp  { from { opacity:0; transform:translateY(36px); } to { opacity:1; transform:none; } }
@keyframes scaleIn { from { opacity:0; transform:scale(0.88); }       to { opacity:1; transform:none; } }

/* ----------------------------------------------------------
   Shared Components
   ---------------------------------------------------------- */

/* Eyebrow label */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-eyebrow span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
}
.section-eyebrow--light span { color: var(--secondary); }

.eyebrow-line {
  width: 3rem;
  height: 1px;
  background: var(--primary);
  flex-shrink: 0;
}
.eyebrow-line--yellow { background: var(--secondary); }

/* Section headings */
.section-heading {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--accent);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.section-heading--light { color: var(--accent-fg); }

/* Body text */
.body-text {
  font-size: 1.0625rem;
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover { background: var(--accent); }

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ----------------------------------------------------------
   NAVBAR
   ---------------------------------------------------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 249, 240, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: 1rem 0;
}

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

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.brand-logo {
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}
.brand:hover .brand-logo { transform: rotate(45deg); }
.brand-logo-inner {
  width: 0.75rem;
  height: 0.75rem;
  background: var(--secondary);
  border-radius: 2px;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--accent);
}

/* Desktop links */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--primary); }

.nav-cta {
  padding: 0.625rem 1.25rem;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--primary); }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  padding: 0.25rem;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.nav-mobile.open { display: flex; }

.nav-mobile-link {
  font-size: 1rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link:hover { color: var(--primary); }

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */
.section-hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 2rem);
  overflow: hidden;
  background: var(--background);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-blob-right {
  right: 0;
  top: 25%;
  width: 40vw;
  height: 60vh;
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  filter: blur(120px);
}
.hero-blob-left {
  left: -10%;
  bottom: 0;
  width: 50vw;
  height: 50vh;
  background: color-mix(in srgb, var(--secondary) 5%, transparent);
  filter: blur(100px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text { max-width: 56rem; }

.hero-heading {
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--accent);
  line-height: 1.08;
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
  max-width: 42rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.hero-illustration { display: none; }

.hero-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.2));
}

/* ----------------------------------------------------------
   ABOUT
   ---------------------------------------------------------- */
.section-about {
  padding: 6rem 0 8rem;
  background: var(--card);
  position: relative;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

/* Visual block */
.about-visual { position: relative; }

.about-panel {
  aspect-ratio: 4 / 5;
  background: var(--accent);
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.18;
}

.about-circles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: overlay;
}

.circle-outer {
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(198, 122, 61, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circle-mid {
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(241, 196, 15, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circle-inner {
  width: 8rem;
  height: 8rem;
  background: rgba(198, 122, 61, 0.2);
  border-radius: 50%;
}

.about-badge {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  z-index: 2;
  width: 12rem;
  height: 12rem;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: var(--secondary-fg);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.3;
}

/* Text block */
.about-text em { font-style: italic; }

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.pillar { display: flex; flex-direction: column; gap: 0.75rem; }

.pillar-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--accent);
}

.pillar-desc {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
  line-height: 1.65;
}

/* ----------------------------------------------------------
   SERVICES
   ---------------------------------------------------------- */
.section-services {
  padding: 6rem 0 8rem;
  background: var(--accent);
  color: var(--accent-fg);
  position: relative;
  overflow: hidden;
}

.services-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  color: var(--accent-fg);
  pointer-events: none;
}

.services-inner { position: relative; z-index: 1; }

.services-header { max-width: 48rem; margin-bottom: 5rem; }

.services-sub {
  font-size: 1.125rem;
  color: color-mix(in srgb, var(--accent-fg) 70%, transparent);
  line-height: 1.7;
  margin-top: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: rgba(255, 249, 240, 0.04);
  border: 1px solid rgba(255, 249, 240, 0.08);
  padding: 2.5rem;
  transition: background 0.3s ease;
  cursor: default;
}
.service-card:hover { background: rgba(255, 249, 240, 0.08); }
.service-card:hover .service-icon svg { transform: translateY(-6px); }

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}
.service-icon svg {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--accent-fg) 70%, transparent);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   APPROACH
   ---------------------------------------------------------- */
.section-approach {
  padding: 6rem 0 8rem;
  background: var(--background);
  position: relative;
}

.approach-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 5rem;
}

.approach-sub {
  font-size: 1.0625rem;
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
  line-height: 1.7;
}

.approach-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
}

.approach-connector {
  display: none; /* shown on desktop via media query */
}

.approach-step { text-align: center; }

.step-circle {
  width: 4rem;
  height: 4rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  position: relative;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.step-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  animation: ping 3s ease-in-out infinite;
}

@keyframes ping {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%       { opacity: 0;   transform: scale(1.6); }
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.step-desc {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
  line-height: 1.7;
  max-width: 24rem;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   CONTACT
   ---------------------------------------------------------- */
.section-contact {
  padding: 6rem 0 8rem;
  background: var(--card);
  position: relative;
  overflow: hidden;
}

.contact-blob {
  position: absolute;
  top: 0;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.contact-intro {
  font-size: 1.0625rem;
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
  line-height: 1.7;
  max-width: 28rem;
  margin-bottom: 3rem;
}

.contact-details { display: flex; flex-direction: column; gap: 2rem; }

.contact-item { display: flex; align-items: flex-start; gap: 1rem; }

.contact-icon-wrap {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
  padding: 0.625rem;
}
.contact-icon-wrap svg { width: 100%; height: 100%; }

.contact-label {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.contact-address {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--foreground) 70%, transparent);
  line-height: 1.7;
  max-width: 22rem;
}

.contact-email {
  font-size: 1.0625rem;
  color: var(--primary);
  transition: text-decoration 0.2s;
}
.contact-email:hover { text-decoration: underline; }

/* Form */
.contact-form-wrap {
  background: var(--background);
  border: 1px solid var(--border);
  padding: 2.5rem 3rem;
  box-shadow: 0 16px 48px rgba(198, 122, 61, 0.06);
}

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--foreground);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}
.form-input::placeholder,
.form-textarea::placeholder { color: color-mix(in srgb, var(--foreground) 40%, transparent); }
.form-input:focus,
.form-textarea:focus { border-color: var(--primary); }
.form-textarea { resize: none; }

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn-submit:hover { background: var(--primary); }

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
#footer {
  background: var(--accent);
  color: rgba(255, 249, 240, 0.6);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 249, 240, 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.footer-logo {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo-inner {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--secondary);
  border-radius: 2px;
}
.footer-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-fg);
  letter-spacing: -0.01em;
}

.footer-copy {
  font-size: 0.875rem;
  text-align: center;
}

/* ----------------------------------------------------------
   RESPONSIVE — Tablet (≥ 768px)
   ---------------------------------------------------------- */
@media (min-width: 768px) {

  .hamburger { display: none; }
  .nav-desktop { display: flex; }

  .hero-heading { font-size: clamp(3.5rem, 7vw, 5rem); }

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

  .about-panel { max-width: 100%; }

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

  .approach-steps { grid-template-columns: 1fr 1fr; }

  .contact-inner { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr 1fr; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — Desktop (≥ 1024px)
   ---------------------------------------------------------- */
@media (min-width: 1024px) {

  .hero-inner { grid-template-columns: 8fr 4fr; }
  .hero-illustration { display: block; }

  .about-inner { gap: 6rem; }

  .approach-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .approach-connector {
    display: block;
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
    z-index: 0;
  }

  .approach-step { position: relative; z-index: 1; }

  .step-desc { max-width: none; }
}

/* ----------------------------------------------------------
   RESPONSIVE — Mobile (< 768px)
   ---------------------------------------------------------- */
@media (max-width: 767px) {

  .container { padding: 0 1.25rem; }

  .nav-desktop { display: none; }
  .hamburger   { display: block; }

  .hero-actions { gap: 1rem; }
  .btn { padding: 0.875rem 1.5rem; font-size: 0.875rem; }

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

  .about-badge {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    height: auto;
    padding: 1.5rem;
    margin-top: 1rem;
    font-size: 1rem;
  }

  .contact-form-wrap { padding: 1.5rem; }

  .section-about,
  .section-services,
  .section-approach,
  .section-contact { padding: 4rem 0; }
}
