/* ============================================
   Piesse Street Professional Services
   Main Website Styles - Redesigned
   ============================================ */

:root {
  /* Clean & Minimal Palette - White/Charcoal Primary */
  /* Abrolhos Islands accents */

  /* Primary - Charcoal (dominant text/heading colour) */
  --primary: #2e2e2e;
  --primary-dark: #1a1a1a;
  --primary-light: #f5f5f5;

  /* Accent - Abrolhos Dark Blue (buttons, links, CTAs) */
  --accent: #0b3c5d;
  --accent-dark: #082d47;
  --accent-light: #e8f0f5;

  /* Teal - Abrolhos Teal (sparingly - highlights, badges) */
  --teal: #5fa8a0;
  --teal-light: #e8f4f3;

  /* Text Colors */
  --text: #2e2e2e;
  --text-secondary: #4a5568;
  --text-muted: #6b7280;

  /* Backgrounds */
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --white: #ffffff;

  /* Borders */
  --border: #d1d5db;
  --border-light: #e8e8e8;

  /* Success */
  --success: #5fa8a0;
  --success-light: #e8f4f3;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-secondary);
  line-height: 1.7;
  background-color: var(--bg);
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h1 {
  font-size: 42px;
  font-weight: 600;
}

h2 {
  font-size: 32px;
  font-weight: 600;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}

.logo-img {
  height: 60px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-left: 60px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-link.active {
  color: var(--accent);
}

.btn-login {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  margin-left: 24px;
  transition: all 0.15s ease;
}

.btn-login:hover {
  background: var(--accent-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--accent);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  padding: 0;
  font-weight: 500;
}

.btn-text:hover {
  text-decoration: underline;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  padding: 140px 24px 80px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-content {
  max-width: 720px;
  margin-bottom: 48px;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.hero-description {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.text-accent {
  color: var(--accent);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
  padding: var(--section-padding) 0;
  background: var(--bg);
}

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  transition: all 0.15s ease;
}

.service-card:hover {
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-card.featured {
  border-color: var(--accent);
  background: linear-gradient(to bottom, var(--accent-light), var(--white));
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 12px;
}

.services-cta {
  margin-top: 32px;
}

/* ============================================
   Why Us Section
   ============================================ */

.why-section {
  padding: var(--section-padding) 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.why-item {
  text-align: center;
}

.why-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.why-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.why-item p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ============================================
   Grant Matcher Feature Section
   ============================================ */

.feature-section {
  padding: var(--section-padding) 0;
  background: var(--bg-alt);
}

.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-text h2 {
  margin-bottom: 16px;
}

.feature-text > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  margin-bottom: 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.feature-list svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-visual {
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
  border: 1px solid var(--border-light);
}

.feature-price {
  text-align: center;
}

.price-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.price-value {
  font-size: 40px;
  font-weight: 600;
  color: var(--text);
}

.price-value span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.price-note {
  display: block;
  font-size: 13px;
  color: var(--accent);
  margin-top: 4px;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  padding: var(--section-padding) 0;
  background: var(--white);
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.cta-section h2 {
  margin-bottom: 12px;
}

.cta-section > .container > p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-contact {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.cta-contact a {
  color: var(--accent);
  text-decoration: none;
}

.cta-contact a:hover {
  text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Legacy Support - Services Preview
   ============================================ */

.services-preview {
  padding: var(--section-padding) 0;
  background: var(--bg);
}

.services-preview h2 {
  text-align: center;
  margin-bottom: 48px;
}

/* ============================================
   Legacy Support - Grant Matcher Promo
   ============================================ */

.grant-matcher-promo {
  padding: var(--section-padding) 0;
  background: var(--accent);
  color: var(--white);
}

.promo-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.promo-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.grant-matcher-promo h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.grant-matcher-promo > .container > .promo-content > p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

.promo-features {
  list-style: none;
  text-align: left;
  max-width: 380px;
  margin: 0 auto 32px;
}

.promo-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-features li:last-child {
  border-bottom: none;
}

.promo-features svg {
  color: var(--teal);
  flex-shrink: 0;
}

.promo-pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.price-early {
  text-align: center;
}

.grant-matcher-promo .price-value {
  color: var(--white);
}

/* ============================================
   Legacy Support - Trust Section
   ============================================ */

.trust-section {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.trust-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.trust-content h2 {
  margin-bottom: 16px;
}

.trust-content > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.trust-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.trust-stat {
  text-align: center;
}

.trust-value {
  display: block;
  font-size: 36px;
  font-weight: 600;
  color: var(--teal);
}

.trust-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   Page-Specific Styles
   ============================================ */

.page-header {
  padding: 120px 24px 48px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
}

.page-content {
  padding: var(--section-padding) 0;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  .nav-container {
    height: 70px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    margin-left: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .btn-login {
    display: none;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-stats {
    gap: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .trust-stats {
    flex-direction: column;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
