/* ============================================
   Hamilton Electric Works, Inc.
   Industrial Heritage Design
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-primary: #11414b;
  --color-primary-dark: #0b2d33;
  --color-primary-light: #1a5a67;
  --color-secondary: #2562ac;
  --color-secondary-light: #3a7cc4;
  --color-accent: #d4a843;
  --color-accent-dark: #b8912e;
  --color-text: #111111;
  --color-text-light: #555555;
  --color-text-muted: #777777;
  --color-bg: #ffffff;
  --color-bg-tint: #f0f5f6;
  --color-bg-warm: #faf7f2;
  --color-bg-dark: #11414b;
  --color-bg-darker: #0b2d33;
  --color-border: #dce4e5;
  --color-white: #ffffff;

  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', sans-serif;

  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-hover: ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 150ms var(--ease-hover);
}

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

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p + p { margin-top: 1em; }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
  transition: top 200ms var(--ease-hover);
}

.skip-link:focus {
  top: 0;
}

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

/* --- Header --- */
.site-header {
  background: var(--color-primary-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--color-accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

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

.header-logo-text {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.1rem;
  line-height: 1.2;
  display: none;
}

@media (min-width: 768px) {
  .header-logo-text { display: block; }
}

/* --- Navigation --- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 102;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform 300ms var(--ease-reveal), opacity 200ms var(--ease-hover);
}

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

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

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

.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--color-primary-dark);
  padding: 5rem 2rem 2rem;
  transition: right 350ms var(--ease-reveal);
  z-index: 101;
  overflow-y: auto;
}

.main-nav.is-open {
  right: 0;
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 100;
}

.nav-overlay.is-visible {
  display: block;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  color: var(--color-white);
  padding: 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 150ms var(--ease-hover), padding-left 200ms var(--ease-hover);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
  padding-left: 0.5rem;
}

.main-nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-overlay { display: none !important; }

  .main-nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 0;
  }

  .main-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-bottom: none;
    position: relative;
  }

  .main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 250ms var(--ease-reveal);
  }

  .main-nav a:hover::after,
  .main-nav a.active::after {
    transform: scaleX(1);
  }

  .main-nav a:hover { padding-left: 0.75rem; }
}

/* --- Header Phone --- */
.header-phone {
  display: none;
}

@media (min-width: 960px) {
  .header-phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-left: 1rem;
  }

  .header-phone:hover {
    color: var(--color-white);
  }

  .header-phone svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37, 98, 172, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid rgba(212, 168, 67, 0.3);
  color: var(--color-accent);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 600ms var(--ease-reveal) 100ms both;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 700px;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeSlideUp 600ms var(--ease-reveal) 200ms both;
}

.hero-text {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 600ms var(--ease-reveal) 350ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeSlideUp 600ms var(--ease-reveal) 500ms both;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms var(--ease-hover), box-shadow 150ms var(--ease-hover), background 150ms var(--ease-hover), color 150ms var(--ease-hover);
  min-height: 44px;
  min-width: 44px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.4);
}

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

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

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

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

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

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

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

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

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

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-dark p {
  color: rgba(255,255,255,0.85);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.8);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* --- Angled Divider --- */
.angled-top {
  position: relative;
}

.angled-top::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 40px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 1;
}

.angled-bottom {
  position: relative;
}

.angled-bottom::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  height: 40px;
  background: inherit;
  clip-path: polygon(0 0, 0 100%, 100% 0);
  z-index: 1;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2rem;
  transition: transform 300ms var(--ease-reveal), box-shadow 300ms var(--ease-reveal), border-color 200ms var(--ease-hover);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(17, 65, 75, 0.1);
  border-color: var(--color-accent);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-tint);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
}

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

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card .key-points {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.service-card .key-points li {
  font-size: 0.88rem;
  color: var(--color-text-light);
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.service-card .key-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* --- Why Choose Us --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 600px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-item {
  display: flex;
  gap: 1rem;
}

.why-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(212, 168, 67, 0.15);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.section-dark .why-number {
  background: rgba(212, 168, 67, 0.2);
}

.why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.why-item p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-preview { grid-template-columns: 1fr 1fr; }
}

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

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

.about-visual {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 8px;
  padding: 3rem 2rem;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  border: 40px solid rgba(212, 168, 67, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.about-visual blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.4;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.about-visual cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-accent);
  position: relative;
  z-index: 1;
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  transition: transform 300ms var(--ease-reveal), box-shadow 300ms var(--ease-reveal);
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 65, 75, 0.08);
}

.team-avatar {
  width: 72px;
  height: 72px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-accent);
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.team-card .team-title {
  color: var(--color-accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.team-card p:not(.team-title) {
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.6;
}

.legacy-note {
  background: var(--color-bg-warm);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  border-radius: 0 6px 6px 0;
}

.legacy-note p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-style: italic;
}

/* --- History Timeline --- */
.history-content {
  max-width: 800px;
  margin: 0 auto;
}

.history-content p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- Brands --- */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.brand-tag {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color 150ms var(--ease-hover), background 150ms var(--ease-hover);
}

.brand-tag:hover {
  border-color: var(--color-accent);
  background: var(--color-bg-warm);
}

/* --- Page Hero --- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeSlideUp 600ms var(--ease-reveal) 100ms both;
}

.page-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  opacity: 0;
  animation: fadeSlideUp 600ms var(--ease-reveal) 250ms both;
}

.page-hero.tint-bg + .section {
  /* accounts for angled hero bottom */
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-placeholder {
  background: var(--color-bg-tint);
  border: 2px dashed var(--color-border);
  border-radius: 6px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

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

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-bg-tint);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

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

.contact-info-item p,
.contact-info-item a {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.contact-info-item a:hover {
  color: var(--color-primary);
}

/* --- Forms --- */
.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 150ms var(--ease-hover), box-shadow 150ms var(--ease-hover);
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(37, 98, 172, 0.15);
}

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

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  display: block;
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* --- Testimonials --- */
.testimonials-notice {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--color-bg-tint);
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.testimonials-notice p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  max-width: 320px;
  line-height: 1.6;
}

.site-footer h4 {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 0.3rem 0;
  font-size: 0.9rem;
  transition: color 150ms var(--ease-hover), padding-left 200ms var(--ease-hover);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 0.3rem;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.footer-contact p,
.footer-contact a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

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

.footer-contact .footer-item {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-payments {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-payments span {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  color: rgba(255,255,255,0.6);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease-reveal), transform 500ms var(--ease-reveal);
}

.reveal.from-left {
  transform: translateX(-24px);
}

.reveal.from-right {
  transform: translateX(24px);
}

.reveal.scale-up {
  transform: scale(0.95);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 560ms; }
.reveal-stagger > .reveal:nth-child(9) { transition-delay: 640ms; }
.reveal-stagger > .reveal:nth-child(10) { transition-delay: 720ms; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Services Detail Page --- */
.service-detail {
  max-width: 800px;
}

.service-detail p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.services-list-detailed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .services-list-detailed { grid-template-columns: repeat(2, 1fr); }
}

.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: border-color 200ms var(--ease-hover);
}

.service-list-item:hover {
  border-color: var(--color-accent);
}

.service-list-item .item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-list-item .item-icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary-dark);
}

.service-list-item h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.service-list-item p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* --- Sales Page Brands Section --- */
.brands-section {
  padding: 3rem 0;
}

.sales-content {
  max-width: 800px;
}

.sales-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* --- CTA Bar --- */
.cta-bar {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-bar h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.cta-bar p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

/* --- Mobile phone bar --- */
.mobile-phone-bar {
  display: flex;
  background: var(--color-accent);
  padding: 0;
}

.mobile-phone-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

.mobile-phone-bar a:hover {
  color: var(--color-primary-dark);
}

.mobile-phone-bar svg {
  width: 16px;
  height: 16px;
}

@media (min-width: 960px) {
  .mobile-phone-bar { display: none; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
