/* =========================================================
   MaxSell Agency - onepager
   Brand colors: Gold #D9B100 / Dark #171717 / White #FFFFFF
   Font: Outfit
   ========================================================= */

:root {
  --gold: #D9B100;
  --gold-light: rgba(217, 177, 0, 0.1);
  --gold-border: rgba(217, 177, 0, 0.2);
  --dark: #171717;
  --light: #FFFFFF;

  --foreground: #171717;
  --muted-foreground: #6b6b6b;
  --secondary-bg: #f5f5f5;
  --border-color: #e5e5e5;

  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--foreground);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

.text-gold { color: var(--gold); }

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section {
  padding: 5rem 0;
}
@media (min-width: 768px) { .section { padding: 6rem 0; } }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }

.section-alt {
  background: var(--secondary-bg);
}

.section-heading {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}
.section-heading h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}
.section-heading p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}
@media (min-width: 768px) {
  .section-heading h2 { font-size: 2.25rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  border-radius: var(--radius);
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--light);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
  height: 3rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--light);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-head-img {
  height: 2.75rem;
  width: auto;
}

.nav-links {
  list-style: none;
  display: none;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s ease;
}
.nav-links li a:hover { color: var(--gold); }
.nav-links li a.active { color: var(--gold); }
.nav-links li a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
}
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  background: var(--light);
  border-top: 1px solid transparent;
  transition: max-height 0.3s ease, border-color 0.3s ease;
}
.mobile-nav.is-open {
  max-height: 20rem;
  border-top-color: var(--border-color);
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-nav ul li a {
  display: block;
  padding: 0.6rem 0.25rem;
  font-size: 1.05rem;
  font-weight: 500;
}
.mobile-nav ul li a.active { color: var(--gold); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1684400661290-50c3f2600cf0?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.95), rgba(255,255,255,0.90), rgba(255,255,255,0.85));
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}
.hero-title {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero-lead {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
@media (min-width: 768px) {
  .hero-title { font-size: 3rem; }
  .hero-lead { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 3.75rem; }
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-2 {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cards (services) ---------- */
.card {
  background: var(--light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.card p {
  color: var(--muted-foreground);
  line-height: 1.7;
  font-size: 1rem;
}

.icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold);
}
.icon-box-sm { margin-bottom: 0; }
.icon-box-lg {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-xl);
  margin-bottom: 0;
}
.icon-box-lg svg { width: 1.75rem; height: 1.75rem; }

/* ---------- Solutions list ---------- */
.solutions-grid {
  gap: 2rem;
}
@media (min-width: 1024px) {
  .solutions-grid { gap: 3rem; }
}
.solution-item {
  display: flex;
  gap: 1rem;
}
.solution-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.solution-item p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 72rem;
  margin: 0 auto;
  align-items: start;
}
@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.contact-form-wrap {
  position: relative;
  width: 100%;
}
.contact-form {
  background: var(--light);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.req { color: #dc2626; }
.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--foreground);
  background: var(--light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.form-group textarea { resize: none; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-border);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  margin-top: 1rem;
}
.form-message .msg {
  padding: 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.form-message .msg svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.form-message .msg.success {
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  color: #8a7400;
}
.form-message .msg.error {
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  color: #dc2626;
}

.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--light);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.info-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}
.info-card:hover { box-shadow: var(--shadow-lg); }
.info-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.info-card a,
.info-card p {
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
.info-card a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--light);
  border-top: 1px solid var(--border-color);
}
.footer-top {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.footer-brand {
  display: flex;
  align-items: center;
}
.footer-logo-img {
  width: 100%;
  max-width: 20rem;
  height: auto;
}
.footer-contact {
  margin-top: 2rem;
}
.footer-contact h2 {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 17.5rem;
  margin-top: 1.25rem;
}
.footer-contact ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
.footer-contact ul li a:hover { color: var(--gold); }
.footer-contact ul li a svg { width: 1rem; height: 1rem; }

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-bottom p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}
.footer-legal-link {
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.footer-legal-link:hover { color: var(--gold); }

/* ---------- Legal / content pages ---------- */
.legal-page { padding-top: 8rem; }
.legal-content {
  max-width: 48rem;
  margin: 0 auto;
}
.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .legal-content h1 { font-size: 2.5rem; }
}
.legal-updated {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: normal;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-content p,
.legal-content li {
  color: var(--muted-foreground);
  line-height: 1.75;
}
.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.legal-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
