/* Global styles for G‑Apps site */
:root {
  --bg: #f7f3ec; /* soft warm background */
  --surface: #ffffff;
  --text: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --line: #e5e7eb;
  --brand-a: #ff6a00; /* orange */
  --brand-b: #ee0979; /* pink */
  --brand-c: #7c3aed; /* violet */
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 85% -10%, rgba(124,58,237,0.10), transparent 60%),
              radial-gradient(1000px 700px at -10% 10%, rgba(238,9,121,0.10), transparent 60%),
              var(--bg);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  /* Responsive gutters with safe-area support for mobile */
  /* Wider gutters on small screens for breathing room */
  padding-left: max(clamp(20px, 7vw, 40px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 7vw, 40px), env(safe-area-inset-right));
}

@media (max-width: 600px) {
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  /* Ensure all content respects container padding on mobile */
  .cta .container,
  .site-footer .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Header */
.site-header { position: sticky; top: 0; backdrop-filter: saturate(1.4) blur(8px); background: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(15,23,42,0.06); z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-logo { height: 40px; }
.brand-name { font-weight: 800; letter-spacing: -0.02em; font-size: 20px; }
.site-nav { display: flex; gap: 18px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 8px 10px; border-radius: 10px; }
.site-nav a:hover { color: var(--text); background: rgba(2,6,23,0.06); }
.site-nav .active { color: var(--text); background: rgba(2,6,23,0.08); }
.nav-toggle { display: none; border: none; background: transparent; font-size: 22px; }

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; right: 20px; top: 64px; flex-direction: column; background: var(--surface); padding: 12px; border-radius: 12px; box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
}

/* Hero */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero-copy h1 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 12px; letter-spacing: -0.02em; }
.hero-copy p { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 24px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { width: min(420px, 90%); height: auto; filter: drop-shadow(0 16px 40px rgba(124,58,237,0.25)); border-radius: 28px; }
.float-badge { position: absolute; bottom: -10px; right: 8%; background: #fff; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 700; font-size: 14px; }
.hero-wave path { fill: #fff; opacity: 0.8; }
.hero-wave { display: block; width: 100%; height: 100px; }

@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } .float-badge { right: 50%; transform: translateX(50%); bottom: -16px; } }

/* Sections */
.section { padding: 56px 0; }
.section-title { margin: 0 0 20px; font-size: 28px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(2,6,23,0.12); }
.card .icon { font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--brand-b), var(--brand-a)); margin-bottom: 10px; }

@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.highlight { background: linear-gradient(180deg, rgba(124,58,237,0.08), rgba(255,255,255,0)); }
.highlight-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: center; }
.highlight-media img { width: 160px; height: 160px; border-radius: 32px; box-shadow: 0 14px 40px rgba(238,9,121,0.4); }
.immonia-bg { border-radius: 24px; box-shadow: 0 16px 48px rgba(107,62,191,0.3), 0 0 0 1px rgba(107,62,191,0.1); object-fit: cover; }
.feature-list { padding-left: 16px; }
.feature-list li { margin: 6px 0; color: var(--muted); }

@media (max-width: 900px) { .highlight-inner { grid-template-columns: 1fr; text-align: left; } }

.cta { padding: 72px 0; }
.cta-inner { background: linear-gradient(135deg, var(--brand-b), var(--brand-a) 60%, var(--brand-c)); color: #fff; padding: 36px; border-radius: 20px; text-align: center; box-shadow: 0 20px 50px rgba(238,9,121,0.35); width: 100%; box-sizing: border-box; }

@media (max-width: 600px) {
  .cta { padding: 40px 20px !important; }
  .cta .container.cta-inner { 
    padding-left: 0 !important; 
    padding-right: 0 !important; 
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }
  .cta-inner { padding: 24px 20px !important; }
  .section { padding: 40px 0; }
  .footer-grid { padding: 30px 0; }
  .legal { padding: 16px 0; }
}
.btn-invert { background: #fff; color: var(--text); }

/* Buttons */
.btn { --p: linear-gradient(135deg, var(--brand-b), var(--brand-a)); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { color: #fff; background: var(--p); box-shadow: 0 12px 24px rgba(238,9,121,0.25); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-immonia { color: #fff; background: linear-gradient(135deg, #6B3EBF, #542E91); box-shadow: 0 12px 24px rgba(107,62,191,0.25); }
.btn-immonia:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(2,6,23,0.04); }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid rgba(15,23,42,0.08); background: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; padding: 30px 0; }
.footer-brand img { height: 40px; }
.site-footer h4 { margin: 0 0 10px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.site-footer a { color: inherit; text-decoration: none; }
.legal { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; color: var(--muted); font-size: 14px; }
.mil-logo { height: 40px; width: auto; opacity: 0.8; }
.socials { display: flex; gap: 10px; align-items: center; }
.social { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* Products page */
.page-hero { padding: 56px 0 8px; }
.products-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.product-card { display: grid; grid-template-columns: 160px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.product-media img { width: 140px; height: 140px; border-radius: 28px; }
.product-media .immonia-bg { border-radius: 20px; box-shadow: 0 12px 36px rgba(107,62,191,0.25), 0 0 0 1px rgba(107,62,191,0.08); }
.product-actions { display: flex; gap: 10px; align-items: center; }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(124,58,237,0.1); color: var(--text); border: 1px solid rgba(124,58,237,0.25); font-weight: 700; }

@media (max-width: 800px) { .product-card { grid-template-columns: 1fr; text-align: left; } .product-media img { width: 120px; height: 120px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 12px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: rgba(124,58,237,0.6); box-shadow: 0 0 0 4px rgba(124,58,237,0.15); }
.form-note { color: var(--muted); font-size: 14px; }
.contact-list { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.contact-list li { margin: 8px 0; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
