/* ==========================================================================
   AUSPHOENIX BRAND DESIGN SYSTEM
   Ratio: 60% White / Soft Grey | 30% Corporate Black & Dark Grey | 10% Gold
   ========================================================================== */

:root {
  /* Brand Guidelines Exact Palette */
  --gold: #f9b900;       /* Ausphoenix Gold: Highlights, CTAs, Accents */
  --black: #111111;      /* Corporate Black: Headings, Dark cards, Wordmarks */
  --white: #ffffff;      /* Pure White: Primary Canvas background */
  --soft-grey: #f3f3f3;  /* Soft Grey: Secondary sections */
  --dark-grey: #333333;  /* Dark Grey: Body text & clean descriptions */
  --border-light: #e5e7eb; /* Subtle borders on white backgrounds */
  --border-dark: #242424;  /* Borders on dark cards/elements */

  /* Fonts */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Layout Metrics */
  --hh: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 6px rgba(17, 17, 17, 0.04);
  --shadow-card: 0 10px 30px rgba(17, 17, 17, 0.05);
  --shadow-hover: 0 18px 40px rgba(17, 17, 17, 0.1);
}

/* Base Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--hh);
  scroll-behavior: smooth;
}

body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--white);
  color: var(--dark-grey);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--black);
  line-height: 1.25;
  overflow-wrap: break-word;
}

p {
  color: var(--dark-grey);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s var(--ease);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1220px;
  margin: 0 auto;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================================
   BUTTONS (Gold Accent Rule: 10%)
   ========================================================================== */
.btn-primary {
  background: var(--gold);
  color: var(--black);
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-primary:hover {
  background: #e5aa00;
  border-color: #e5aa00;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(249, 185, 0, 0.35);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(17, 17, 17, 0.7);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

/* ==========================================================================
   DYNAMIC HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 90px;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -6%;
  z-index: -4;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 24s ease-in-out infinite alternate;
  filter: saturate(1.15) contrast(1.1);
}

@keyframes kenburns {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.14) translate(-1.5%, -1%);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(
      ellipse at 50% 45%,
      rgba(17, 17, 17, 0.72) 0%,
      rgba(17, 17, 17, 0.52) 55%,
      rgba(17, 17, 17, 0.85) 100%
    ),
    linear-gradient(
      180deg,
      rgba(17, 17, 17, 0.65) 0%,
      rgba(17, 17, 17, 0.3) 40%,
      var(--black) 100%
    );
}

.hero-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-glow.g1 {
  width: 440px;
  height: 440px;
  background: var(--gold);
  top: -8%;
  left: -5%;
  opacity: 0.26;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

.hero-glow.g2 {
  width: 400px;
  height: 400px;
  background: #e5aa00;
  bottom: -10%;
  right: -5%;
  opacity: 0.22;
  animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  from { transform: translate(0, 0); }
  to { transform: translate(50px, 35px); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(249, 185, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 185, 0, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 15%, transparent 72%);
  animation: gridmove 14s linear infinite;
}

@keyframes gridmove {
  to { background-position: 56px 56px; }
}

.hero-content {
  text-align: center;
  max-width: 920px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.4rem, 5.8vw, 4.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}

.hero-title span {
  display: inline-block;
  background: linear-gradient(100deg, #f9b900 20%, #fff5d1 45%, #f9b900 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
  text-shadow: none;
}

@keyframes shine {
  to { background-position: -220% 0; }
}

.hero-desc {
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  color: #e5e7eb;
  max-width: 740px;
  margin: 0 auto 36px;
  line-height: 1.75;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 24px;
  height: 40px;
  margin-left: -12px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--gold);
  animation: cue 1.8s infinite;
}

@keyframes cue {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ==========================================================================
   SECTION HEADERS & ACCENT DIVIDERS
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.eyebrow {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-divider {
  width: 44px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 16px auto;
}

.section-divider.align-left {
  margin: 0 0 20px 0;
}

.section-header p {
  color: var(--dark-grey);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ==========================================================================
   SERVICES (Pure White Background, 7-Card Grid)
   ========================================================================== */
.services-section {
  padding: 100px 0;
  background-color: var(--white);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(249, 185, 0, 0.45);
}

.svc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.svc-icon {
  width: 52px;
  height: 52px;
  background: var(--soft-grey);
  border: 1px solid #eaeaea;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.svc-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  transform: scale(1.5);
  transition: transform 0.3s var(--ease);
}

.svc-card:hover .svc-icon img {
  transform: scale(1.7);
}

.svc-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark-grey);
  background: var(--soft-grey);
  padding: 4px 10px;
  border-radius: 4px;
}

.svc-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.svc-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--dark-grey);
  margin-bottom: 22px;
  flex-grow: 1;
}

.svc-points {
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-points li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--black);
}

.svc-points i {
  color: var(--gold);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.svc-card.wide-card {
  grid-column: 1 / -1;
  background: var(--white);
  border: 1px solid #e5e7eb;
}

.wide-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.wide-left p {
  margin-bottom: 0;
}

.wide-right .svc-points {
  border-top: none;
  padding-top: 0;
  gap: 14px;
}

/* Service Card Arrow Link */
.svc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.svc-arrow {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--soft-grey);
  border: 1px solid var(--border-light);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.25s var(--ease);
}

.svc-arrow:hover,
.svc-card:hover .svc-arrow {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  transform: translateX(2px);
}

/* ==========================================================================
   HOW WE INTEGRATE (Soft Grey Background)
   ========================================================================== */
.integration-section {
  padding: 100px 0;
  background-color: var(--soft-grey);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(249, 185, 0, 0.4);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.step-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark-grey);
  background: var(--soft-grey);
  padding: 4px 8px;
  border-radius: 4px;
}

.step-card h4 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--dark-grey);
  margin-bottom: 20px;
  flex-grow: 1;
}

.step-list {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black);
}

.step-list i {
  color: var(--gold);
  font-size: 0.7rem;
}

.integration-grid .step-card:nth-child(1) { transition-delay: 0.05s; }
.integration-grid .step-card:nth-child(2) { transition-delay: 0.15s; }
.integration-grid .step-card:nth-child(3) { transition-delay: 0.25s; }
.integration-grid .step-card:nth-child(4) { transition-delay: 0.35s; }


/* ==========================================================================
   BRAND CONVICTION / QUOTE SECTION (Clearly Visible Photo + Glass Card)
   ========================================================================== */
.quote-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* Background Photo: Crisp, full-color, and clearly visible */
.quote-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.quote-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.95) contrast(1.05);
}

/* Light wash: Keeps the section bright without washing out the photo */
.quote-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.45);
}

.quote-container {
  position: relative;
  z-index: 1;
}

/* Floating Architectural Card: Guarantees 100% text readability */
.quote-card {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.104);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.104);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: 56px 48px;
  box-shadow: 0 20px 45px rgba(17, 17, 17, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quote-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--soft-grey);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 18px;
}

.quote-eyebrow {
  font-family: var(--font-heading);
  color: var(--dark-grey);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.55;
  letter-spacing: -0.5px;
  margin: 16px 0 24px;
}

.quote-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-line {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 14px;
}

.quote-author h5 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.quote-author span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666666;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .quote-section {
    padding: 70px 0;
  }
  .quote-card {
    padding: 38px 24px;
  }
  .quote-text {
    line-height: 1.45;
  }
}

/* ==========================================================================
   ABOUT & OPERATIONAL PRINCIPLES (Soft Grey Background + Dark Cards)
   ========================================================================== */
.about-section {
  padding: 110px 0;
  background-color: var(--soft-grey);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.lead-p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 14px;
  line-height: 1.6;
}

.about-text p {
  color: var(--dark-grey);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.65;
}

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 10px;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--black);
}

.trust-item i {
  color: var(--gold);
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.principle-card {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.principle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 185, 0, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.principle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.principle-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
}

.principle-top i {
  color: #888888;
  font-size: 1.1rem;
  transition: color 0.3s var(--ease);
}

.principle-card:hover .principle-top i {
  color: var(--gold);
}

.principle-card h4 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.principle-card p {
  color: #a3a3a3;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  will-change: opacity, transform;
  transition:
    opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.cards-grid .svc-card:nth-child(1) { transition-delay: 0.05s; }
.cards-grid .svc-card:nth-child(2) { transition-delay: 0.18s; }
.cards-grid .svc-card:nth-child(3) { transition-delay: 0.31s; }
.cards-grid .svc-card:nth-child(4) { transition-delay: 0.05s; }
.cards-grid .svc-card:nth-child(5) { transition-delay: 0.18s; }
.cards-grid .svc-card:nth-child(6) { transition-delay: 0.31s; }
.cards-grid .svc-card.wide-card { transition-delay: 0.15s; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wide-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .integration-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 110px 0 70px;
  }
  .hero-btns {
    flex-direction: column;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about-section {
    padding: 80px 0;
  }
}