@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap');

:root {
  --navy: #0D1B2A;
  --gold: #C9A84C;
  --light-bg: #F7F7F5;
  --white: #FFFFFF;
  --dark-text: #1C1C1E;
  --grey: #6B7280;
  
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Source Serif 4', serif;
  
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  background-color: var(--light-bg);
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  overflow-x: hidden;
}

body.loaded {
  opacity: 1;
}

h1, h2, h3, h4, h5, h6, .ui-text {
  font-family: var(--font-heading);
}

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

/* Typography */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

p a {
  transition: color 0.2s ease;
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.1);
}

p a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* Layout Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.bg-navy { background-color: var(--navy); color: var(--white); }
.bg-navy p { color: rgba(255, 255, 255, 0.8); }
.bg-light { background-color: var(--light-bg); }
.bg-white { background-color: var(--white); }
.bg-gold { background-color: var(--gold); color: var(--dark-text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background-color: #1a3048;
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--dark-text);
}

.btn-gold:hover {
  background-color: #dcb858;
  transform: translateY(-2px);
}

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

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

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  z-index: 1000;
  transition: box-shadow var(--transition-fast), padding var(--transition-fast);
  padding: 1.25rem 0;
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  z-index: 1001;
}

.logo strong {
  font-weight: 700;
}

.logo span {
  font-weight: 300;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--dark-text);
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-cta {
  display: flex;
  align-items: center;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav-links .nav-link {
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Offset for header */
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(-45deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

.hero-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.65%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22/%3E%3C/svg%3E');
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -15px); }
  60% { transform: translate(-50%, -7px); }
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Abstract CSS Graphic */
.hero-graphic {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  z-index: 1;
}

.shape {
  position: absolute;
  opacity: 0.8;
  mix-blend-mode: screen;
}

.shape-1 {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background-color: var(--gold);
  top: 0;
  right: 0;
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background-color: #2D6A4F; /* Teal/Green tone */
  bottom: 0;
  left: 0;
  border-radius: 20px;
  transform: rotate(15deg);
  animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--white);
  opacity: 0.2;
  top: 40%;
  left: 20%;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.1); opacity: 0.4; }
  100% { transform: scale(1); opacity: 0.2; }
}

/* Results Bar */
.results-bar {
  padding: 2.5rem 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
}

.results-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Services Overview */
.section-title {
  display: inline-block;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--gold);
  bottom: -10px;
  left: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
  border-left: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  border-left-color: var(--gold);
}

.service-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card h3 {
  color: var(--navy);
}

.service-card p {
  color: var(--grey);
  margin-bottom: 1.5rem;
}

.link-arrow {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast);
}

.link-arrow:hover {
  color: var(--gold);
}

.link-arrow span {
  transition: transform var(--transition-fast);
}

.link-arrow:hover span {
  transform: translateX(5px);
}

/* Featured Case Study */
.featured-case-study {
  background: var(--white);
  border-left: 6px solid var(--gold);
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  margin: 2rem 0;
}

.tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.featured-case-study h3 {
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.study-meta {
  margin-bottom: 1rem;
}

.study-meta strong {
  font-family: var(--font-heading);
  color: var(--navy);
}



/* Testimonial */
.testimonial {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial blockquote {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: var(--navy);
}

.testimonial cite {
  font-family: var(--font-heading);
  font-weight: 600;
  font-style: normal;
  color: var(--grey);
  display: block;
}

/* Footer */
footer {
  padding: 5rem 0 2rem;
}

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

.footer-logo {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 1rem;
  display: block;
}

.footer-about {
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--transition-fast);
}

.social-icon:hover {
  background: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Pages Specific Styles */

/* Page Hero */
.page-hero {
  padding: 120px 0 60px;
  text-align: center;
}

.breadcrumb {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Services Page */
.service-detail {
  padding: 5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.service-content {
  max-width: 800px;
  margin: 0 auto;
}

.service-content h2 {
  color: var(--navy);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.service-content h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--gold);
  bottom: 0;
  left: 0;
}

.service-includes {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.service-includes h4 {
  margin-bottom: 1rem;
  color: var(--navy);
}

.service-includes ul {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.service-includes li {
  position: relative;
  padding-left: 1.5rem;
}

.service-includes li::before {
  content: '•';
  color: var(--gold);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.engagement {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Case Studies Page */
.case-studies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.case-card {
  background: var(--white);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.case-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.client-desc {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.read-more-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.read-more-inner {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.toggle-btn {
  background: none;
  border: none;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.toggle-btn:hover {
  color: var(--gold);
}

.result-stat-large {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.result-stat-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

/* About Page */
.story-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.story-section p {
  font-size: 1.25rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.team-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.team-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.team-info {
  padding: 2rem;
}

.team-info h3 {
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.team-title {
  font-family: var(--font-heading);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.value-card {
  background: var(--navy);
  color: var(--white);
  padding: 3rem;
  text-align: center;
  border-radius: 8px;
}

.value-card h3 {
  color: var(--gold);
  margin-bottom: 0;
  font-size: 1.5rem;
}

.clients-bar {
  background: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.clients-bar h4 {
  color: var(--grey);
  margin-bottom: 2rem;
  font-weight: 500;
}

.logos-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
}

.client-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: #ccc;
  letter-spacing: -0.5px;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info {
  padding-right: 2rem;
}

.office {
  margin-bottom: 2rem;
}

.office h4 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-details {
  margin-top: 3rem;
}

.contact-details p {
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

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

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
}

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

/* Responsive */
@media (max-width: 992px) {
  .nav-links, .nav-cta {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .hero-graphic {
    display: none;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hero {
    min-height: auto;
    padding: 150px 0 100px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
}
