/* ============================================
   PROOP.PRO — Base CSS for client sites
   Mobile-first, modern, clean
   ============================================ */

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-secondary: #f59e0b;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary-dark);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- HEADER / NAV --- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 700px;
  padding: 2rem 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-content .btn {
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
}

.cta-section .btn {
  margin: 0 0.375rem 0.75rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-text);
}

/* --- SECTIONS --- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* --- ABOUT --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
}

/* --- CTA --- */
.cta-section {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- CONTACT CTA CARDS (replaces form) --- */
.contact-cta-wrapper {
  padding: 0;
}

.cta-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.cta-card-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.cta-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.cta-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--color-text);
  color: #fff;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 2;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 2;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-bottom a {
  color: #94a3b8;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-logo {
    font-size: 1.05rem;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: 50vh;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Buttons stack vertically on mobile */
  .hero-content .btn,
  .cta-section .btn {
    display: block;
    width: 100%;
    margin: 0 0 0.75rem 0 !important;
    text-align: center;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .stat {
    min-width: 80px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .cta-section {
    padding: 2.5rem 1rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    padding: 0.6rem 1rem;
  }

  .page-header {
    padding: 2rem 0;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .contact-form-wrapper h2 {
    font-size: 1.25rem;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.4rem;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  .service-card {
    padding: 1.25rem;
  }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-text);
  color: #fff;
  padding: 1.25rem;
  z-index: 9999;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.9rem;
  flex: 1;
  min-width: 250px;
}

.cookie-banner a {
  color: var(--color-secondary);
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.cookie-btn-accept {
  background: var(--color-primary);
  color: #fff;
}

.cookie-btn-reject {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

/* --- PAGE HEADER (subpages) --- */
.page-header {
  background: var(--color-bg-alt);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: 2rem;
}

/* --- PRIVACY POLICY --- */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.policy-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.policy-content p,
.policy-content ul {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.policy-content ul {
  padding-left: 1.5rem;
}
