/* Brand Colors */
:root {
  --brand-navy: #1e3a5f;
  --brand-orange: #ff6b35;
  --brand-light: #f8fafc;
  --brand-gray: #64748b;
  --text: #0f172a;
  --bg: #ffffff;
  --border: #e2e8f0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

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

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

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-orange {
  color: var(--brand-orange);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--brand-orange);
  color: white;
}

.btn-primary:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

/* Navigation */
nav#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.nav-brand-subtitle {
  font-size: 0.75rem;
  color: var(--brand-gray);
}

.nav-logo {
  height: 45px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--brand-navy);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--brand-orange);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--brand-navy);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Local hero image (placed in /assets/hero.jpg). If you prefer the original Unsplash URL, restore it.
    The image is layered under a gradient for contrast. */
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.9), rgba(30, 58, 95, 0.7)),
          url('assets/hero.jpg') center/cover;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  text-align: center;
  color: white;
  padding: 3rem 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Info Section */
.info-section {
  padding: 5rem 0;
  background: white;
}

.info-grid {
  display: block;
  max-width: 800px;
  margin: 0 auto;
}

.section-title {
  color: var(--brand-navy);
  margin-bottom: 1.5rem;
}

.info-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--brand-gray);
  margin-bottom: 1.5rem;
}

.services-list {
  margin: 2rem 0;
}

.services-list h3 {
  color: var(--brand-navy);
  margin-bottom: 1rem;
}

.services-list ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.services-list li {
  padding: 0.5rem 0;
  color: var(--brand-gray);
  position: relative;
  padding-left: 1.5rem;
}

.services-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-orange);
  font-weight: bold;
}

.company-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  text-align: center;
  min-width: 140px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-orange);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--brand-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--brand-light);
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--brand-gray);
  max-width: 600px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.contact-label {
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--brand-gray);
  line-height: 1.6;
}

.contact-form-wrapper {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-title {
  color: var(--brand-navy);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--brand-navy);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
}

.form-note {
  font-size: 0.875rem;
  text-align: center;
  color: var(--brand-gray);
  margin-top: 0.5rem;
}

.form-status {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.input-error {
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 3px rgba(185,28,28,0.08);
}

.thank-you-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-card h2 {
  color: var(--brand-navy);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.thank-you-card p {
  line-height: 1.7;
  color: var(--brand-gray);
  margin-bottom: 1rem;
}

.thank-you-card a {
  color: var(--brand-orange);
  font-weight: 500;
}

/* Privacy Policy */
.privacy-policy {
  padding: 6rem 0 4rem;
  background: white;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  color: var(--brand-navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.policy-content p {
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.policy-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-content li {
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.policy-content a {
  color: var(--brand-orange);
  text-decoration: underline;
}

.policy-content a:hover {
  color: #e55a2b;
}

.form-note a {
  color: var(--brand-orange);
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--brand-navy);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.footer-brand-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 400px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Blog Section */
#blog {
  background: var(--brand-light);
  padding: 5rem 0;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 4rem;
}

.blog-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-orange);
  margin-bottom: 0.75rem;
}

.blog-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-subtitle {
  font-size: 1.125rem;
  color: var(--brand-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--bg);
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-orange);
  background: rgba(255, 107, 53, 0.1);
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
  width: fit-content;
}

.blog-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-title a:hover {
  color: var(--brand-orange);
}

.blog-excerpt {
  font-size: 0.9375rem;
  color: var(--brand-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--brand-gray);
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-orange);
  text-decoration: none;
  transition: gap 0.3s ease;
}

.blog-read-more:hover {
  gap: 0.75rem;
}

.blog-read-more::after {
  content: '→';
  font-size: 1.125rem;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Privacy Policy Page */
.privacy-policy {
  padding: 8rem 0 5rem;
  background: var(--brand-light);
}

.policy-content {
  max-width: 800px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.policy-content h2 {
  color: var(--brand-navy);
  margin: 2rem 0 1rem;
}

.policy-content p,
.policy-content ul {
  margin-bottom: 1rem;
  color: var(--brand-gray);
}

.policy-content ul {
  list-style: disc;
  margin-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

.policy-content a {
  color: var(--brand-orange);
  text-decoration: underline;
}

/* Responsive */
@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .blog-title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  #blog {
    padding: 3.5rem 0;
  }

  .blog-header {
    margin-bottom: 3rem;
  }

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

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

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card-content {
    padding: 1.5rem;
  }

  .blog-card-title {
    font-size: 1.25rem;
  }

  .blog-meta {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transition: right 0.3s;
    z-index: 99;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 100;
  }

  .hero-buttons {
    flex-direction: column;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* Blog Teaser Section on Homepage */
.blog-teaser {
  background: var(--brand-light);
  padding: 4rem 0;
}

.blog-teaser .blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Blog Article Styling */
.blog-article {
  background: white;
  padding: 9rem 0 4rem;
  min-height: 100vh;
}

.blog-article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--brand-gray);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--brand-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--brand-orange);
}

.breadcrumb-separator {
  color: var(--brand-gray);
  opacity: 0.5;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}

.article-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-orange);
  background: rgba(255, 107, 53, 0.1);
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
}

.article-date {
  font-size: 0.875rem;
  color: var(--brand-gray);
}

.article-read-time {
  font-size: 0.875rem;
  color: var(--brand-gray);
}

.article-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.2;
  color: var(--brand-navy);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.article-excerpt {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--brand-gray);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.article-content h2 {
  font-size: 1.875rem;
  color: var(--brand-navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.article-content h3 {
  font-size: 1.5rem;
  color: var(--brand-navy);
  margin-top: 2rem;
  margin-bottom: 0.875rem;
  font-weight: 600;
}

.article-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.article-content strong {
  color: var(--brand-navy);
  font-weight: 600;
}

.article-content a {
  color: var(--brand-orange);
  text-decoration: underline;
  transition: color 0.2s;
}

.article-content a:hover {
  color: #e55a2b;
}

.article-content a.btn {
  text-decoration: none;
  color: white;
}

.article-cta {
  background: var(--brand-light);
  padding: 2rem;
  border-radius: 0.75rem;
  margin: 3rem 0;
  text-align: center;
  border-left: 4px solid var(--brand-orange);
}

.article-cta h3 {
  color: var(--brand-navy);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.article-cta p {
  color: var(--brand-gray);
  margin-bottom: 1.5rem;
}

.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.article-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-orange);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.article-footer-link:hover {
  gap: 0.75rem;
}

/* Related Posts Section */
.related-posts {
  padding: 4rem 0;
  background-color: #fafafa;
}

.related-posts-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-navy);
  text-align: center;
  margin-bottom: 3rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .blog-article {
    padding: 5rem 0 3rem;
  }
  
  .article-title {
    font-size: 1.75rem;
  }
  
  .article-excerpt {
    font-size: 1.125rem;
  }
  
  .article-content h2 {
    font-size: 1.5rem;
  }
  
  .article-content p,
  .article-content ul,
  .article-content ol {
    font-size: 1rem;
  }
}

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

@media (max-width: 640px) {
  .blog-teaser .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-teaser {
    padding: 3rem 0;
  }
}
