/* ============================================
   WCAG TEST SITE - styles.css
   NOTE: This file INTENTIONALLY contains
   WCAG violations for testing purposes.
   ============================================ */

/* ---- WCAG VIOLATION: Custom fonts loaded without fallback ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --primary: #3a86ff;
  --secondary: #ff006e;
  --accent: #fb5607;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  /* WCAG VIOLATION: Low contrast text colors used throughout */
  --text-muted-bad: #aaa; /* fails 4.5:1 on white */
  --text-light-bad: #bbb; /* fails 4.5:1 on white */
  --link-bad: #6faaff; /* fails on white bg */
}

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

body {
  font-family: 'Lato', sans-serif;
  color: #333;
  background: #fff;
  /* WCAG VIOLATION: Fixed font size in px, not scalable */
  font-size: 14px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  background: var(--dark);
  padding: 0.75rem 0;
}

/* WCAG VIOLATION: No visible focus indicator */
.navbar a:focus,
.nav-link:focus,
button:focus,
a:focus {
  outline: none !important;
  box-shadow: none !important;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  color: #fff !important;
  font-size: 1.6rem;
}

.nav-link {
  /* WCAG VIOLATION: Low contrast nav links (#888 on dark bg #1a1a2e is borderline/fails) */
  color: #888 !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* WCAG VIOLATION: Image used as background without text alternative */
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  /* WCAG VIOLATION: Very low contrast text (#fb5607 on dark #1a1a2e – may pass but used with light overlay inconsistently) */
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-sub {
  /* WCAG VIOLATION: Low contrast – #aaa on dark background fails WCAG AA for normal text */
  color: #aaa;
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn-hero {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.9rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, background 0.2s;
  /* WCAG VIOLATION: No border-radius meaning no focus visible shape difference */
}

.btn-hero:hover {
  background: #c5004f;
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

.section-subtitle {
  /* WCAG VIOLATION: Low contrast subtitle text */
  color: var(--text-muted-bad);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

/* ============================================
   CARDS
   ============================================ */
.card-custom {
  border: none;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card-custom .card-img-top {
  height: 200px;
  object-fit: cover;
  /* WCAG VIOLATION: Images may lack alt text (see HTML) */
}

.card-tag {
  /* WCAG VIOLATION: Orange on white – #fb5607 on #fff fails WCAG AA for small text */
  color: var(--accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.card-title-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #1a1a2e;
  margin: 0.4rem 0 0.75rem;
}

.card-excerpt {
  /* WCAG VIOLATION: Low contrast text */
  color: var(--text-muted-bad);
  font-size: 0.85rem;
  line-height: 1.6;
}

.card-link {
  /* WCAG VIOLATION: Link indistinguishable from text (no underline, low contrast color) */
  color: var(--link-bad);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   STATS / NUMBERS
   ============================================ */
.stats-section {
  background: var(--dark);
  padding: 5rem 0;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  /* WCAG VIOLATION: #888 on #1a1a2e dark background fails contrast */
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-section {
  background: #f8f9fa;
  padding: 5rem 0;
}

/* WCAG VIOLATION: Form inputs lack visible label association */
.form-floating-custom {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-custom {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ddd;
  background: transparent;
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: #333;
  /* WCAG VIOLATION: No focus visible styling */
}

.input-custom:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

/* WCAG VIOLATION: Placeholder used as label (placeholder disappears on focus) */
.input-custom::placeholder {
  color: var(--text-muted-bad);
}

.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 1rem 3rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.2s;
  /* WCAG VIOLATION: No focus ring */
}

.btn-submit:focus {
  outline: none;
}

/* ============================================
   TEAM / ABOUT
   ============================================ */
.team-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  /* WCAG VIOLATION: Images used decoratively but with empty/missing alt */
}

.team-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #1a1a2e;
  margin-top: 1rem;
}

.team-role {
  /* WCAG VIOLATION: Low contrast role label */
  color: var(--text-muted-bad);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: #fff;
  border-left: 3px solid var(--primary);
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.testimonial-text {
  /* WCAG VIOLATION: italic text at small size – harder to read, low contrast */
  font-style: italic;
  color: var(--text-muted-bad);
  font-size: 0.9rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 700;
  color: #1a1a2e;
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-card {
  border: 1px solid #eee;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  transition: box-shadow 0.3s;
}

.pricing-card.featured {
  background: var(--dark);
  border-color: var(--dark);
}

.pricing-price {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--primary);
}

.pricing-period {
  /* WCAG VIOLATION: Very small text size */
  font-size: 0.7rem;
  color: var(--text-muted-bad);
}

.pricing-feature {
  font-size: 0.85rem;
  /* WCAG VIOLATION: Low contrast on dark card */
  color: var(--text-muted-bad);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pricing-card.featured .pricing-feature {
  /* WCAG VIOLATION: Light grey on dark background – fails contrast */
  color: #777;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #111;
  color: #555;
  padding: 4rem 0 2rem;
}

footer a {
  /* WCAG VIOLATION: Low contrast links, no underline, hard to distinguish */
  color: #555;
  text-decoration: none;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

footer a:hover {
  color: #999;
}

footer h5 {
  color: #888;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 2rem;
  margin-top: 3rem;
  /* WCAG VIOLATION: Very low contrast copyright text */
  color: #444;
  font-size: 0.75rem;
}

/* ============================================
   BLOG / ARTICLE
   ============================================ */
.article-meta {
  /* WCAG VIOLATION: Date/meta info in very low contrast */
  color: #bbb;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-body p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  /* WCAG VIOLATION: Text line-height technically low for dyslexia (1.8 is fine, but font-size is 14px base) */
}

/* WCAG VIOLATION: Links in body text not underlined and low contrast */
.article-body a {
  color: var(--link-bad);
  text-decoration: none;
}

/* ============================================
   GALLERY / PORTFOLIO
   ============================================ */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s;
  /* WCAG VIOLATION: Image alt attributes missing/empty (see HTML) */
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  /* WCAG VIOLATION: Overlay text on image without sufficient contrast guarantee */
  background: rgba(26, 26, 46, 0.5);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  /* WCAG VIOLATION: Only visible on hover - keyboard users can't access */
}

/* ============================================
   MISC
   ============================================ */

/* WCAG VIOLATION: Auto-play carousel with no pause control (see HTML) */
/* WCAG VIOLATION: Color alone used to convey meaning (see form errors) */
.error-text {
  color: #e74c3c;
  /* WCAG VIOLATION: Error communicated via color only, no icon/text prefix */
  font-size: 0.75rem;
}

/* WCAG VIOLATION: Skip link hidden permanently */
.skip-link {
  position: absolute;
  left: -9999px;
  /* Intentionally NOT shown on focus */
}

/* WCAG VIOLATION: Very small tap targets on mobile */
.social-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  /* Should be min 44x44px */
  margin-right: 0.5rem;
  color: #555;
  font-size: 0.85rem;
}

/* WCAG VIOLATION: Animations without prefers-reduced-motion check */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.badge-live {
  animation: pulse 1.5s ease-in-out infinite;
  background: var(--secondary);
  color: #fff;
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* WCAG VIOLATION: Tables without headers (see HTML) */
.data-table td {
  font-size: 0.8rem;
  color: var(--text-muted-bad);
  padding: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

/* WCAG VIOLATION: Images inside buttons (see HTML) – no text alternative */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

/* Responsive – intentionally missing some breakpoints */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  /* WCAG VIOLATION: Some elements become too small / inaccessible on mobile */
  .stat-number {
    font-size: 2.2rem;
  }
}
