/* ============================================================================
   Avalora Media – Global Stylesheet
============================================================================ */

/* ========== Fonts ========== */

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto/Roboto-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto/Roboto-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto/Roboto-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


/* ========== Design Tokens / Base ========== */
:root {
  --bg-dark: #0f1115;
  --bg-soft: #f6f8fb;
  --text: #121319;
  --muted: #667085;

  --brand: #6ea8fe;   /* blue accent */
  --gold:  #C6A04D;   /* Avalora gold */

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

html,
body {
  font-family: 'Roboto', sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

/* Simple utility helpers */
.text-brand { color: var(--brand) !important; }
.bg-soft    { background: var(--bg-soft); }
.soft-shadow { box-shadow: var(--shadow); }

/* All anchored sections account for fixed navbar height when scrolled to */
section[id] {
  scroll-margin-top: 80px;
}

/* ========== Layout Helpers ========== */
.section-pad {
  padding: 88px 0;
}
@media (max-width: 991.98px) {
  .section-pad {
    padding: 72px 0;
  }
}

/* Any section using .fullscreen will be at least one viewport high */
.fullscreen {
  min-height: 100vh;
}

/* ========== Navbar ========== */
/* Underlined-on-hover nav links with subtle animation */
.navbar .nav-link {
  position: relative;
  padding: 0.6rem 0.9rem;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.35rem;
  height: 2px;
  background: currentColor;
  opacity: 0.35;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.navbar .nav-link:hover::after {
  transform: scaleX(1);
}

/* Gold-gradient primary button used in hero + navbar */
.btn-brand {
  background: linear-gradient(135deg, #d4b25a 0%, #c6a04d 50%, #b48f3d 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-brand:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(198, 160, 77, 0.4);
  transform: translateY(-2px);
}

/* ========== Hero ========== */
/* Fullscreen hero with background image and tinted overlay */
.hero {
  position: relative;
  min-height: 100vh;
  height: 100dvh;
  display: grid;
  align-items: center;
  justify-items: center;
  color: var(--text);
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

/* Gradient overlay: darkens and adds subtle color glow */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 350px at 80% -10%, rgba(110, 168, 254, 0.18), transparent 60%),
    radial-gradient(700px 300px at -10% -10%, rgba(159, 209, 139, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(12, 14, 18, 0.35), rgba(12, 14, 18, 0.7));
  backdrop-filter: blur(4px) saturate(130%);
}

.hero .container {
  z-index: 2;
  max-width: 960px;
}

/* Soft fade at the bottom into the next section */
.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08));
}

/* Hero tagline badge (if used) */
.brand-badge {
  display: inline-block;
  font-size: clamp(0.85rem, 2.6vw, 1rem);
  letter-spacing: 0.3px;
  font-weight: 500;
  color: #f8f9fa;
  border: 1px solid #ffffff;
  transition: all 0.35s ease;
}

.brand-badge:hover {
  border-color: rgba(198, 160, 77, 0.95);
  background: rgba(198, 160, 77, 0.15);
  color: #fff;
  box-shadow: 0 0 24px rgba(198, 160, 77, 0.35);
}

@media (max-width: 576px) {
  .brand-badge {
    font-size: clamp(0.8rem, 3.2vw, 0.95rem);
    padding: 0.5rem 1rem;
    text-align: center;
  }
}

/* ========== Section Titles ========== */
/* Small gold underline used in “What We Do”, “Our Expertise”, etc. */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 96px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #d4b25a, #c6a04d, #b48f3d);
  opacity: 0.85;
}

/* ========== Shared Card Styles (Expertise / References) ========== */
/* Ref-like cards (Expertise + any reference cards) */
.ref-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px 0 18px 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: default; /* visually non-clickable */
}

.ref-media {
  position: relative;
  overflow: hidden;
}

.ref-media img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

/* Top-left pill label on images */
.ref-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(198, 160, 77, 0.92);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 6px 12px rgba(198, 160, 77, 0.35);
}

.ref-body {
  padding: 18px 20px 22px;
}

/* Inline tags under reference cards */
.ref-tags.subtle {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 0.6rem;
}

.ref-tags.subtle span {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  color: #c69f4d;
  font-weight: 500;
}

.ref-tags.subtle span i {
  font-size: 1rem;
  color: #adb5bd;
  margin-right: 0.35rem;
}

/* No “this is clickable” affordance on hover */
.ref-tags.subtle span:hover {
  color: #6c757d;
}
.ref-tags.subtle span:hover i {
  color: #adb5bd;
}

/* ========== What We Do (About Cards) ========== */
.about-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px 0 18px 0;
  padding: 18px 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  cursor: default;
}

/* Icon square for about cards */
.about-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(198, 160, 77, 0.14), rgba(198, 160, 77, 0.06));
  border: 1px solid rgba(198, 160, 77, 0.35);
  box-shadow: 0 6px 14px rgba(198, 160, 77, 0.12);
  margin-bottom: 10px;
}

.about-icon i {
  color: var(--gold);
  font-size: 22px;
}

/* Asymmetric image corners in “What We Do” section */
.about-image {
  border-radius: 24px 0 24px 0;
}

/* ========== Services Section ========== */
/* Service cards in “Comprehensive Services” */
.services-section .service-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px 0 18px 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  padding: 22px 22px 20px;
  cursor: default;
}

.services-section .service-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(198, 160, 77, 0.14), rgba(198, 160, 77, 0.06));
  border: 1px solid rgba(198, 160, 77, 0.35);
  box-shadow: 0 6px 14px rgba(198, 160, 77, 0.12);
}

.services-section .service-icon i {
  font-size: 26px;
  color: var(--gold);
}

.services-section h5 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* Bulleted list rewritten into branded check list */
.services-section .service-list {
  list-style: none;
  padding-left: 0;
  margin: 0.25rem 0 0;
}

.services-section .service-list li {
  position: relative;
  padding-left: 24px;
  margin: 0.4rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.services-section .service-list li::before {
  content: "\f00c"; /* Font Awesome check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.85rem;
  color: #c69f4d;
  opacity: 0.95;
}

/* ========== Focus Domains Section ========== */
#focus .focus-box {
  border-radius: 24px 0 24px 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  cursor: default;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#focus .focus-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

#focus .focus-icon i {
  font-size: 2.6rem;
}

#focus p.small {
  color: #6c757d;
}

/* ========== Why Us Section ========== */
.text-gold {
  color: var(--gold);
}

.why-card i {
  font-size: 3rem;
  line-height: 1;
}

/* Slightly more generous padding inside Why Us cards */
#why .p-4 {
  padding: 2.5rem 1.5rem;
}

/* ========== Contact Section (background + card) ========== */
#contact {
  position: relative;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(233, 208, 160, 0.95) 0%,
      rgba(198, 160, 77, 0.98) 35%,
      rgba(180, 143, 61, 0.95) 55%,
      rgba(233, 208, 160, 0) 75%
    ),
    linear-gradient(
      135deg,
      #f8f3e7 0%,
      #f1e4cf 50%,
      #faf6ee 100%
    );
}

/* Glassy contact card over the gold gradient */
.contact-card {
  border-radius: 24px 0 24px 0;
  border-color: rgba(198, 160, 77, 0.4) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
}

.contact-logo {
  max-width: 240px;
  width: 100%;
  height: auto;
  opacity: 0.96;
}

/* ========== Footer & Small Layout Overrides ========== */
/* Boost hover clarity on footer social icons */
footer a:hover {
  opacity: 1 !important;
}

/* These overrides intentionally tweak layout compared to Bootstrap defaults */
.text-center {
  text-align: left !important;
}
.contact-form {
  justify-content: center !important;
}
.hero-buttons {
  justify-content: left !important;
}

/* Mobile: hero headings/buttons back to centered alignment */
@media (max-width: 767px) {
  .hero-center {
    text-align: center !important;
  }

  .hero-buttons {
    justify-content: center !important;
  }
}

/* ========== Contact Modal (Avalora) ========== */
/* Modal styling for “Thank you / error” contact feedback */
.modal-avalora {
  border-radius: 24px 0 24px 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(198, 160, 77, 0.15), transparent 60%),
    linear-gradient(145deg, #ffffff 0%, #faf5ea 40%, #f3e4c8 100%);
  border: 1px solid rgba(198, 160, 77, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.modal-avalora-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  opacity: 0.96;
}

.modal-avalora-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2c2d33;
}

.modal-avalora-text {
  font-size: 0.97rem;
  color: var(--muted);
}

.modal-avalora-text span.subtle {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #868e96;
}

/* ========== Sending Overlay (global “sending…” state) ========== */
/* Full-screen dark overlay used while the form is sending */
.sending-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Frosted-glass box in the middle with spinner + text */
.sending-box {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 30px 40px;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  backdrop-filter: blur(6px);
  font-size: 1.1rem;
}
/* ========== Cookie Banner ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  background: rgba(15, 17, 21, 0.96);
  color: #f8f9fa;
  padding: 12px 0;
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(198, 160, 77, 0.45);
}

.cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cookie-text {
  flex: 1 1 260px;
  color: #e9ecef;
}

.cookie-link {
  color: #ffd27a;
  text-decoration: underline;
}

.cookie-link:hover {
  color: #ffe2a8;
}

.cookie-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* Mobile: stack text + buttons nicely */
@media (max-width: 576px) {
  .cookie-inner {
    align-items: flex-start;
  }
  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
.footer-privacy-link {
  color: var(--gold) !important;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.footer-privacy-link:hover {
  opacity: 1;
}
/* ====================================================================== */
/* SHORT-VIEWPORT HERO OPTIMIZATION (for laptop screens < 600px tall)     */
/* ====================================================================== */
@media (max-height: 700px) {

  /* Reduce hero minimum height */
  .hero {
    min-height: 80vh;
    height: auto;
    padding-top: 60px;
    padding-bottom: 40px;
  }

  /* Compress spacing inside container */
  .hero .container {
    max-width: 760px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  /* Smaller logo */
  .hero .contact-logo {
    max-width: 160px;
    margin-bottom: 10px;
  }

  /* Title compression */
  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  /* Lead paragraph compression */
  .hero .hero-lead {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 18px;
    max-width: 90%;
  }

  /* Buttons shrink + closer together */
  .hero-buttons a {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
  }

  .hero-buttons {
    gap: 0.5rem;
  }

  /* Background image re-centering */
  .hero-bg img {
    object-position: center 40%;
    transform: scale(1.04);
  }

  /* Overlay reduced to show more image */
  .hero-overlay {
    background:
      radial-gradient(600px 240px at 80% -10%, rgba(110, 168, 254, 0.10), transparent 60%),
      radial-gradient(500px 200px at -10% -10%, rgba(159, 209, 139, 0.10), transparent 60%),
      linear-gradient(180deg, rgba(12, 14, 18, 0.30), rgba(12, 14, 18, 0.55));
  }
}
/* ==========================================================================
   Hero spacing for small screens (avoid logo under navbar)
   ========================================================================== */
@media (max-width: 767.98px) {
  .hero {
    padding-top: 110px;   /* clears fixed navbar + some breathing room */
    padding-bottom: 40px; /* keep it balanced */
  }

  /* Optional: tighten vertical center effect slightly on mobile */
  .hero .container {
    margin-top: 0;
  }
}
