@import url('/assets/css/project-detail-polish.css');

:root {
      /* COLORS */
      --brand-bg: #BDC6C7;
      --brand-surface: #C7CFD1;
      --brand-primary: #1E1E1E;
      --brand-accent: #4C5C68;
      --brand-muted: #7C8A92;
      --brand-highlight: #D3DBDD;

      --radius-lg: 1rem;
      --radius-xl: 1.25rem;
      --shadow-soft: 0 8px 20px rgba(0,0,0,0.06);
      --transition-fast: 0.2s ease;
    }

    * { box-sizing:border-box; margin:0; padding:0; }
    html, body { height:100%; }
    html { scroll-behavior:smooth; }

    body {
      font-family:'Inter',system-ui,-apple-system,sans-serif;
      background:var(--brand-bg);
      color:var(--brand-primary);
      -webkit-font-smoothing:antialiased;
      line-height: 1.6;
      overflow-x: hidden;
    }

    body.no-scroll { overflow: hidden; height: 100vh; }

    img { max-width:100%; display:block; }
    a { color:inherit; text-decoration:none; }
    button { font-family:inherit; cursor:pointer; border:none; background:none; }

    .container {
      max-width:1120px;
      margin:0 auto;
      padding:0 16px;
    }

    .page-shell { min-height:100vh; display:flex; flex-direction:column; }
    main { flex:1; }

    /* --- HEADER --- */
    .site-header {
      position:sticky; top:0; z-index:40;
      background:rgba(199,207,209,0.96); backdrop-filter:blur(10px);
      border-bottom:1px solid var(--brand-highlight);
    }
    .nav-inner { height:56px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
    .nav-brand {
      font-family:'Poppins',sans-serif; font-weight:700; font-size:1.1rem;
      letter-spacing:0.02em; padding:4px 6px; border-radius:6px; transition:opacity var(--transition-fast);
    }
    .nav-brand:hover { opacity:0.85; }

    .nav-links-desktop { display:none; align-items:center; gap:24px; font-size:0.9rem; flex:1; justify-content:center; }
    .nav-link { position:relative; padding:6px 4px; font-family:'Poppins',sans-serif; font-weight:600; transition:color var(--transition-fast); }
    .nav-link.active { color: var(--brand-primary); }
    .nav-link:hover { color: var(--brand-primary); }

    .nav-right { display:flex; align-items:center; gap:8px; }
    .lang-select {
      background:rgba(199,207,209,0.95); border:1px solid var(--brand-highlight);
      border-radius:999px; padding:4px 10px; font-size:0.82rem; outline:none; min-width:60px; font-weight:500; cursor: pointer;
    }
    .nav-mobile-toggle {
      display:inline-flex; width:40px; height:40px; border-radius:14px;
      border:1px solid var(--brand-highlight); background:var(--brand-surface);
      align-items:center; justify-content:center;
    }
    .nav-burger { width:19px; height:2px; background:var(--brand-primary); position:relative; }
    .nav-burger::before, .nav-burger::after {
      content:""; position:absolute; left:0; width:19px; height:2px; background:var(--brand-primary);
    }
    .nav-burger::before { top:-6px; } .nav-burger::after { top:6px; }
    
    .nav-links-mobile {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      background:rgba(199,207,209,0.98);
      border-bottom:1px solid var(--brand-highlight);
      transition: max-height 0.4s ease, opacity 0.4s ease, visibility 0s linear 0.4s;
    }
    .nav-links-mobile.is-open {
      max-height: 100vh;
      opacity: 1;
      visibility: visible;
      overflow-y: auto;
      transition-delay: 0s;
    }
    .nav-links-mobile-inner { padding:12px 0 20px; display:flex; flex-direction:column; }
    .nav-link-mobile { padding:10px 0; font-family:'Poppins',sans-serif; font-weight:600; border-bottom: 1px solid rgba(0,0,0,0.03); }

    /* --- PROJECT DETAIL STYLES --- */
    .breadcrumb { margin-top: 24px; font-size: 0.85rem; color: var(--brand-muted); display: flex; align-items: center; gap: 8px; }
    .breadcrumb a:hover { text-decoration: underline; color: var(--brand-primary); }
    .breadcrumb span { opacity: 0.5; }

    .project-header { margin: 32px 0 40px; animation: heroIntro 0.7s ease-out both; }
    .ph-title { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
    .ph-slogan { font-size: 1.1rem; color: var(--brand-accent); font-weight: 500; max-width: 800px; }

    /* Slider */
    .slider-wrapper {
      position: relative; border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 48px;
      background: var(--brand-surface); box-shadow: var(--shadow-soft);
      animation: heroFade 0.8s ease-out forwards; animation-delay: 0.1s; opacity: 0;
    }
    .slider-track {
      display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
    }
    .slider-track::-webkit-scrollbar { display: none; }
    .slider-item { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 16/9; }
    .slider-img { width: 100%; height: 100%; object-fit: cover; }
    .slider-btn {
      position: absolute; top: 50%; transform: translateY(-50%);
      width: 48px; height: 48px; background: rgba(255,255,255,0.8); backdrop-filter: blur(4px);
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      font-size: 1.5rem; color: var(--brand-primary); transition: all 0.2s; z-index: 10;
    }
    .slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
    .slider-btn.prev { left: 24px; }
    .slider-btn.next { right: 24px; }

    /* Content Layout */
    .project-content { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px; animation: heroFade 0.8s ease-out forwards; animation-delay: 0.2s; opacity: 0; }
    
    .p-meta-box {
      background: var(--brand-surface); border: 1px solid var(--brand-highlight);
      border-radius: var(--radius-lg); padding: 24px; height: fit-content;
    }
    .meta-item { margin-bottom: 20px; }
    .meta-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-muted); margin-bottom: 4px; font-weight: 600; }
    .meta-value { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem; color: var(--brand-primary); }
    .meta-list { list-style: none; font-size: 0.95rem; }
    .meta-list li { margin-bottom: 8px; padding-left: 14px; position: relative; }
    .meta-list li::before { content: "•"; color: var(--brand-accent); position: absolute; left: 0; }

    .p-story h2 { font-family: 'Poppins', sans-serif; font-size: 1.5rem; margin: 32px 0 16px; color: var(--brand-primary); }
    .p-story h2:first-child { margin-top: 0; }
    .p-story p { margin-bottom: 20px; color: rgba(30,30,30,0.85); line-height: 1.7; }

    /* Footer */
    .site-footer { border-top:1px solid var(--brand-highlight); background:rgba(199,207,209,0.98); padding:24px 0; font-size:0.85rem; color:rgba(30,30,30,0.8); margin-top: auto; }
    .footer-inner { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; align-items:center; }
    .whatsapp-help-btn {
      position:fixed; right:18px; bottom:18px; z-index:50;
      background:#25D366; color:#ffffff; border-radius:999px; padding:10px 18px;
      display:inline-flex; align-items:center; gap:8px;
      font-family:'Poppins',sans-serif; font-weight:600; font-size:0.88rem;
      box-shadow:0 12px 25px rgba(0,0,0,0.18); border:none; transition:all 0.2s;
    }
    .whatsapp-help-btn:hover { transform:translateY(-2px); box-shadow:0 16px 30px rgba(0,0,0,0.24); background:#1ebe5b; }

    /* Animations & Responsive */
    @keyframes heroIntro { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
    @keyframes heroFade { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

    @media (max-width: 767px) {
      .ph-title { font-size: 1.6rem; }
      .slider-item { aspect-ratio: 4/3; }
      .slider-btn { display: none; }
    }
    @media (min-width: 768px) {
      .nav-links-desktop { display:flex; }
      .nav-mobile-toggle { display:none; }
      .nav-links-mobile { display:none; }
      .project-content { grid-template-columns: 1fr 2.5fr; }
      .ph-title { font-size: 2.8rem; }
    }
