/* ============================================================
   Powell Support Services — Stylesheet
   Design System: Navy/Blue B2B Consulting
   ============================================================ */

/* ------------------------------------------------------------
   Google Fonts Import
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  --color-primary:    #0A1F44;
  --color-accent:     #1a56db;
  --color-bg:         #ffffff;
  --color-surface:    #f7f9fc;
  --color-text:       #1a1a2e;
  --color-muted:      #6b7280;
  --color-border:     #e5e7eb;

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

  --shadow-default:   0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover:     0 8px 24px rgba(0, 0, 0, 0.12);

  --transition:       0.2s ease;

  --radius-card:      12px;
  --radius-pill:      999px;

  --nav-height:       68px;
}

/* ------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--color-primary);
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ------------------------------------------------------------
   Layout Utilities
   ------------------------------------------------------------ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-home {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 6px;
  background-color: #ffffff;
  padding: 4px;
  transition: opacity var(--transition), transform var(--transition);
}

.nav-home:hover .nav-logo-img {
  opacity: 0.88;
  transform: scale(1.04);
}

.nav-brand {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin-left: 10px;
  transition: opacity var(--transition);
}

.nav-home:hover .nav-brand {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9375rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover {
  color: #ffffff;
  border-bottom-color: var(--color-accent);
}

/* Higher specificity (.nav-links .nav-phone = 0,2,0) beats .nav-links a (0,1,1) */
.nav-links .nav-phone {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--color-accent);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border-bottom: none;
  transition: background-color var(--transition), transform var(--transition);
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links .nav-phone:hover {
  background-color: #1648c0;
  border-bottom-color: transparent;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ------------------------------------------------------------
   Hero — Full-Width (Home)
   ------------------------------------------------------------ */
.hero {
  min-height: 62vh;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 32px) 24px 56px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-title {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
  max-width: 760px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.125rem;
  font-weight: 400;
  max-width: 600px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Page Hero — Inner Pages (About / Services / Contact)
   ------------------------------------------------------------ */
.page-hero {
  min-height: 35vh;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 24px 56px;
}

.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.page-hero h1 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.0625rem;
  max-width: 560px;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn-primary,
.btn-outline {
  display: inline-block;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  letter-spacing: 0.01em;
}

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

.btn-primary:hover {
  background-color: #1648c0;
  border-color: #1648c0;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(26, 86, 219, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

/* Hero button group */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section {
  padding: 56px 0;
  background-color: var(--color-bg);
}

.section-alt {
  padding: 56px 0;
  background-color: var(--color-surface);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   Service Grid & Cards
   ------------------------------------------------------------ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-default);
  transition: box-shadow var(--transition), transform var(--transition),
              border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--color-accent);
}

.service-card h3 {
  line-height: 1.3;
}

.service-card p {
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  flex: 1;
}

/* ------------------------------------------------------------
   Value Section
   ------------------------------------------------------------ */
.value-section {
  background-color: var(--color-primary);
  color: #ffffff;
  text-align: center;
  padding: 56px 0;
}

.value-section .section-title {
  color: #ffffff;
}

.value-section p,
.value-section .section-lead {
  color: rgba(255, 255, 255, 0.75);
}

/* ------------------------------------------------------------
   Contact Section
   ------------------------------------------------------------ */
.contact-section {
  text-align: center;
  background-color: var(--color-surface);
}

.contact-section .section-title {
  margin-bottom: 24px;
}

.contact-section p {
  color: var(--color-muted);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.contact-phone {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.contact-phone:hover {
  color: var(--color-accent);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  padding: 32px 0;
  font-size: 0.875rem;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-brand {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer a:hover {
  color: #ffffff;
}

/* ------------------------------------------------------------
   About & Bio Layout
   ------------------------------------------------------------ */
.about-grid {
  display: flex;
  gap: 48px;
}

.about-col {
  flex: 1;
}

.bio-block {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.bio-block .btn-primary {
  margin-top: 24px;
  display: inline-block;
}

/* Contact email link */
.contact-email {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  display: block;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.contact-email:hover {
  color: var(--color-primary);
}

/* Contact page label/meta text */
.contact-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.contact-meta {
  font-weight: 500;
  margin-top: 12px;
}

.contact-availability {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Services/index "View All" link centering */
.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Offset anchors so fixed nav doesn't obscure content */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

/* ------------------------------------------------------------
   Responsive — 768px Breakpoint
   ------------------------------------------------------------ */
@media (max-width: 768px) {

  /* Typography scale-down */
  h1,
  .hero-title {
    font-size: 2rem;
  }

  h2,
  .section-title {
    font-size: 1.625rem;
  }

  .page-hero h1 {
    font-size: 1.875rem;
  }

  .contact-phone {
    font-size: 1.75rem;
  }

  /* Navigation */
  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .navbar {
    height: auto;
    padding: 12px 0;
  }

  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.875rem;
  }

  /* Hero */
  .hero {
    min-height: 70vh;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Page Hero */
  .page-hero {
    min-height: 28vh;
    padding-top: 100px;
    padding-bottom: 40px;
  }

  /* Sections */
  .section,
  .section-alt,
  .value-section,
  .contact-section {
    padding: 40px 0;
  }

  .section-title {
    margin-bottom: 32px;
  }

  /* Service Grid — collapse to single column */
  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* About grid — stack on mobile */
  .about-grid {
    flex-direction: column;
    gap: 32px;
  }

  /* Footer */
  .footer-links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .btn-primary,
  .btn-outline {
    padding: 12px 24px;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
  }

  .hero-title {
    font-size: 1.75rem;
  }
}
