/* ============================================================
   IWest Partners Group — Main Stylesheet
   ============================================================ */

/* ---- TOKENS ---- */
:root {
  --navy:      #16233a;
  --navy-mid:  #1e2f4d;
  --navy-dark: #0f1824;
  --gold:      #b8943f;
  --gold-light:#d4ad5a;
  --gold-pale: #f5edd9;
  --white:     #ffffff;
  --off-white: #f8f7f4;
  --gray-100:  #f1efe9;
  --gray-300:  #d6d2c8;
  --gray-500:  #8a8270;
  --gray-700:  #4a4540;
  --gray-900:  #1c1a17;
  --text:      #2c2a26;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 8px 32px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.18);

  --transition: 0.3s ease;
  --max-width: 1160px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ---- UTILITY ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.section { padding-block: var(--space-2xl); }
.text-center { text-align: center; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }

/* ---- TYPOGRAPHY ---- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}
.section-eyebrow.light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: var(--space-md);
}
.section-title.light { color: var(--white); }

.section-intro {
  max-width: 56ch;
  margin-inline: auto;
  color: var(--gray-700);
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
}

.body-text {
  color: var(--gray-700);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  max-width: 60ch;
}
.body-text.light { color: rgba(255,255,255,.82); }
.body-text.italic { font-style: italic; color: var(--gray-500); }
.highlight-text {
  font-weight: 500;
  color: var(--navy-mid);
  border-left: 3px solid var(--gold);
  padding-left: var(--space-sm);
  margin-block: var(--space-md);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.8em 2em;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 6px 20px rgba(184,148,63,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 6px 20px rgba(184,148,63,.4);
}

/* ---- FADE-IN ANIMATION ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.site-header.scrolled {
  background: var(--navy-dark);
  box-shadow: var(--shadow-md);
  padding-block: 0.7rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-main {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}
.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 0.45em 1em;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 18, 30, 0.72) 0%,
    rgba(22, 35, 58, 0.60) 50%,
    rgba(22, 35, 58, 0.35) 100%
  );
}


.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  padding-top: 6rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-sm);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: var(--space-md);
}
.hero-headline em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.82);
  max-width: 52ch;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,.5);
  animation: bounce 2s infinite;
  transition: color var(--transition);
}
.hero-scroll:hover { color: var(--gold-light); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Hero fallback background */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--navy);
  padding-block: var(--space-lg);
  border-bottom: 1px solid rgba(184,148,63,.2);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 140px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

.stat-divider {
  width: 1px;
  height: 3rem;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-image-wrap {
  position: relative;
  padding-left: 16px;
  padding-bottom: 16px;
}
.about-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: -16px 16px 0 rgba(184,148,63,.3), var(--shadow-lg);
  position: relative;
  z-index: 1;
  background: var(--gray-100);
  min-height: 300px;
}
/* accent handled via box-shadow — no extra element needed */
.about-image-accent { display: none; }

.about-text {
  padding-block: var(--space-md);
}
.about-text .btn {
  margin-top: var(--space-md);
}

/* ============================================================
   APPROACH
   ============================================================ */
.approach {
  background: var(--off-white);
}

.section-header {
  margin-bottom: var(--space-xl);
}

.approach-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.approach-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  border-bottom: 3px solid transparent;
}
.approach-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-bottom-color: var(--gold);
}

.card-icon {
  width: 52px; height: 52px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--gold);
}
.card-icon svg { width: 26px; height: 26px; }

.card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}
.card-text {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.65;
}

.approach-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 420px;
  background: var(--navy);
}
.approach-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity var(--transition);
  background: var(--gray-100);
}
.approach-image-wrap:hover .approach-img { opacity: 0.5; }
.approach-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
.approach-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-style: italic;
  color: var(--white);
  text-align: center;
  max-width: 600px;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.why-us-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(184,148,63,.15) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(22,35,58,.8) 0%, transparent 70%);
}

.why-us-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.why-us-text .body-text + .body-text { margin-top: 0; }
.why-us-text .btn { margin-top: var(--space-md); }

.why-us-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition), border-color var(--transition);
}
.feature-item:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(184,148,63,.3);
}

.feature-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(184,148,63,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}
.feature-icon svg { width: 20px; height: 20px; }

.feature-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.feature-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
}

/* ============================================================
   CONSULTATION FORM
   ============================================================ */
.consult-form {
  background: var(--gray-100);
}

.consult-form-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.consult-promises {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.consult-promises li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--gray-700);
  font-weight: 500;
}
.consult-promises svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--gold);
}

/* Form card */
.consult-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-sm);
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-700);
}
.required { color: var(--gold); }

.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--off-white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0.65em 0.9em;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-500); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,148,63,.15);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit {
  width: 100%;
  padding: 0.9em 2em;
  font-size: 0.9rem;
  margin-top: var(--space-xs);
}

.form-note {
  font-size: 0.72rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

.form-success[hidden] { display: none; }
.form-success {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #ecf9f1;
  border: 1.5px solid #4caf80;
  color: #1e6641;
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: var(--space-sm);
}
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

@media (max-width: 900px) {
  .consult-form-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-block: var(--space-lg);
}

.contact-detail {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.contact-icon svg { width: 20px; height: 20px; }

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.2rem;
}
.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
  transition: color var(--transition);
}
a.contact-value:hover { color: var(--gold); }

.contact-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  background: var(--gray-100);
  display: block;
}
.contact-img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(11,18,30,.8));
  color: rgba(255,255,255,.85);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 2rem 1.25rem 1rem;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  padding-block: var(--space-xl);
  border-top: 1px solid rgba(184,148,63,.2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-lg);
}

.footer-brand { text-align: left; }
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 0.3rem;
}
.footer-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,.45);
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.8rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-legal {
  text-align: right;
}
.footer-legal p {
  font-size: 0.75rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 0.3rem;
}
.footer-links {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,.3);
}
.footer-links a {
  color: rgba(255,255,255,.45);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-links span { color: rgba(255,255,255,.2); }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {

  .about-grid,
  .why-us-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image-wrap { order: -1; }

  .about-img {
    aspect-ratio: 16/9;
    height: auto;
  }

  .approach-cards { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }
  .footer-brand { text-align: center; }
  .footer-legal { text-align: center; }
  .footer-links { justify-content: center; }

  .stat-divider { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 600px) {

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.2rem; }
  .nav-cta {
    font-size: 0.9rem;
    padding: 0.6em 1.5em;
  }

  /* Close button when open */
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-headline { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .stats-grid { gap: var(--space-sm); }
  .stat-item { min-width: 120px; }

  .contact-img { aspect-ratio: 3/2; }

  .approach-image-wrap { max-height: 280px; }
  .approach-img { height: 280px; }

  .section { padding-block: var(--space-xl); }
}

/* ============================================================
   IMAGE FALLBACKS (when images not yet added)
   ============================================================ */
.hero-bg-img:not([src]),
.hero-bg-img[src=""] {
  display: none;
}

.about-img:not([src]),
.about-img[src="images/about-team.jpg"]:not([complete]) {
  min-height: 400px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-300));
}

.approach-img:not([src]),
.approach-img[src="images/approach.jpg"]:not([complete]) {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.contact-img:not([src]),
.contact-img[src="images/office-building.jpg"]:not([complete]) {
  background: linear-gradient(135deg, var(--gray-100), var(--gray-300));
  min-height: 300px;
}
