/* ============================================================
   STEFAN LTD. — PREMIUM WEBSITE CSS
   Brand: Navy #1A2E44 | Green #10B981 | Slate #4A5568 | White #F8FAFC
   Fonts: Inter (headings) | Open Sans (body)
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --navy: #1A2E44;
  --navy-light: #243B52;
  --navy-dark: #0F1E2E;
  --green: #10B981;
  --green-dark: #059669;
  --green-light: #D1FAE5;
  --slate: #4A5568;
  --slate-light: #A0AEC0;
  --white: #F8FAFC;
  --white-pure: #FFFFFF;
  --border: #E2E8F0;
  --overlay: rgba(26,46,68,0.6);
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1.25rem; max-width: 70ch; }
p:last-child { margin-bottom: 0; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  letter-spacing: 0.01em;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

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

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 4px 15px rgba(16,185,129,0.4);
}

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

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white-pure);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
}

.btn-block { width: 100%; }

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  height: 72px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(26,46,68,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white-pure);
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green);
  background: rgba(255,255,255,0.05);
}

.nav-cta {
  margin-left: 0.75rem;
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
  text-transform: none;
  letter-spacing: normal;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-toggle .arrow {
  font-size: 0.625rem;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white-pure);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 0.75rem;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 100;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.625rem 1rem;
  color: var(--slate);
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-menu li a:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white-pure);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === SECTION BASE === */
.section {
  padding: 5rem 0;
}

.navy-bg {
  background: var(--navy);
  color: var(--white-pure);
}

.navy-bg h2,
.navy-bg .section-title {
  color: var(--white-pure);
}

.navy-bg .section-title::after {
  background: var(--green);
}

/* === HERO === */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

/* Geometric pattern overlay (CSS-only) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, rgba(16,185,129,0.03) 12%, transparent 12.5%, transparent 87%, rgba(16,185,129,0.03) 87.5%),
    linear-gradient(150deg, rgba(16,185,129,0.03) 12%, transparent 12.5%, transparent 87%, rgba(16,185,129,0.03) 87.5%),
    linear-gradient(30deg, rgba(16,185,129,0.03) 12%, transparent 12.5%, transparent 87%, rgba(16,185,129,0.03) 87.5%),
    linear-gradient(150deg, rgba(16,185,129,0.03) 12%, transparent 12.5%, transparent 87%, rgba(16,185,129,0.03) 87.5%);
  background-size: 80px 140px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  padding: 3rem 1.5rem;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  color: var(--white-pure);
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

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

/* Page Hero (subpages) */
.page-hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  text-align: center;
  position: relative;
}

.page-hero h1 {
  color: var(--white-pure);
  max-width: 700px;
  margin: 0 auto;
}

.page-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* === SERVICES GRID === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white-pure);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--slate);
  font-size: 0.9375rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.link-arrow {
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.link-arrow:hover {
  color: var(--green-dark);
  gap: 0.5rem;
}

/* === DIFFERENTIATORS === */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.diff-card {
  background: var(--white-pure);
  padding: 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.diff-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.diff-card h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.diff-card p {
  color: var(--slate);
  font-size: 0.9375rem;
}

/* === SOCIAL PROOF / TESTIMONIALS === */
.social-proof {
  background: var(--navy);
}

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

.testimonial {
  padding: 2rem;
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 4rem;
  color: var(--green);
  font-family: var(--font-heading);
  line-height: 1;
  opacity: 0.5;
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial p {
  color: rgba(255,255,255,0.9);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white-pure);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255,255,255,0.9);
  margin: 0 auto 2rem;
}

.cta-section .btn-primary {
  background: var(--white-pure);
  color: var(--navy);
  border-color: var(--white-pure);
}

.cta-section .btn-primary:hover {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
  box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

/* === FOOTER === */
.footer {
  background: var(--navy-dark);
  color: var(--white-pure);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h4 {
  color: var(--white-pure);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--green);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.8125rem;
  margin: 0;
}

/* === CONTACT PAGE === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.contact-form-wrapper {
  background: var(--white-pure);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}

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

.contact-info {
  background: var(--white-pure);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.contact-info h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.contact-info p {
  margin-bottom: 0.75rem;
}

.contact-info a {
  color: var(--green);
  font-weight: 600;
}

.contact-info a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* === ABOUT PAGE === */
.content-section {
  max-width: 800px;
  margin: 0 auto;
}

.content-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.content-section h2 {
  margin-bottom: 2rem;
}

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

.approach-card {
  padding: 2rem;
  background: var(--white-pure);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.approach-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.approach-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.approach-card h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.approach-card p {
  color: var(--slate);
  font-size: 0.9375rem;
}

/* === SERVICE PAGE TABLE === */
.services-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.services-table thead {
  background: var(--navy);
}

.services-table th {
  color: var(--white-pure);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 1rem 1.5rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.services-table td {
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--slate);
  border-bottom: 1px solid var(--border);
}

.services-table tbody tr {
  background: var(--white-pure);
  transition: var(--transition);
}

.services-table tbody tr:nth-child(even) {
  background: var(--white);
}

.services-table tbody tr:hover {
  background: var(--green-light);
}

.services-table td strong {
  color: var(--navy);
}

/* === BLOG LAYOUT === */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.sidebar {
  background: var(--white-pure);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 6rem;
  border: 1px solid var(--border);
}

.post-meta {
  color: var(--slate-light);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.post-content h2 {
  margin: 2.5rem 0 1.5rem;
  color: var(--navy);
  font-size: 1.5rem;
}

.post-content ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

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

.breadcrumbs {
  color: var(--slate-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: var(--green);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1023px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* Mobile */
@media (max-width: 767px) {
  .section { padding: 3rem 0; }
  .hero { min-height: 70vh; }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: stretch;
    z-index: 999;
  }

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

  .nav-link {
    font-size: 1rem;
    padding: 1rem;
    text-align: center;
  }

  .nav-cta {
    margin: 1rem 0 0;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    box-shadow: none;
    padding: 0.5rem;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .dropdown.active .dropdown-menu { display: block; }

  .dropdown-menu li a {
    color: rgba(255,255,255,0.8);
    text-align: center;
  }

  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .testimonials { gap: 1rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 320px; }
  .services-table { font-size: 0.8125rem; }
  .services-table th,
  .services-table td { padding: 0.75rem; }
  .contact-form-wrapper { padding: 1.5rem; }
  .page-hero { padding: 8rem 0 3rem; }
}

/* === UTILITY === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
