/* ============================================
   UNITED INTELLIGENCE - Brand Stylesheet
   ============================================ */

/* --- CSS Variables (Brand) --- */
:root {
  --ui-dark: #303030;
  --ui-light: #F6E7D8;
  --ui-mid-gray: #747474;
  --ui-light-gray: #E8E8E8;
  --ui-gold: #F4B324;
  --ui-orange: #E46044;
  --ui-blue: #07A5C3;
  --ui-green: #4EA881;
  --ui-white: #FFFFFF;
  --ui-off-white: #FAFAFA;

  --font-heading: 'Roboto', 'Aptos', sans-serif;
  --font-body: 'Roboto', 'Aptos Light', sans-serif;

  --max-width: 1200px;
  --content-width: 800px;
  --nav-height: 80px;
  --section-padding: 100px;
  --section-padding-mobile: 60px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ui-dark);
  background: var(--ui-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ui-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--ui-orange);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--ui-dark);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  text-transform: none;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-padding) 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--ui-white);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.nav--scrolled {
  box-shadow: var(--shadow-md);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ui-dark);
  position: relative;
  padding-bottom: 4px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ui-gold);
  transition: width var(--transition-base);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a:hover {
  color: var(--ui-dark);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ui-dark);
  margin: 6px 0;
  transition: var(--transition-fast);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn--primary {
  background: var(--ui-gold);
  color: var(--ui-dark);
  border-color: var(--ui-gold);
}

.btn--primary:hover {
  background: #d99e1f;
  border-color: #d99e1f;
  color: var(--ui-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--ui-dark);
  border-color: var(--ui-dark);
}

.btn--secondary:hover {
  background: var(--ui-dark);
  color: var(--ui-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--white {
  background: var(--ui-white);
  color: var(--ui-dark);
  border-color: var(--ui-white);
}

.btn--white:hover {
  background: var(--ui-light);
  border-color: var(--ui-light);
  color: var(--ui-dark);
  transform: translateY(-2px);
}

.btn--outline-white {
  background: transparent;
  color: var(--ui-white);
  border-color: var(--ui-white);
}

.btn--outline-white:hover {
  background: var(--ui-white);
  color: var(--ui-dark);
  transform: translateY(-2px);
}

.btn--small {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Chevron Icon (brand motif) --- */
.chevron-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid currentColor;
  margin-left: 4px;
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--nav-height) + var(--section-padding));
  padding-bottom: var(--section-padding);
  background: var(--ui-dark);
  color: var(--ui-light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: var(--ui-gold);
  clip-path: polygon(30% 0%, 100% 50%, 30% 100%);
  opacity: 0.06;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ui-gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__tagline::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--ui-gold);
}

.hero h1 {
  color: var(--ui-white);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--ui-light);
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* --- Section Styles --- */
.section--light {
  background: var(--ui-off-white);
}

.section--cream {
  background: var(--ui-light);
}

.section--dark {
  background: var(--ui-dark);
  color: var(--ui-light);
}

.section--dark h2,
.section--dark h3 {
  color: var(--ui-white);
}

.section--gold {
  background: var(--ui-gold);
  color: var(--ui-dark);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section__header p {
  color: var(--ui-mid-gray);
  font-size: 1.1rem;
}

.section__label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ui-gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section__label::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--ui-gold);
}

/* --- Gold Divider --- */
.gold-divider {
  width: 60px;
  height: 3px;
  background: var(--ui-gold);
  border: none;
  margin: 2rem 0;
}

.gold-divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--ui-white);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: all var(--transition-base);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--ui-gold);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--ui-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--ui-gold);
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--ui-mid-gray);
}

/* --- Service Detail Sections (Services page) --- */
.service-detail {
  padding: 4rem 0;
  border-bottom: 1px solid var(--ui-light-gray);
}

.service-detail:last-of-type {
  border-bottom: none;
}

.service-detail__number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 3.5rem;
  color: var(--ui-light-gray);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.service-detail h2 {
  margin-bottom: 1.5rem;
}

.service-detail p {
  max-width: 720px;
}

/* --- Quote / Pull Quote --- */
.pull-quote {
  padding: var(--section-padding) 0;
  text-align: center;
}

.pull-quote__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-style: italic;
  color: var(--ui-mid-gray);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 0 2rem;
}

.pull-quote__text::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--ui-gold);
  margin: 0 auto 2rem;
}

/* --- About / Profile Section --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.about-intro__image {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-intro__image::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 16px;
  right: -8px;
  top: 16px;
  border: 3px solid var(--ui-gold);
  border-radius: 6px;
  z-index: -1;
}

.about-intro__image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-intro__content h2 {
  margin-bottom: 0.5rem;
}

.about-intro__role {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ui-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

/* --- Profile Grid --- */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.profile-item {
  padding: 1.5rem;
  background: var(--ui-white);
  border-radius: 6px;
  border-left: 3px solid var(--ui-gold);
}

.profile-item__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ui-gold);
  margin-bottom: 0.5rem;
}

.profile-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ui-dark);
  margin-bottom: 0.5rem;
}

.form-group label .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ui-mid-gray);
  font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ui-dark);
  background: var(--ui-white);
  border: 1px solid var(--ui-light-gray);
  border-radius: 4px;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ui-gold);
  box-shadow: 0 0 0 3px rgba(244, 179, 36, 0.15);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-success {
  display: none;
  padding: 1.5rem;
  background: #f0faf4;
  border: 1px solid var(--ui-green);
  border-radius: 6px;
  color: var(--ui-dark);
  text-align: center;
}

.form-success.visible {
  display: block;
}

/* --- Booking Embed --- */
.booking-section {
  background: var(--ui-light);
  border-radius: 6px;
  padding: 2.5rem 2rem;
}

.booking-section h3 {
  margin-bottom: 0.75rem;
}

/* --- Footer --- */
.footer {
  background: var(--ui-dark);
  color: var(--ui-light);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  color: rgba(246, 231, 216, 0.7);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ui-gold);
  margin-bottom: 1rem;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.6rem;
}

.footer__links a {
  color: rgba(246, 231, 216, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--ui-gold);
}

.footer__bottom {
  border-top: 1px solid rgba(246, 231, 216, 0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(246, 231, 216, 0.5);
  margin-bottom: 0;
}

.footer__social a {
  color: rgba(246, 231, 216, 0.5);
  margin-left: 1rem;
  transition: color var(--transition-fast);
}

.footer__social a:hover {
  color: var(--ui-gold);
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: var(--section-padding) 0;
}

.cta-banner h2 {
  color: var(--ui-dark);
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3rem;
  background: var(--ui-dark);
  color: var(--ui-light);
}

.page-header h1 {
  color: var(--ui-white);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.15rem;
  color: rgba(246, 231, 216, 0.8);
  max-width: 640px;
}

.page-header .section__label {
  margin-bottom: 1rem;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* --- LinkedIn Icon (inline SVG helper) --- */
.linkedin-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-intro__image {
    max-width: 360px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--ui-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    gap: 1.5rem;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__mobile-toggle {
    display: block;
  }

  .nav__mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .nav__mobile-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .hero__content {
    max-width: 100%;
  }

  .hero::before {
    width: 300px;
    height: 300px;
    right: -80px;
    opacity: 0.04;
  }

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

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }

  h1 {
    font-size: 2rem;
  }
}
