/* ============================================================
   HASKAP FINANCIAL — Stylesheet
   Fonts: Cormorant (display) + Karla (body) via Google Fonts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Karla:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy-deep:   #2E405C;
  --navy-mid:    #415E8A;
  --navy-light:  #4F6A95;
  --slate:       #697FA4;
  --slate-light: #8D9EB9;
  --green:       #2E8C1D;
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;
  --text-dark:   #1C2535;
  --text-mid:    #445070;
  --border:      #D8DDE8;

  --font-display: 'Cormorant', Georgia, serif;
  --font-body:    'Karla', sans-serif;

  --transition: 0.3s ease;
  --shadow-sm: 0 2px 12px rgba(46,64,92,0.08);
  --shadow-md: 0 8px 32px rgba(46,64,92,0.14);
}

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

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 150px;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(46,64,92,0.10);
}
.nav-logo img {
  height: 140px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-deep);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy-mid); }
.nav-links a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--green);
  margin-top: 2px;
  border-radius: 1px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy-deep);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 150px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.00); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(28,37,53,0.82) 0%,
    rgba(46,64,92,0.65) 55%,
    rgba(46,64,92,0.30) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 64px;
  animation: heroFadeUp 1.1s ease both;
  animation-delay: 0.3s;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 40px;
}
.hero-cta {
  display: inline-block;
  padding: 14px 34px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
}
.hero-cta:hover { background: #247016; transform: translateY(-1px); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2.4s infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.35);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Section Wrapper ────────────────────────────────────────── */
.section { padding: 80px 48px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-deep);
  margin-bottom: 24px;
}
.section-rule {
  width: 48px;
  height: 2px;
  background: var(--green);
  margin-bottom: 40px;
  border: none;
}

/* ── Services Grid ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--green);
  transition: height 0.4s ease;
}
.service-card:hover::before { height: 100%; }
.service-card:hover { background: var(--off-white); }
.service-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--border);
  line-height: 1;
  margin-bottom: 24px;
  user-select: none;
}
.service-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 16px;
  line-height: 1.25;
}
.service-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ── Firm Intro Band ────────────────────────────────────────── */
.intro-band {
  background: var(--navy-deep);
  padding: 80px 48px;
}
.intro-band .section-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.intro-band .section-label { color: var(--slate-light); }
.intro-band .section-title { color: var(--white); }
.intro-band .section-rule  { background: var(--green); }
.intro-text {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.85;
}
.intro-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 28px;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
}
.intro-cta:hover {
  background: var(--white);
  color: var(--navy-deep);
  border-color: var(--white);
}

/* ── Page Header (inner pages) ──────────────────────────────── */
.page-header {
  background: var(--navy-deep);
  padding: 200px 48px 72px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--slate-light) 100%);
}
.page-header-inner { max-width: 1120px; margin: 0 auto; }
.page-header .section-label { color: var(--slate-light); }
.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  max-width: 640px;
}

/* ── About Body ─────────────────────────────────────────────── */
.about-text-section {
  padding: 72px 48px;
  background: var(--white);
}
.about-text-section .section-inner { max-width: 800px; }
.about-body p {
  font-size: 1.02rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 22px;
}
.about-body p:last-child { margin-bottom: 0; }

/* ── Locations ──────────────────────────────────────────────── */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.location-item {
  background: var(--white);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.location-city {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-deep);
}
.location-prov {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--slate);
  letter-spacing: 0.04em;
}
.location-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 6px;
}

/* ── Haskap Accent ──────────────────────────────────────────── */
.haskap-accent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1120px;
  margin: 0 auto 72px;
  padding: 0 48px;
}
.haskap-accent-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
}
.haskap-accent-text {
  background: var(--off-white);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.haskap-accent-text .section-label { color: var(--slate); margin-bottom: 12px; }
.haskap-accent-text h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 16px;
  line-height: 1.25;
}
.haskap-accent-text p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ── Carousel ───────────────────────────────────────────────── */
.carousel-section { padding: 0 0 80px; }
.carousel-section .section-inner { max-width: 100%; padding: 0 48px; }
.carousel-section .section-label,
.carousel-section .section-title,
.carousel-section .section-rule {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.carousel-section .section-label { margin-bottom: 16px; }
.carousel-section .section-title { margin-bottom: 12px; }
.carousel-section .section-rule  { margin-bottom: 40px; }

.carousel {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
}
.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
  min-width: 100%;
  height: 500px;
  position: relative;
  flex-shrink: 0;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.carousel-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 40px 24px;
  background: linear-gradient(0deg, rgba(28,37,53,0.80) 0%, transparent 100%);
  color: rgba(255,255,255,0.88);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  font-style: italic;
  font-family: var(--font-display);
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.carousel-dot.active {
  background: var(--navy-mid);
  transform: scale(1.3);
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(28,37,53,0.65);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  font-size: 1.2rem;
  transition: background var(--transition);
  z-index: 20;
  pointer-events: all;
  -webkit-tap-highlight-color: transparent;
}
.carousel-arrow:hover { background: rgba(28,37,53,0.95); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }

/* ── Contact Form ───────────────────────────────────────────── */
.contact-section { padding: 72px 48px 80px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-info .section-label { color: var(--slate); }
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 12px;
}
.contact-info hr {
  width: 40px;
  height: 2px;
  background: var(--green);
  border: none;
  margin-bottom: 24px;
}
.contact-info p {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(65,94,138,0.10);
}
.form-group textarea { height: 140px; }
.form-submit {
  align-self: flex-start;
  padding: 14px 36px;
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.form-submit:hover { background: var(--navy-mid); transform: translateY(-1px); }
.form-success {
  display: none;
  padding: 16px 20px;
  background: #f0faf0;
  border: 1px solid #c3e6c3;
  border-radius: 2px;
  color: #1a5c1a;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--text-dark);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo a { display: inline-block; }
.footer-logo img {
  height: 96px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.45));
  transition: filter var(--transition);
}
.footer-logo img:hover {
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.70));
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}
.footer-email a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-email a:hover { color: rgba(255,255,255,0.9); }

/* ── Diamond accent ─────────────────────────────────────────── */
.diamond {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  transform: rotate(45deg);
  margin: 0 4px;
}

/* ── Utilities ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile First
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet (max 900px) ─────────────────────────────────────── */
@media (max-width: 900px) {
  /* Nav */
  .nav { padding: 0 24px; height: 115px; }
  .nav-logo img { height: 105px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 115px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 40px 32px;
    gap: 32px;
    z-index: 99;
    overflow-y: auto;
    box-shadow: 0 4px 24px rgba(46,64,92,0.12);
  }
  .nav-links.open a { font-size: 1.1rem; color: var(--navy-deep); }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { padding-top: 115px; min-height: 560px; }
  .hero-content { padding: 0 28px; max-width: 100%; }
  .hero-title { font-size: clamp(2.2rem, 7vw, 3.2rem); }

  /* Sections */
  .section { padding: 56px 24px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 1px; }

  /* Intro band */
  .intro-band { padding: 56px 24px; }
  .intro-band .section-inner { grid-template-columns: 1fr; gap: 28px; }

  /* Page header */
  .page-header { padding: 160px 24px 56px; }

  /* About */
  .about-text-section { padding: 48px 24px; }

  /* Haskap accent */
  .haskap-accent {
    grid-template-columns: 1fr;
    padding: 0 24px;
    margin-bottom: 48px;
  }
  .haskap-accent-img { height: 260px; }
  .haskap-accent-text { padding: 36px 28px; }

  /* Locations */
  .locations-grid { grid-template-columns: repeat(2, 1fr); }

  /* Carousel */
  .carousel-section .section-inner { padding: 0 24px; }
  .carousel-slide { height: 320px; }
  .carousel-caption { padding: 20px 24px 16px; font-size: 0.78rem; }
  .carousel-arrow { width: 40px; height: 40px; font-size: 1rem; }

  /* Contact */
  .contact-section { padding: 48px 24px 64px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer { flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 16px; }
  .footer-logo img { height: 72px; }
}

/* ── Mobile (max 600px) ─────────────────────────────────────── */
@media (max-width: 600px) {
  /* Nav */
  .nav { padding: 0 16px; height: 96px; }
  .nav-logo img { height: 84px; }
  .nav-links.open { top: 96px; padding: 36px 24px; }

  /* Hero */
  .hero { min-height: 500px; padding-top: 96px; }
  .hero-content { padding: 0 20px; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .hero-eyebrow { font-size: 0.85rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-cta { padding: 13px 28px; }
  .hero-scroll { display: none; }

  /* Page header */
  .page-header { padding: 140px 16px 48px; }

  /* Sections */
  .section { padding: 48px 16px; }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }

  /* Services */
  .service-card { padding: 28px 20px; }
  .service-number { font-size: 2.4rem; }

  /* Intro band */
  .intro-band { padding: 48px 16px; }

  /* Page header */
  .page-header { padding: 100px 16px 48px; }
  .page-header-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  /* About */
  .about-text-section { padding: 40px 16px; }
  .about-body p { font-size: 0.97rem; }

  /* Haskap accent */
  .haskap-accent { padding: 0 16px; margin-bottom: 40px; }
  .haskap-accent-img { height: 220px; }
  .haskap-accent-text { padding: 28px 20px; }
  .haskap-accent-text h3 { font-size: 1.5rem; }

  /* Locations */
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .location-item { padding: 20px 16px; }
  .location-city { font-size: 1.05rem; }

  /* Carousel */
  .carousel-section .section-inner { padding: 0 16px; }
  .carousel-slide { height: 240px; }
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-caption { padding: 16px 16px 12px; font-size: 0.72rem; }

  /* Contact */
  .contact-section { padding: 40px 16px 56px; }
  .form-submit { width: 100%; text-align: center; }

  /* Footer */
  .footer { padding: 28px 16px; }
  .footer-logo img { height: 56px; }
  .footer-copy { font-size: 0.72rem; }
}
