:root {
  /* Happywebz Brand Family Palette */
  --bg: #FBFAF7;         
  --bg-alt: #F8F0E2;     
  --text: #1F2933;
  --muted: #64748B;
  --line: #E5DFD2;
  --card: #FFFFFF;
  --brand: #C57A24;      
  --brand-soft: #EBD6B4; 
  --radius: 24px;
  --shadow: 0 16px 40px rgba(197, 122, 36, 0.08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

main { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 5vw, 80px) clamp(20px, 5vw, 56px); }

/* Header & Nav */
.site-header {
  position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 16px clamp(20px, 5vw, 56px); background: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(16px);
}
.header-left, .header-right { display: flex; align-items: center; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #fff; background: var(--brand); }
.nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.nav a { color: var(--muted); font-weight: 700; }
.nav a:hover { color: var(--brand); }

/* Typography & Hero */
.hero { padding: clamp(80px, 14vw, 150px) 0; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin-bottom: 24px; font-size: clamp(44px, 8vw, 86px); line-height: .96; letter-spacing: -.07em; }
h2 { max-width: 760px; margin-bottom: 16px; font-size: clamp(32px, 5vw, 56px); line-height: 1.02; letter-spacing: -.055em; }
.hero-copy { max-width: 700px; color: var(--muted); font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Buttons */
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 28px;
  border: 1px solid var(--brand); border-radius: 999px; font-weight: 700; cursor: pointer;
  background: var(--brand); color: #fff; transition: all 0.2s ease;
}
.button:hover { opacity: 0.9; }

/* Sections */
.section { padding: clamp(70px, 10vw, 110px) clamp(20px, 5vw, 56px); border-radius: var(--radius); }
.alt { background: var(--bg-alt); }
.section-header p { max-width: 720px; color: var(--muted); font-size: 18px; }

/* Switchers */
.site-switcher { position: relative; z-index: 50; }
.site-switcher-button {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 14px 6px 8px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); cursor: pointer;
}
.site-switcher-caret, .language-caret {
  flex: 0 0 auto; width: 10px; height: 10px; margin-left: auto; margin-right: 2px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg); transform-origin: 50% 50%; transition: transform .18s ease;
}
.site-switcher.open .site-switcher-caret, .language-switcher.open .language-caret { transform: translateY(2px) rotate(225deg); border-color: var(--brand); }
.site-switcher-menu, .language-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 55; display: none;
  min-width: 320px; padding: 8px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow);
}
.site-switcher.open .site-switcher-menu, .language-switcher.open .language-menu { display: grid; }
.site-switcher-menu a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; }
.site-switcher-menu a:hover { background: var(--bg-alt); }
.site-switcher-menu strong { font-size: 15px; }
.site-switcher-menu span { color: var(--muted); font-size: 13px; }
.child-site { padding-left: 24px !important; }

/* Language Switcher */
.language-switcher { position: relative; display: flex; align-self: center; gap: 6px; }
.language-current {
  display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 16px; background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 700; transition: all 0.2s ease; cursor: pointer;
}
.language-current:hover { background: rgba(197, 122, 36, 0.08); color: var(--brand); }
.language-current .language-caret { margin-left: 4px; margin-right: 0; }
.language-menu { right: 0; left: auto; min-width: 150px; overflow: hidden; }
.language-menu button {
  display: flex !important; align-items: center !important; gap: 10px !important; width: 100% !important;
  padding: 16px 18px !important; border: 0 !important; border-radius: 14px !important; background: var(--card) !important;
  color: var(--text) !important; font-size: 18px !important; cursor: pointer;
}
.language-menu button:hover { background: var(--bg-alt) !important; color: var(--brand) !important; }

/* Mobile Helpers */
.desktop-only { display: flex; }
.mobile-only { display: none !important; }

.mobile-menu-toggle {
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  padding: 14px; display: grid; place-items: center; gap: 4px; cursor: pointer;
}
.mobile-menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 999px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.mobile-menu-drawer, .mobile-menu-panel { display: none; }

/* Footer */
.footer { display: flex; justify-content: flex-start; padding: 32px clamp(20px, 5vw, 56px); border-top: 1px solid var(--line); color: var(--muted); }
.footer p { margin: 0; font-size: 14px; }

@media (max-width: 900px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  
  .header-left { width: 100%; justify-content: space-between; }
  .site-switcher { flex: 1; margin-right: 12px; }
  .site-switcher-button { width: 100%; justify-content: space-between; }
  
  .mobile-menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
  .mobile-menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .mobile-menu-lock { overflow: hidden; }
  
  .mobile-menu-drawer {
    position: fixed; inset: 80px 0 0; z-index: 45; display: block;
    pointer-events: none; background: rgba(251, 250, 247, 0.98); opacity: 0; visibility: hidden;
    backdrop-filter: blur(16px); transition: opacity .22s ease, visibility 0s linear .24s;
  }
  .mobile-menu-open .mobile-menu-drawer { pointer-events: auto; opacity: 1; visibility: visible; transition: opacity .22s ease, visibility 0s linear; }
  
  .mobile-menu-panel { display: grid; align-content: start; gap: 18px; position: absolute; top: 0; right: 0; width: 100%; height: 100vh; padding: 22px; }
  .mobile-menu-panel .language-switcher { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin-bottom: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .mobile-menu-panel .language-current { width: fit-content; border: 1px solid var(--line); background: var(--card); }
  .mobile-menu-panel .language-menu { position: static; display: none; width: 100%; margin-top: 12px; padding: 0; box-shadow: none; border: none; }
  .mobile-menu-panel .language-switcher.open .language-menu { display: grid; }
  
  .mobile-menu-panel .nav { display: grid; gap: 8px; font-size: 17px; }
  .mobile-menu-panel .nav a { display: block; padding: 14px 16px; border-radius: 14px; color: var(--brand); background: var(--card); border: 1px solid var(--line); font-weight: 800; }
  .site-switcher-menu { min-width: min(320px, 90vw); }
}