/* Shared by every page: colour tokens, header + nav + mobile menu, footer.
   Loaded first; css/home.css or css/project.css follow. */

/* <img width height> attributes are there so the browser can reserve space before
   the image loads. Without this they would also fix the image's size; with it they
   only give the aspect ratio. :where() keeps it at zero specificity, so every other
   rule still wins. */
:where(img) {
    width: auto;
    height: auto;
}

:root {
    --bg: #ffffff;
    --bg2: #ffffff;
    --card: #F7F7F7;
    --text: #2f2f2f;
    --muted: #6f6f6f;
    --muted-dots: #2A2A2A;

    --primary: #0f0f0f;
    --chip: #f0f0f0;
    --dot: #FF8833;
    --border: #E3E3E3;
    --radius: 16px;
    --radius-small: 8px;

    --grey-text: #c9c9c9;
    --black-text: #111111;
    --pill-yellow: #f9d94a;
    --toggle-mint: #a9e8d8;
    --toggle-red: #e2503b;
    --toggle-orange: #f7913c;
}

/* The header, mobile menu and footer get the home page's base rules on every page,
   so they look the same everywhere (project pages don't use these rules page-wide) */
#app-header, #app-header *, .mobile-menu, .mobile-menu *, #app-footer, #app-footer * { box-sizing: border-box; }
#app-header, .mobile-menu, #app-footer { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
#app-header a, .mobile-menu a, #app-footer a { color: inherit; text-decoration: none; }
#app-header img, #app-footer img { max-width: 100%; display: block; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: #fff;
    color: #2f2f2f;
    padding-top: 72px;
}
.container {
    width: min(1100px, 94vw);
    margin: 0 auto;
}
header, footer {
    width: 100%;
}

/* ── Nav (matches index.html exactly) ── */
header {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    margin-left: 0px;
    pointer-events: auto;
}
header > .container {
    max-width: none;
    width: 100%;
    padding: 0 14px;
    display: flex;
    justify-content: center;
}
.nav {
    background: #ffffff;
    border: 1px solid #E3E3E3;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 8px 8px;
    margin: 0 auto;
    margin-top: -18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    width: auto;
    max-width: none;
}
.logo {
    font-weight: 800;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #E3E3E3;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    z-index: 12;
}
.logo span { margin-left: 0; display: inline-block; }
.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}
.nav a {
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 10px;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
}
.nav a:hover { background: #ededed; }
.nav a.active {
    background: #ffffff;
    border: 1px solid #E3E3E3;
    box-shadow: 0 12px 36px 4px rgba(0,0,0,0.12);
    position: relative;
    z-index: 6;
}
.nav a.active:hover {
    background: #ffffff;
    box-shadow: 0 14px 44px 5px rgba(0,0,0,0.14);
}
/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 4px;
    z-index: 101;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2f2f2f;
    border-radius: 2px;
    transition: 0.3s;
}
/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.97);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-size: 18px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 12px;
    transition: background 0.18s;
    color: inherit;
    text-decoration: none;
}
.mobile-menu a:hover { background: #ededed; }
/* Responsive */
@media (max-width: 700px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav { gap: 12px; }
}
@media (min-width: 701px) {
    .mobile-menu { display: none !important; }
}
@media (min-width: 900px) {
    .nav {
        justify-content: center;
        padding: 8px 12px;
        gap: 18px;
        width: auto;
    }
    .logo {
        margin-right: 6px;
        margin-left: 0;
        font-size: 26px;
        padding: 6px 12px;
    }
    .nav a { padding: 6px 12px; }
}
/* === Footer Styles (matches footer.png reference) === */
#app-footer, .app-footer {
  background: #F7F7F7;
  border-radius: 20px;
  /*box-shadow: 0 2px 18px rgba(0,0,0,0.06);*/
  margin: 64px auto 32px;
  max-width: 1180px;
  height: 612px;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.footer-container {
  padding: 28px 20px 0 20px;
  position: relative;
  z-index: 2;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-left {
  flex: 1 1 0;
  min-width: 260px;
}
.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #181818;
  margin-bottom: 16px;
  line-height: 1.2;
}
.footer-sub {
  color: #888;
  font-size: 0.9rem;
  /*margin-top: 8px;*/
  margin-bottom: 2px;
}
.footer-email {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.footer-socials {
  display: flex;
  gap: 22px;
  margin-top: 0;
  margin-bottom: 0;
}
.footer-social svg, .footer-social img {
  width: 25px;
  height: 25px;
  display: block;
  /* fill only affects inline SVG; images will ignore it */
  fill: #222;
  transition: opacity 0.2s;
}
.footer-social:hover svg,
.footer-social:hover img {
  opacity: 0.7;
}
.footer-right {
  flex: 0 0 220px;
  text-align: right;
  align-self: flex-start;
}
.footer-contact-title {
  font-weight: 550;
  color: #181818;
  font-size: 1rem;
  margin-bottom: 6px;
}
.footer-contact-phone {
  color: #8C8C8C;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.footer-location-title {
  font-weight: 550;
  color: #181818;
  font-size: 1rem;
  margin-top: 20px;
  margin-bottom: 6px;
}
.footer-location {
  color: #8C8C8C;
  font-size: 0.9rem;
}
.footer-divider {
  border-bottom: 1px solid #e5e5e5;
  margin: 32px 0 24px 0;
}
.footer-copyright {
  text-align: right;
  color: #888;
  font-size: 0.9rem;
  margin: 16px 0 64px 0;
}
.footer-svg-bg {
  position: relative;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 160px;
}
.footer-svg-bg img {
  width: 100%;
  /*max-width: 100%;*/
  /*height: 160px;*/
  object-fit: contain;
  /*opacity: 0.18;*/
  /*margin-left: -12px;*/
  margin-top: 0;
  padding: 8px;
  margin-bottom: -20px;
}
.footer-dot {
  position: absolute;
  right: 44px;
  bottom: 38px;
  width: 32px;
  height: 32px;
  /*background: #FF8C5B;*/
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255,140,91,0.08);
}
.footer-bottom-bar {
  color: #888;
  font-size: 0.81rem;
  margin: 12px 0 18px 0;
  padding-left: 4px;
  padding-bottom: 0;
}
.footer-heart {
  color: #FF8C5B;
  font-weight: 700;
  margin: 0 2px;
}
.footer-author {
  color: #FF8C5B;
  font-weight: 500;
  margin: 0 2px;
}
.footer-scroll {
  color: #FF8C5B;
  font-weight: 500;
  margin: 0 2px;
}
@media (max-width: 700px) {
  .app-footer, #app-footer {
    border-radius: 16px;
    margin: 32px 0px 0px 0px;
      min-height: 772px;

      /*margin: 32px 12px 20px 12px;*/

    /*max-width: auto*/;
  }
  .footer-container {
    padding: 24px 16px 0 16px;
  }
  .footer-top {
    flex-direction: column;
    gap: 18px;
  }
  .footer-right {
    text-align: left;
    align-self: flex-start;
    margin-top: 18px;
  }
  .footer-svg-bg img {
    /*height: 90px;*/
      width: 100%;
      /*max-width: 100%;*/
      /*height: 160px;*/
      object-fit: contain;
      /*opacity: 0.18;*/
      margin-left: -12px;
      margin-top: 0;
      padding: 8px;
      margin-bottom: 24px;
  }
  .footer-dot {
    right: 10px;
    bottom: 18px;
    width: 18px;
    height: 18px;
  }
  .footer-bottom-bar {
    font-size: 0.95rem;
    margin-bottom: 20px;
      padding-bottom: 20px;
  }
    .footer-divider {
        border-bottom: 1px solid #e5e5e5;
        margin: 0 0 8px 0;
    }
}

/* ===== Header (home-page style, shared by all pages) ===== */
header {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 100;

    pointer-events: auto;
}
header > .container {
    max-width: none;
    width: 100%;
    padding: 0 14px;
    display: flex;
    justify-content: center;
}
.nav {
    background: var(--bg);
    border: 1px solid var(--border);

    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 8px 8px;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    width: auto;
    max-width: none;
    margin-top: -18px;
}
.logo {
    position: static;
    font-weight: 800;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    z-index: 12;
}
.logo span { margin-left: 0px; display: inline-block; }
.nav a {
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 10px;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
}
.nav a:hover { background: #ededed; }
.nav a.active {
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: 0 12px 36px 4px rgba(0,0,0,0.12);
    position: relative;
    z-index: 6;
    transform: translateY(0);
}
.nav a.active:hover {
    background: var(--bg);
    box-shadow: 0 14px 44px 5px rgba(0,0,0,0.14);
}
/* Nav links wrapper for desktop */
.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}
/* Hamburger button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 4px;
    z-index: 101;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(.5,-0.3,.5,1.3), opacity 0.25s ease, background 0.2s;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    clip-path: circle(4% at calc(100% - 40px) 44px);
    transition: clip-path 0.6s cubic-bezier(.65,0,.35,1), opacity 0.5s ease, visibility 0.6s;
}
.mobile-menu.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    clip-path: circle(150% at calc(100% - 40px) 44px);
}
.mobile-menu a.mobile-nav-link {
    font-size: 20px;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 12px;
    transition: background 0.18s, transform 0.45s cubic-bezier(.22,1,.36,1), opacity 0.45s cubic-bezier(.22,1,.36,1);
    opacity: 0;
    transform: translateY(28px);
}
.mobile-menu.open a.mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.open a.mobile-nav-link:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.open a.mobile-nav-link:nth-child(2) { transition-delay: 0.22s; }
.mobile-menu.open a.mobile-nav-link:nth-child(3) { transition-delay: 0.29s; }
.mobile-menu.open a.mobile-nav-link:nth-child(4) { transition-delay: 0.36s; }
.mobile-menu a:hover { background: #ededed; }

/* ── Framer-style slide-text hover ── */
.btn-slide {
    overflow: hidden;
    /* remove the default translateY lift so GSAP controls it fully */
}
.btn-slide:hover { transform: none; }
.btn-slide-inner {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    height: 1.2em; /* clip to one line of text */
    overflow: hidden;
    pointer-events: none;
}
.btn-slide-default,
.btn-slide-hover {
    display: block;
    white-space: nowrap;
    line-height: 1.2em;
    will-change: transform;
}
/* hover duplicate starts below, out of view */
.btn-slide-hover {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(100%);
}

/* Mobile: hamburger menu */
@media (max-width: 700px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav { gap: 12px; }
}
@media (min-width: 701px) {
    .mobile-menu { display: none !important; }
}

@media (min-width: 900px) {
    .nav {
        justify-content: center;
        padding: 8px 12px;
        gap: 18px;
        width: auto;
    }
    .logo {
        position: static;
        margin-right: 6px;
        margin-left: 0px;
        font-size: 26px;
        padding: 6px 12px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--bg);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
        z-index: 12;
    }
    .nav a { padding: 6px 12px; }
}
