/* ============================================
   APEX40 - Master Your Domain
   Main Stylesheet — Safari + Cross-Browser Safe
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-bg-dark: #0a0a0a;
  --color-bg-section: #111111;
  --color-bg-card: #1a1a1a;
  --color-accent: #c9a84c;
  --color-accent-hover: #e0bf5a;
  --color-text-primary: #f5f5f5;
  --color-text-secondary: #b0b0b0;
  --color-text-muted: #777777;
  --color-border: #2a2a2a;
  --color-overlay: rgba(10, 10, 10, 0.7);
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: var(--color-accent);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

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

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

ul {
  list-style: none;
}

button,
input {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-dark {
  background-color: var(--color-bg-section);
}

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

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

.section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 1.5rem auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg-dark);
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

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

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.logo-icon {
  height: 2.6rem;
  width: auto;
  display: inline-block;
  margin-right: 8px;
}

.logo span {
  color: var(--color-accent);
}

.nav-links {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  margin-left: 2rem;
}

.nav-links a:first-child {
  margin-left: 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--color-text-primary);
  display: block;
  margin-bottom: 5px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.nav-toggle span:last-child {
  margin-bottom: 0;
}

.nav-toggle.active span:nth-child(1) {
  -webkit-transform: rotate(45deg) translate(5px, 5px);
  -moz-transform: rotate(45deg) translate(5px, 5px);
  -ms-transform: rotate(45deg) translate(5px, 5px);
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  -webkit-transform: rotate(-45deg) translate(5px, -5px);
  -moz-transform: rotate(-45deg) translate(5px, -5px);
  -ms-transform: rotate(-45deg) translate(5px, -5px);
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 200px;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center top;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(10, 10, 10, 0.85)), color-stop(200px, rgba(10, 10, 10, 0)));
  background: -webkit-linear-gradient(top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0) 200px);
  background: -moz-linear-gradient(top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0) 200px);
  background: -o-linear-gradient(top, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0) 200px);
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0) 200px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 0 2rem;
}

.hero-label {
  font-family: var(--font-heading);
  font-size: calc(0.85rem + 2px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  display: block;
  text-shadow: 0 0 2px #000000, 0 0 2px #000000;
}

.hero h1 {
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero h1 span {
  color: var(--color-accent);
  display: block;
}

.hero-text {
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.hero-buttons .btn:last-child {
  margin-right: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 2;
  -webkit-animation: bounce 2s infinite;
  -moz-animation: bounce 2s infinite;
  -o-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-accent);
}

@-webkit-keyframes bounce {
  0%, 20%, 50%, 80%, 100% { -webkit-transform: translateX(-50%) translateY(0); }
  40% { -webkit-transform: translateX(-50%) translateY(-10px); }
  60% { -webkit-transform: translateX(-50%) translateY(-5px); }
}

@-moz-keyframes bounce {
  0%, 20%, 50%, 80%, 100% { -moz-transform: translateX(-50%) translateY(0); }
  40% { -moz-transform: translateX(-50%) translateY(-10px); }
  60% { -moz-transform: translateX(-50%) translateY(-5px); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- About Section --- */
.about-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.about-grid > * {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  margin-right: 4rem;
}

.about-grid > *:last-child {
  margin-right: 0;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 4px;
  -webkit-filter: grayscale(30%);
  filter: grayscale(30%);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.about-image:hover img {
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-accent);
  border-radius: 4px;
  z-index: -1;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-stats {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.about-stats .stat-item {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  margin-right: 1.5rem;
}

.about-stats .stat-item:last-child {
  margin-right: 0;
}

.stat-item h3 {
  font-size: 2.2rem;
  color: var(--color-accent);
  margin-bottom: 0.3rem;
}

.stat-item p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Services / How I Can Help --- */
.services-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: -1rem;
}

.service-card {
  width: 33.333%;
  padding: 1rem;
}

.service-card-inner {
  background: var(--color-bg-card);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
}

/* Fallback: style service-card directly if no inner wrapper */
.service-card {
  background: var(--color-bg-card);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-align: center;
  width: auto;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 30%;
  -ms-flex: 1 1 30%;
  flex: 1 1 30%;
  min-width: 280px;
  margin: 0.5rem;
  padding: 2.5rem 2rem;
}

.service-card:hover {
  border-color: var(--color-accent);
  -webkit-transform: translateY(-5px);
  -moz-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(201, 168, 76, 0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --- CTA / Email Signup Section --- */
.cta-section {
  background: -webkit-gradient(linear, left top, right bottom, from(var(--color-bg-dark)), to(#1a1510));
  background: -webkit-linear-gradient(top left, var(--color-bg-dark) 0%, #1a1510 100%);
  background: -moz-linear-gradient(top left, var(--color-bg-dark) 0%, #1a1510 100%);
  background: -o-linear-gradient(top left, var(--color-bg-dark) 0%, #1a1510 100%);
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a1510 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.cta-content h2 {
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
}

.email-form {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.email-form input[type="email"] {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 14px 18px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  margin-right: 0.75rem;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.email-form input[type="email"]::-webkit-input-placeholder { color: var(--color-text-muted); }
.email-form input[type="email"]::-moz-placeholder { color: var(--color-text-muted); opacity: 1; }
.email-form input[type="email"]:-ms-input-placeholder { color: var(--color-text-muted); }
.email-form input[type="email"]::placeholder { color: var(--color-text-muted); }

.email-form input[type="email"]:focus {
  border-color: var(--color-accent);
}

.email-form .btn {
  white-space: nowrap;
}

/* --- Approach / Philosophy Section --- */
.approach-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: -1rem;
}

.approach-item {
  width: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;
  padding: 1rem;
}

.approach-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.2);
  line-height: 1;
  min-width: 60px;
  margin-right: 1.5rem;
}

.approach-item h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.approach-item p {
  font-size: 0.95rem;
  margin: 0;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.footer-brand {
  -webkit-box-flex: 2;
  -webkit-flex: 2;
  -ms-flex: 2;
  flex: 2;
  min-width: 250px;
  margin-right: 3rem;
}

.footer-links {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 150px;
  margin-right: 3rem;
}

.footer-links:last-child {
  margin-right: 0;
}

.footer-brand .logo {
  margin-bottom: 1rem;
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 300px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

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

.footer-links ul li a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

.footer-social {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  margin-left: 1rem;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.footer-social a:first-child {
  margin-left: 0;
}

.footer-social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Legal Pages --- */
.legal-page {
  padding-top: 120px;
  padding-bottom: 4rem;
  min-height: 100vh;
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-page h3 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-page ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page ul li {
  margin-bottom: 0.5rem;
}

.legal-page hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.legal-page .check-list {
  list-style: none;
  padding-left: 0;
}

.legal-page .check-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.legal-page .check-list li::before {
  content: '\2610';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  -webkit-transform: translateY(30px);
  -moz-transform: translateY(30px);
  -ms-transform: translateY(30px);
  transform: translateY(30px);
  -webkit-transition: opacity 0.8s ease, -webkit-transform 0.8s ease;
  -moz-transition: opacity 0.8s ease, -moz-transform 0.8s ease;
  -o-transition: opacity 0.8s ease, -o-transform 0.8s ease;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-left {
  opacity: 0;
  -webkit-transform: translateX(-30px);
  -moz-transform: translateX(-30px);
  -ms-transform: translateX(-30px);
  transform: translateX(-30px);
  -webkit-transition: opacity 0.8s ease, -webkit-transform 0.8s ease;
  -moz-transition: opacity 0.8s ease, -moz-transform 0.8s ease;
  -o-transition: opacity 0.8s ease, -o-transform 0.8s ease;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  -webkit-transform: translateX(30px);
  -moz-transform: translateX(30px);
  -ms-transform: translateX(30px);
  transform: translateX(30px);
  -webkit-transition: opacity 0.8s ease, -webkit-transform 0.8s ease;
  -moz-transition: opacity 0.8s ease, -moz-transform 0.8s ease;
  -o-transition: opacity 0.8s ease, -o-transform 0.8s ease;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  transform: translateX(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .about-grid {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .about-grid > * {
    margin-right: 0;
    margin-bottom: 3rem;
  }

  .about-grid > *:last-child {
    margin-bottom: 0;
  }

  .about-image {
    -webkit-box-ordinal-group: 0;
    -webkit-order: -1;
    -ms-flex-order: -1;
    order: -1;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .approach-item {
    width: 100%;
  }

  .footer-brand {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 100%;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    margin-right: 0;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .nav-links a {
    margin-left: 0;
    margin-bottom: 2rem;
    font-size: 1.2rem;
  }

  .nav-links a:last-child {
    margin-bottom: 0;
  }

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

  .nav-toggle {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .hero-overlay {
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(10, 10, 10, 0.8)), color-stop(40%, rgba(10, 10, 10, 0.6)), to(rgba(10, 10, 10, 0.8)));
    background: -webkit-linear-gradient(top, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.6) 40%, rgba(10, 10, 10, 0.8) 100%);
    background: -moz-linear-gradient(top, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.6) 40%, rgba(10, 10, 10, 0.8) 100%);
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.6) 40%, rgba(10, 10, 10, 0.8) 100%);
  }

  .service-card {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 100%;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    min-width: 0;
  }

  .about-stats .stat-item {
    margin-right: 1rem;
  }

  .email-form {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .email-form input[type="email"] {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }

  .email-form .btn {
    width: 100%;
    text-align: center;
  }

  .footer-grid {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .footer-brand,
  .footer-links {
    margin-right: 0;
    margin-bottom: 2rem;
  }

  .footer-bottom {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom p {
    margin-bottom: 1rem;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .about-stats {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
  }

  .about-stats .stat-item {
    margin-right: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .about-stats .stat-item:last-child {
    border-bottom: none;
  }
}
