/**
 * grannec.com -- Redesign 2026
 * Based on Mamba v4.3.0 (BootstrapMade) -- attribution required
 */

:root {
  --color-primary: #428bca;
  --color-primary-dark: #1c5c93;
  --color-primary-light: #9eccf4;
  --color-text: #1f2d3d;
  --color-text-light: #636e72;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f9fc;
  --color-secondary: #5c768d;
  --font-body: 'Inter', 'Open Sans', sans-serif;
  --font-heading: 'Raleway', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 12px;
  --max-width: 1200px;
  --content-width: 720px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

img { max-width: 100%; height: auto; }

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
}

.site-nav .nav-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-nav.scrolled .nav-logo {
  color: var(--color-primary-dark);
}

.site-nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.site-nav.scrolled .nav-links a {
  color: var(--color-secondary);
}

.site-nav .nav-links a:hover {
  color: #fff;
}

.site-nav.scrolled .nav-links a:hover {
  color: var(--color-primary);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.site-nav.scrolled .mobile-nav-toggle {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .mobile-nav-toggle { display: block; }
  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    padding: 1rem 2rem;
    gap: 0;
    box-shadow: var(--shadow-md);
  }
  .site-nav .nav-links.open { display: flex; }
  .site-nav .nav-links a {
    color: var(--color-text);
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }
  .site-nav .nav-links a:hover { color: var(--color-primary); }
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(28, 92, 147, 0.65) 0%,
    rgba(13, 30, 45, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin: 0 0 1rem;
  letter-spacing: 2px;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  max-width: 600px;
  margin: 0 0 3rem;
  opacity: 0.9;
  line-height: 1.6;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/*--------------------------------------------------------------
# Story Section
--------------------------------------------------------------*/
.story { padding: 0; }

.story-beat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  align-items: center;
}

.story-beat.reverse { direction: rtl; }
.story-beat.reverse > * { direction: ltr; }

.story-beat-image {
  height: 100%;
  min-height: 400px;
  background-size: cover;
  background-position: center;
}

.story-beat-content {
  padding: 4rem;
  max-width: 560px;
}

.story-beat.reverse .story-beat-content {
  margin-left: auto;
}

.story-beat-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.story-beat-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.5rem;
}

.story-beat-content p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin: 0;
}

/* Full-bleed photo break between beats */
.photo-break {
  width: 100%;
  height: 50vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Disable parallax on mobile (performance) */
@media (max-width: 768px) {
  .photo-break { background-attachment: scroll; }
}

@media (max-width: 768px) {
  .story-beat {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .story-beat.reverse { direction: ltr; }
  .story-beat-image { min-height: 300px; }
  .story-beat-content {
    padding: 2.5rem 1.5rem;
    max-width: none;
  }
  .story-beat.reverse .story-beat-content { margin-left: 0; }
}

/*--------------------------------------------------------------
# Proof Strip
--------------------------------------------------------------*/
.proof-strip {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.proof-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}

.proof-logos span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b0b8c1;
}

.proof-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.proof-meta a {
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# Connect
--------------------------------------------------------------*/
.connect-section {
  padding: 5rem 2rem;
  background: var(--color-bg-alt);
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.connect-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--color-text);
}

.connect-text p {
  font-size: 1rem;
  color: var(--color-text-light);
  margin: 0 0 1rem;
  line-height: 1.7;
}

.connect-text .locations {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.connect-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.connect-cta:hover {
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.connect-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.3s, box-shadow 0.3s;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  text-decoration: none;
}

.social-link i {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.social-link span {
  font-weight: 500;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .connect-grid { grid-template-columns: 1fr; }
  .connect-social { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .connect-social { grid-template-columns: 1fr; }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
  background: var(--color-secondary);
  color: rgba(255,255,255,0.7);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--color-primary-light);
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  margin: 0 0.75rem;
}

/*--------------------------------------------------------------
# Back to top
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 999;
  background: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  transition: all 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.back-to-top i { font-size: 24px; color: #fff; line-height: 0; }
.back-to-top:hover { background: var(--color-primary-dark); color: #fff; }
.back-to-top.active { visibility: visible; opacity: 1; }

/*--------------------------------------------------------------
# AOS disable delay on mobile
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] { transition-delay: 0 !important; }
}
