/* PHdigital — Shared Export Styles */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: hsl(224 40% 16%);
  --sandy: hsl(42 76% 65%);
  --white: #fff;
  --text: #fff;
  --text-muted: hsl(220 15% 65%);
  --header-bg: #fff;
  --header-fg: hsl(224 40% 16%);
  --header-muted: hsl(220 15% 55%);
  --primary: hsl(42 76% 65%);
  --primary-fg: hsl(224 40% 16%);
  --secondary-bg: hsl(224 40% 24%);
  --border: hsl(220 20% 88%);
  --border-dim: rgba(255,255,255,0.1);
  --destructive: hsl(0 84% 60%);
  --radius: 0.75rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(ellipse at bottom right, hsla(42, 52%, 28%, 0.35) 0%, hsl(224,40%,16%) 50%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
header { position: sticky; top: 0; z-index: 50; margin: 1rem 1rem 0; }
.header-inner {
  background: var(--header-bg); border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  padding: 0.75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo img { height: 2.5rem; width: auto; display: block; }
nav { display: flex; align-items: center; gap: 0.25rem; }
nav a {
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
  color: var(--header-fg); text-decoration: none; border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a.active { background: hsla(42,76%,65%,0.2); color: var(--primary); }
.lang-toggle {
  display: flex; align-items: center; gap: 0.25rem;
  background: hsla(220,15%,65%,0.15); border-radius: 0.5rem; padding: 0.25rem;
}
.lang-toggle button {
  padding: 0.375rem 0.75rem; font-size: 0.75rem; font-weight: 600;
  border: none; border-radius: 0.375rem; cursor: pointer;
  background: transparent; color: var(--header-muted); transition: all 0.2s;
}
.lang-toggle button.active {
  background: var(--primary); color: var(--primary-fg);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--header-fg); }

/* ── MAIN ── */
main { flex: 1; overflow-y: auto; padding: 3rem 1.5rem; }
.content { max-width: 48rem; margin: 0 auto; }
.content-wide { max-width: 64rem; margin: 0 auto; }
.title-block { text-align: center; margin-bottom: 3rem; }
.title-block h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  margin-bottom: 1rem; letter-spacing: -0.02em;
}
.subtitle { font-size: 1.125rem; color: var(--text-muted); max-width: 42rem; margin: 0 auto; }
.intro { color: var(--text-muted); text-align: center; margin-bottom: 2.5rem; }

/* ── ITEMS / SECTIONS ── */
.items { margin-bottom: 3.5rem; }
.item { margin-bottom: 2rem; }
.item h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.item p { color: var(--text-muted); line-height: 1.7; }
.section-block { margin-bottom: 2.5rem; }
.section-block h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; }
.section-block p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }

/* ── CTAs ── */
.ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-primary {
  display: inline-block; background: var(--primary); color: var(--primary-fg);
  padding: 0.75rem 2rem; border-radius: 0.5rem; font-weight: 600;
  text-decoration: none; transition: opacity 0.2s;
}
.cta-primary:hover { opacity: 0.9; }
.cta-secondary {
  display: inline-block; border: 1px solid var(--primary); color: var(--primary);
  padding: 0.75rem 2rem; border-radius: 0.5rem; font-weight: 600;
  text-decoration: none; transition: background 0.2s;
}
.cta-secondary:hover { background: hsla(42,76%,65%,0.1); }

/* ── PORTFOLIO GRID ── */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.portfolio-card {
  border: 1px solid var(--border-dim); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.portfolio-card:hover { border-color: hsla(42,76%,65%,0.3); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.portfolio-card .thumb {
  aspect-ratio: 4/3; overflow: hidden; background: var(--secondary-bg);
  display: flex; align-items: center; justify-content: center;
}
.portfolio-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.3s; }
.portfolio-card:hover .thumb img { transform: scale(1.05); }
.portfolio-card .info { padding: 1rem; }
.portfolio-card .info h3 { font-weight: 600; margin-bottom: 0.25rem; }
.portfolio-card .info p { font-size: 0.875rem; color: var(--text-muted); }

/* ── PRICELIST ACCORDION ── */
.accordion-group { display: flex; flex-direction: column; gap: 1rem; }
.accordion-item {
  border: 1px solid var(--border-dim); border-radius: var(--radius);
  background: hsla(224,40%,24%,0.3); overflow: hidden;
}
.accordion-header {
  width: 100%; background: none; border: none; color: var(--text);
  padding: 1.25rem 1.5rem; font-size: 1.125rem; font-weight: 600;
  text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.accordion-header::after { content: "+"; font-size: 1.25rem; transition: transform 0.2s; }
.accordion-item.open .accordion-header::after { content: "−"; }
.accordion-body { display: none; padding: 0 1.5rem 1.25rem; }
.accordion-item.open .accordion-body { display: block; }
.price-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 0.25rem; padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-dim);
}
.price-row:last-of-type { border-bottom: none; }
.price-name { font-weight: 500; }
.price-detail { font-size: 0.75rem; color: var(--text-muted); width: 100%; margin-top: 0.125rem; }
.price-value { color: var(--primary); font-weight: 600; white-space: nowrap; }
.price-notes { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-dim); }
.price-notes h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; margin-bottom: 0.5rem; }
.price-notes li { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.375rem; list-style: none; }
.price-notes li::before { content: "— "; }

/* ── CONTACT FORM ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-info h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; }
.contact-info p { color: var(--text-muted); line-height: 1.6; margin-bottom: 0.75rem; }
.contact-info .small { font-size: 0.875rem; }
.contact-info h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; margin-top: 1.5rem; }
.contact-info ul { list-style: none; }
.contact-info li { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.contact-info li::before { content: "• "; color: var(--primary); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.5rem 0.75rem; font-size: 0.875rem;
  background: var(--bg-deep); border: 1px solid var(--border-dim);
  border-radius: 0.5rem; color: var(--text); font-family: inherit;
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .error { font-size: 0.75rem; color: var(--destructive); margin-top: 0.25rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--text-muted); cursor: pointer; }
.checkbox-label input { margin-top: 0.25rem; accent-color: var(--primary); }
.btn-submit {
  width: 100%; background: var(--primary); color: var(--primary-fg);
  padding: 0.75rem; border: none; border-radius: 0.5rem;
  font-weight: 600; font-size: 1rem; cursor: pointer; transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.9; }
.form-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }
.fallback-email { font-size: 0.75rem; color: var(--text-muted); margin-top: 1.5rem; }
.fallback-email a { color: var(--primary); text-decoration: none; }
.fallback-email a:hover { text-decoration: underline; }

/* ── HERO (Index) ── */
.hero-center {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 5rem 1.5rem;
}
.hero-center .inner { text-align: center; max-width: 42rem; }
.hero-center h1 {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700;
  line-height: 1.15; margin-bottom: 1.5rem; letter-spacing: -0.02em;
}
.hero-center p { font-size: 1.125rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2.5rem; }

/* ── FOOTER ── */
footer { margin: 0 1rem 1rem; }
.footer-inner {
  background: var(--header-bg); border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.12);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-left p:first-child { font-size: 0.875rem; font-weight: 500; color: var(--header-fg); }
.footer-left p:last-child { font-size: 0.75rem; color: var(--header-muted); }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials img { width: 48px; height: 48px; }

/* ── CTA SECTION ── */
.cta-section { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-dim); }
.cta-section h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 1rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Hide language toggle on mobile */
  .lang-toggle { display: none !important; }
  
  /* Mobile menu - slide in from right */
  nav {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 280px !important;
    height: 100vh !important;
    background: var(--header-bg) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 5rem 2rem 2rem !important;
    box-shadow: -4px 0 24px rgba(0,0,0,.2) !important;
    transition: right 0.3s ease !important;
    z-index: 100 !important;
  }
  
  nav.mobile-open {
    right: 0 !important;
  }
  
  nav a {
    padding: 1rem !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 1rem !important;
  }
  
  /* Show mobile toggle button */
  .mobile-toggle {
    display: block !important;
    z-index: 101 !important;
  }
  
  /* Layout adjustments */
  .contact-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .price-row { flex-direction: column; }
}

/* Force mobile menu styles - must be last */
nav.mobile-open {
  right: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
}