/* ==========================================================================
   Island Pointe Creative - Homepage
   ========================================================================== */

:root {
  --navy: #0f2d52;
  --navy-deep: #0b2545;
  --ink: #1d3557;
  --text: #4a5a6e;
  --cream: #f4f1ea;
  --cream-dark: #ebe6db;
  --line: #d9d3c6;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  margin: 0;
  line-height: 1.1;
}

h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }

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

.section { padding: 96px 0; }

.arrow { display: inline-block; margin-left: 8px; transition: transform .25s ease; }
a:hover .arrow { transform: translateX(4px); }

/* Eyebrow labels ---------------------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px;
}

.eyebrow-line { display: flex; align-items: center; gap: 16px; }
.eyebrow-line::after { content: ""; width: 48px; height: 1px; background: currentColor; }

.eyebrow-center { display: flex; align-items: center; justify-content: center; gap: 18px; }
.eyebrow-center::before,
.eyebrow-center::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5; }

.eyebrow-light { color: rgba(255, 255, 255, .85); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto; }
.section-head .lead { max-width: 620px; margin: 22px auto 0; font-size: 16px; }

/* Buttons & links --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  padding: 14px 30px;
  border: 1px solid var(--navy);
  transition: background .25s, color .25s, border-color .25s;
}

.btn-solid { background: var(--navy); color: var(--white); }
.btn-solid:hover { background: var(--navy-deep); }

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

.btn-outline-light { color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

.link-caps {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
}

.link-underline {
  display: inline-block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 45, 82, .06); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 108px; }

.logo { display: block; line-height: 0; }
.logo img { height: 88px; width: auto; }

.main-nav { display: flex; gap: 42px; }
.main-nav a {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover,
.main-nav a.active { border-color: var(--navy); }

.header-cta { font-size: 16px; padding: 11px 24px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(240, 238, 232, .85) 0%, rgba(240, 238, 232, .55) 32%, rgba(240, 238, 232, 0) 55%),
    url("https://images.unsplash.com/photo-1593536284003-ef3103cff953?auto=format&fit=crop&w=2600&q=80") 0% 55% / max(150%, 1100px) auto no-repeat;
  background-color: #c9d3dc;
}

.hero-content { padding-top: 60px; padding-bottom: 60px; }
.hero h1 { font-size: clamp(3.2rem, 7.5vw, 6.2rem); line-height: 1; letter-spacing: -.01em; margin-bottom: 30px; }
.hero-text { font-size: 19px; color: var(--ink); margin: 0 0 40px; max-width: 520px; }

/* Services ---------------------------------------------------------------- */
.services .section-head { margin-bottom: 70px; }

.services-primary { display: grid; grid-template-columns: repeat(3, 1fr); }
.services-secondary { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 64px; }

.service { padding: 0 44px; border-left: 1px solid var(--line); }
.service:first-child { border-left: 0; padding-left: 0; }
.services-secondary .service { padding: 0 24px; }
.services-secondary .service:first-child { padding-left: 0; }

.service .icon {
  width: 46px; height: 46px;
  fill: none; stroke: var(--navy); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 22px;
}
.service h3 { font-size: 25px; margin-bottom: 14px; }
.service p { font-size: 15px; margin: 0 0 22px; }

.service-sm .icon { width: 38px; height: 38px; }
.service-sm h3 { font-size: 20px; }
.service-sm p { font-size: 13.5px; }

/* Why --------------------------------------------------------------------- */
.why {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, .85);
  padding: 90px 0;
}

.why-compass {
  position: absolute;
  right: -110px; top: 50%;
  width: 420px; height: 420px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, .1);
  --compass-highlight: rgba(255, 255, 255, .04);
  pointer-events: none;
}

.why-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }

.why-copy { padding-right: 70px; border-right: 1px solid rgba(255, 255, 255, .25); }
.why h2 { color: var(--white); margin-bottom: 26px; }
.why-copy p { font-size: 16.5px; margin: 0 0 34px; max-width: 470px; }

.why-list { list-style: none; margin: 0; padding: 0 0 0 70px; display: grid; gap: 32px; }
.why-list li { display: flex; align-items: center; gap: 28px; }
.why-list .icon {
  flex: none; width: 46px; height: 46px;
  fill: none; stroke: var(--white); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.why-list h3 { color: var(--white); font-size: 25px; margin-bottom: 4px; }
.why-list p { margin: 0; font-size: 15px; }

/* Work -------------------------------------------------------------------- */
.work-head { position: relative; max-width: none; margin-bottom: 56px; }
.work-head .lead { max-width: 640px; }
.view-all { position: absolute; right: 0; top: 50%; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; }
.case { position: relative; }
.case + .case::before {
  content: ""; position: absolute; left: -26px; top: 0; bottom: 0;
  width: 1px; background: var(--line);
}

.case-img { aspect-ratio: 16 / 9.5; overflow: hidden; margin-bottom: 22px; background: var(--cream-dark); }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.case:hover .case-img img { transform: scale(1.04); }

.case .eyebrow { font-size: 10px; margin-bottom: 8px; }
.case h3 { font-size: 26px; margin-bottom: 8px; }
.case p { font-size: 15px; margin: 0 0 22px; max-width: 320px; }

/* Testimonials ------------------------------------------------------------ */
.testimonials {
  padding: 100px 0;
  background:
    linear-gradient(rgba(236, 238, 238, .55), rgba(236, 238, 238, .55)),
    url("https://images.unsplash.com/photo-1446038202205-1c96430dbdab?auto=format&fit=crop&w=2200&q=80") center / cover no-repeat;
}

.testimonials-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.testimonials h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }

.testimonial-slider { position: relative; padding-left: 26px; }
.testimonial-slider::before {
  content: "\201C";
  position: absolute; left: -6px; top: -14px;
  font-family: var(--serif); font-size: 64px; color: rgba(15, 45, 82, .45);
}

.quotes { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.quote.active { opacity: 1; visibility: visible; }
.quote blockquote {
  margin: 0 0 22px;
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.5;
  color: var(--ink);
}
.quote figcaption { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.quote .sep { margin: 0 10px; }

.slider-controls { display: flex; gap: 12px; margin-top: 30px; }
.slider-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(15, 45, 82, .5); background: transparent;
  color: var(--navy); font-size: 15px; cursor: pointer;
  transition: background .25s, color .25s;
}
.slider-btn:hover { background: var(--navy); color: var(--white); }

/* Impact ------------------------------------------------------------------ */
.impact { background: var(--navy); color: rgba(255, 255, 255, .85); padding: 80px 0 90px; }
.impact h2 { color: var(--white); font-size: clamp(2rem, 3.6vw, 2.9rem); }
.impact .lead { margin-top: 16px; max-width: 700px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
.stat { text-align: center; padding: 6px 20px; border-left: 1px solid rgba(255, 255, 255, .3); }
.stat:first-child { border-left: 0; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 4.5vw, 3.6rem); color: var(--white); line-height: 1.1; margin-bottom: 10px; }
.stat-label { display: block; font-size: 14px; }

/* CTA --------------------------------------------------------------------- */
.cta {
  padding: 110px 0 140px;
  background:
    linear-gradient(rgba(244, 241, 234, .8), rgba(244, 241, 234, .35)),
    url("https://images.unsplash.com/photo-1709053298539-c848f7726e39?auto=format&fit=crop&w=2200&q=80") center 60% / cover no-repeat;
}
.cta h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.cta .lead { color: var(--ink); margin-bottom: 36px; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--cream); }
.footer-top {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding-top: 36px; padding-bottom: 36px;
}
.site-footer .logo img { height: 70px; }

.footer-nav { display: flex; gap: 46px; }
.footer-nav a { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--navy); }
.footer-nav a:hover { text-decoration: underline; }

.social { display: flex; gap: 26px; padding-left: 40px; border-left: 1px solid var(--line); }
.social svg { width: 22px; height: 22px; fill: var(--navy); }
.social svg.stroke { fill: none; stroke: var(--navy); stroke-width: 2; }
.social svg .fill { fill: var(--navy); stroke: none; }
.social a:hover svg { opacity: .7; }

.footer-bottom {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 22px; padding-bottom: 26px;
  font-size: 13px;
}
.footer-bottom p { margin: 0; }

/* Reveal animation -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .main-nav { gap: 26px; }
  .services-secondary { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
  .services-secondary .service:nth-child(4) { border-left: 0; padding-left: 0; }
}

@media (max-width: 960px) {
  .header-inner { height: 76px; }
  .logo img { height: 58px; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 10px 32px 24px;
    display: none;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
  .main-nav a.active { border-color: var(--line); }

  .hero {
    min-height: 540px;
    background:
      linear-gradient(90deg, rgba(240, 238, 232, .92) 0%, rgba(240, 238, 232, .75) 55%, rgba(240, 238, 232, .25) 100%),
      url("https://images.unsplash.com/photo-1593536284003-ef3103cff953?auto=format&fit=crop&w=1400&q=80") 45% 60% / cover no-repeat;
  }

  .services-primary { grid-template-columns: 1fr; gap: 44px; }
  .services-primary .service { border-left: 0; padding: 0; }

  .why-inner { grid-template-columns: 1fr; gap: 56px; }
  .why-copy { padding-right: 0; border-right: 0; padding-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
  .why-list { padding-left: 0; }

  .view-all { position: static; margin-top: 22px; }
  .work-grid { grid-template-columns: 1fr; gap: 50px; }
  .case + .case::before { display: none; }
  .case p { max-width: none; }

  .testimonials-inner { grid-template-columns: 1fr; gap: 40px; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stat:nth-child(3) { border-left: 0; }

  .footer-top { flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 14px 30px; }
  .social { border-left: 0; padding-left: 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .br-desktop { display: none; }

  .hero-text { font-size: 17px; }

  .services-secondary { grid-template-columns: 1fr; row-gap: 40px; }
  .services-secondary .service { border-left: 0; padding: 0; }

  .why-list li { gap: 20px; }
  .quote blockquote { font-size: 20px; }

  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; }

  .footer-bottom { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
}
