/* ============================================================
   EricKandell.com — Main Stylesheet
   Bootstrap 5 + Custom Styles
   ============================================================ */

/* ---------- Google Fonts ---------- */
/* Imported in HTML via <link> */

/* ---------- CSS Variables ---------- */
:root {
  --green-accent: #27B824;
  --bg-dark: #0d0d0d;
  --bg-dark-2: #111111;
  --white: #ffffff;
  --border-size: 30px;
  --border-size-mobile: 20px;
  --font-accent: 'JetBrains Mono', monospace;
  --font-heading: 'Schibsted Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  /* Left inset padding so content never hugs the border */
  --content-left-pad: 71px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--white);
}

/* ---------- Outer Border Frame ---------- */
.site-frame {
  position: fixed;
  inset: var(--border-size);
  background-color: var(--bg-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Inner Scroll Container ---------- */
.site-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Navbar ---------- */
.site-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* Generous left padding so logo breathes away from the border */
  padding: 39px 40px 24px var(--content-left-pad);
  display: flex;
  align-items: center;
  gap: 40px;
  background: transparent;
}

.site-navbar .logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.site-navbar .logo-wrap img {
  height: 52px;
  width: auto;
}

.site-navbar .logo-domain {
  font-family: var(--font-accent);
  font-size: 10px;
  color: var(--green-accent);
  letter-spacing: 0.05em;
  margin-top: 2px;
  text-decoration: none;
}

.site-navbar .nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-navbar .nav-links a {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.site-navbar .nav-links a:hover,
.site-navbar .nav-links a.active {
  color: var(--green-accent);
}

/* ---------- Mobile Navbar ---------- */
.mobile-navbar {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

.mobile-navbar .logo-wrap img {
  height: 40px;
  width: auto;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu-overlay.open {
  display: flex;
}

.mobile-menu-overlay a {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu-overlay a:hover {
  color: var(--green-accent);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Page Layout (Split) ---------- */
.page-split {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Left content panel — padding uses --content-left-pad on the left */
.panel-left {
  width: 60%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 115px 60px 80px var(--content-left-pad);
  position: relative;
  background: #0d0d0d;
  z-index: 2;
  overflow: hidden;
}

/* Right image panel */
.panel-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  overflow: hidden;
  z-index: 1;
}

.panel-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: grayscale(100%);
}

/* Subtle gradient overlay on right panel for blending */
.panel-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0d0d0d 0%, rgba(13,13,13,0.15) 20%, transparent 50%);
  z-index: 2;
}

/* ---------- Typography ---------- */
.accent-label {
  font-family: var(--font-accent);
  font-size: 14px;
  color: var(--green-accent);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  display: block;
}

.page-heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.8vw, 62px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 28px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
}

.page-body p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}

.page-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Social Sidebar ---------- */
.social-sidebar {
  position: absolute;
  left: 0;
  bottom: 44px;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  /* Left padding matches --content-left-pad so icons align with content */
  padding: 0 0 0 var(--content-left-pad);
}

.social-sidebar a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.social-sidebar a:hover {
  color: var(--green-accent);
}

.social-sidebar svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.lets-connect {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 10px;
  text-transform: uppercase;
}

/* ---------- Footer Bar ---------- */
.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  /* Left padding matches content so copyright text aligns */
  padding: 18px 40px 18px var(--content-left-pad);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Punta Mita Buttons ---------- */
.btn-punta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 220px;
  gap: 4px;
}

.btn-punta .btn-label-top {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: inherit;
  opacity: 0.85;
}

.btn-punta .btn-label-bottom {
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-punta-green {
  background: var(--green-accent);
  border: 2px solid var(--green-accent);
  color: var(--white);
}

.btn-punta-green:hover {
  background: #1fa01c;
  border-color: #1fa01c;
  color: var(--white);
}

.btn-punta-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-punta-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-group-punta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ---------- About page — color image ---------- */
.panel-right.color-image img {
  filter: none;
}

/* ---------- Responsive — Mobile ---------- */
@media (max-width: 768px) {
  html, body {
    overflow: hidden;
  }

  .site-frame {
    inset: var(--border-size-mobile);
  }

  .site-navbar {
    display: none;
  }

  .mobile-navbar {
    display: flex;
  }

  .page-split {
    flex-direction: column;
  }

  .panel-left {
    width: 100%;
    padding: 80px 24px 120px 24px;
    background: #0d0d0d;
    z-index: 3;
    justify-content: flex-end;
  }

  .panel-right {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  /* Remove ALL gradients on mobile — show the image clean */
  .panel-right::before {
    display: none !important;
  }

  .panel-right img {
    object-position: center top;
  }

  .page-heading {
    font-size: clamp(28px, 8vw, 42px);
  }

  .accent-label {
    font-size: 12px;
  }

  /* On mobile, social sidebar flows in the document (not absolute) so it never overlaps text */
  .social-sidebar {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    padding: 24px 24px 0 24px;
    gap: 20px;
    bottom: auto;
    left: auto;
    z-index: 5;
  }

  .lets-connect {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 10px;
    margin-top: 0;
    align-self: center;
  }

  .site-footer {
    padding: 12px 20px;
  }

  .footer-copy {
    font-size: 10px;
  }

  .btn-group-punta {
    flex-direction: column;
    gap: 12px;
  }

  .btn-punta {
    min-width: 0;
    width: 100%;
  }

  .page-body p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-heading {
    font-size: clamp(24px, 7vw, 36px);
  }
}
