/* ==========================================================================
   Rai AI Consulting — styles.css
   Navy / Black alternating theme
   ========================================================================== */

:root {
  --gold-light: #e6c98f;
  --gold: #b6863c;
  --gold-dark: #8a6428;
  --gold-gradient: linear-gradient(120deg, #8a6428 0%, #d9b46a 35%, #f3dca3 55%, #b6863c 75%, #8a6428 100%);
  --navy: #163a56;
  --navy-deep: #0f2a40;
  --black: #14110d;
  --charcoal: #1c1912;
  --cream: #faf7f1;
  --off-white: #f4f0e8;
  --text-dark: #201c15;
  --text-muted: #6b6355;
  --text-light: #f4f0e8;
  --text-light-muted: #c9c1af;
  --border-light: #e6ddc9;
  --border-dark: rgba(244, 240, 232, 0.14);
  --radius: 6px;
  --max-width: 1140px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-light);
  background: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  background-size: 200% auto;
  color: var(--black);
  box-shadow: 0 4px 14px rgba(182, 134, 60, 0.28);
}

.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 6px 18px rgba(182, 134, 60, 0.38);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border-color: var(--border-dark);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 58, 86, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* ==========================================================================
   Hero — navy
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 110px;
  background:
    radial-gradient(circle at 15% 20%, rgba(230, 201, 143, 0.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(230, 201, 143, 0.08), transparent 45%),
    var(--navy);
  text-align: center;
}

.hero::before,
.services::before,
.contact::before,
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('logo.png') center center no-repeat;
  background-size: min(55%, 480px) auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.footer::before {
  background-size: min(28%, 220px) auto;
  opacity: 0.06;
}

.hero .container,
.services .container,
.contact .container,
.footer .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  color: var(--text-light);
}

.hero-title .accent {
  background: var(--gold-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-light-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Section header (all sections are now dark, so text is always light)
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}

.section-header h2,
.section-header.light h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 14px;
  color: var(--text-light);
}

.section-subtitle,
.section-header.light .section-subtitle {
  color: var(--text-light-muted);
  font-size: 16px;
}

/* ==========================================================================
   About — black
   ========================================================================== */

.about {
  padding: 110px 0;
  background: var(--black);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  background: rgba(244, 240, 232, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  border-color: var(--gold);
}

.about-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--gold-light);
  background: linear-gradient(135deg, rgba(182, 134, 60, 0.18), rgba(182, 134, 60, 0.05));
  border: 1px solid rgba(182, 134, 60, 0.3);
}

.about-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-light);
}

.about-card p {
  color: var(--text-light-muted);
  font-size: 15px;
}

/* ==========================================================================
   Services — navy
   ========================================================================== */

.services {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background: var(--navy);
  background-image: radial-gradient(circle at 80% 0%, rgba(230, 201, 143, 0.12), transparent 55%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(244, 240, 232, 0.1);
  border: 1px solid rgba(244, 240, 232, 0.1);
}

.service-card {
  background: var(--navy);
  padding: 44px 40px;
  transition: background 0.25s ease;
}

.service-card:hover {
  background: var(--navy-deep);
}

.service-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.service-card h3 {
  color: var(--text-light);
  font-size: 21px;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-light-muted);
  font-size: 15px;
}

/* ==========================================================================
   Newsletter — black
   ========================================================================== */

.newsletter {
  padding: 100px 0;
  background: var(--black);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.newsletter-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 18px;
  color: var(--text-light);
}

.newsletter-text p {
  color: var(--text-light-muted);
  font-size: 16px;
}

.newsletter-form {
  background: rgba(244, 240, 232, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 32px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background: rgba(244, 240, 232, 0.05);
  color: var(--text-light);
  transition: border-color 0.2s ease;
}

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

.form-group input::placeholder {
  color: var(--text-light-muted);
}

.form-note {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-light-muted);
}

/* ==========================================================================
   Contact — navy
   ========================================================================== */

.contact {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.contact-item a {
  font-size: 16px;
  color: var(--text-light);
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--gold-light);
}

.contact-item address {
  font-style: normal;
  font-size: 16px;
  color: var(--text-light);
}

.contact-cta {
  background: var(--black);
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.contact-cta p {
  color: var(--text-light-muted);
  font-size: 16px;
}

.contact-cta .btn {
  align-self: flex-start;
}

/* ==========================================================================
   Footer — black
   ========================================================================== */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(244, 240, 232, 0.1);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 34px;
  width: auto;
}

.footer-brand .tagline {
  color: var(--text-light-muted);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--text-light-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-light-muted);
  font-size: 13px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .newsletter-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 0 70px;
  }

  .about,
  .services,
  .newsletter,
  .contact {
    padding: 70px 0;
  }

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