/* site.css - masjidsaskatoon.com
   Palette: Deep teal-night #0E2A33, midnight #081B22, warm sand #E9DCC3, light sand #F7F3E9, lantern amber #D9A35B
   Type: Cormorant Garamond (display/h), Manrope (body)
*/

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/amiri-arabic-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/amiri-arabic-700-normal.woff2') format('woff2');
}

:root {
  --color-midnight: #081B22;
  --color-teal-night: #0E2A33;
  --color-teal-medium: #17424F;
  --color-sand: #E9DCC3;
  --color-sand-light: #F7F3E9;
  --color-sand-border: #D8C7A5;
  --color-amber: #D9A35B;
  --color-amber-hover: #C58E45;
  --color-ink: #0A1E24;
  --color-ink-muted: #3D535A;
  
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-sand-light);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

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

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-amber);
  color: var(--color-midnight);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 6px 6px;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
}

:focus-visible {
  outline: 2.5px solid var(--color-amber);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-ink);
}

.arabic-text {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: 1.3em;
  line-height: 1.4;
}

/* Header */
.site-header {
  background-color: var(--color-midnight);
  color: var(--color-sand);
  border-bottom: 1px solid rgba(217, 163, 91, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo-img {
  height: 2.75rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #C5D8DE;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-sand);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-amber);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(217, 163, 91, 0.3);
  color: var(--color-sand);
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}
.menu-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}
.btn-amber {
  background-color: var(--color-amber);
  color: var(--color-midnight);
}
.btn-amber:hover {
  background-color: var(--color-amber-hover);
}
.btn-secondary {
  background-color: transparent;
  color: var(--color-sand);
  border-color: rgba(233, 220, 195, 0.4);
}
.btn-secondary:hover {
  border-color: var(--color-sand);
  background-color: rgba(255, 255, 255, 0.05);
}
.btn-outline {
  background-color: transparent;
  color: var(--color-teal-night);
  border-color: var(--color-teal-night);
}
.btn-outline:hover {
  background-color: var(--color-teal-night);
  color: var(--color-sand);
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at 80% 20%, #163E4B 0%, var(--color-teal-night) 50%, var(--color-midnight) 100%);
  color: var(--color-sand);
  padding: 5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-lead {
  font-size: 1.15rem;
  color: #D3E4EA;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-image-wrap {
  position: relative;
}
.hero-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(217, 163, 91, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

/* Content Sections */
.section {
  padding: 5rem 0;
}
.section-sand {
  background-color: var(--color-sand-light);
}
.section-dark {
  background-color: var(--color-teal-night);
  color: var(--color-sand);
}
.section-dark h2, .section-dark h3 {
  color: #fff;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section-eyebrow {
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--color-ink-muted);
}
.section-dark .section-desc {
  color: #C5D8DE;
}

/* Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.card {
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid var(--color-sand-border);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(10, 30, 36, 0.08);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: rgba(217, 163, 91, 0.15);
  color: var(--color-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-title {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}
.card-text {
  color: var(--color-ink-muted);
  font-size: 0.975rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Prayer Times & Fatwa Callout */
.salah-banner {
  background-color: var(--color-midnight);
  color: var(--color-sand);
  border: 1px solid rgba(217, 163, 91, 0.35);
  border-radius: 12px;
  padding: 3rem;
  margin-top: 3rem;
}
.salah-banner h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Destination Cards Band */
.destination-section {
  padding: 4.5rem 0;
  background-color: var(--color-sand);
  border-top: 1px solid var(--color-sand-border);
}
.destination-heading {
  text-align: center;
  font-size: 2.35rem;
  margin-bottom: 0.75rem;
}
.destination-sub {
  text-align: center;
  color: var(--color-ink-muted);
  margin-bottom: 3rem;
}
.dest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.dest-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-sand-border);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dest-logo-wrap {
  margin-bottom: 1.5rem;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.dest-logo {
  max-height: 48px;
  width: auto;
}
.dest-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-midnight);
  background-color: var(--color-sand);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.dest-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.dest-text {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.dest-meta {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  border-top: 1px solid var(--color-sand-border);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-midnight);
  color: #B8CED6;
  padding: 4rem 0 2.5rem;
  border-top: 1px solid rgba(217, 163, 91, 0.2);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-org-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.footer-text {
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-links-title {
  color: var(--color-amber);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-list {
  list-style: none;
}
.footer-list li {
  margin-bottom: 0.5rem;
}
.footer-list a:hover {
  color: var(--color-sand);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
}
.empathy-credit {
  color: var(--color-amber);
}
.empathy-credit a {
  text-decoration: underline;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  margin-bottom: 1.5rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}
.breadcrumbs li+li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--color-amber);
}

@media (max-width: 900px) {
  .hero-grid, .grid-2, .grid-3, .dest-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 4.75rem;
    left: 0;
    right: 0;
    background-color: var(--color-midnight);
    border-bottom: 1px solid rgba(217, 163, 91, 0.2);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    align-items: stretch;
  }
  .site-nav.open {
    display: flex;
  }
  .section {
    padding: 3.5rem 0;
  }
}

/* Review fixes 2026-11-30 (Claude): hero crop, tap targets, label sizes */
.hero-image-wrap img, img.hero-img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 78% 50%; height: auto; }
.btn { min-height: 44px; }
.faq-question { min-height: 44px; }
.site-header .brand-logo-img { filter: brightness(0) invert(1); }
.site-header .brand-logo-img { height: 3.25rem; }
@media (min-width: 900px) { .site-header .brand-logo-img { height: 3.75rem; } }
