/* Edmonton Gallery Walk - Modern CSS */

:root{
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #10b981;
  --text: #1f2937;
  --text-light: #4b5563;  /* darker for better contrast */
  --bg: #ffffff;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --accent: #d35400;       /* warm orange */
  --muted: #4b5563;        /* darker gray for better readability */
  --card-bg: #ffffff;
  --surface-shadow: 0 8px 20px rgba(13,24,35,0.06);
  --radius: 10px;
  --max-width: 1100px;

  --primary-color: #007acc;
  --secondary-color: #0056b3;
  --text-color: #333;
  --border-color: #e0e0e0;
  --background-alt: #f8f9fa;
  --muted-color: #555;  /* darker for better readability */
}

/* Typography */
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 18px;
  line-height: 1.7;
  color: #0f172a;
  background: linear-gradient(180deg,#fafafa 0%, #fff 100%);
  -webkit-font-smoothing: antialiased;
}

/* Headings use Playfair */
h1,h2,h3 { 
  font-family: "Playfair Display", serif;
  color: #000000;
}

/* Header height variable */
:root {
  --header-height: 56px; /* adjust if header should be taller/shorter */
}

/* Ensure anchor jumps and in-page navigation account for the sticky header */
html {
  scroll-padding-top: calc(var(--header-height) + 0.5rem);
}

/* Layout container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 48px; /* smaller than before */
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--surface-1, #fff);
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Trim header internal padding so header is visually smaller */
header .header-content {
  padding: 0.25rem 0;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  gap: 4px;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, #38a39c 0%, #2c827b 100%);
    color: white;
}

.hero h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 1.4rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* CTA */
.cta-button {
    background: white;
    color: #1a365d;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
}

.cta-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: #0056b3;
}

/* Alternative: Darker background option */
.hero-alt {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
}

/* About Section */
.about {
    padding: 4rem 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    line-height: 1.3;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.highlight {
    font-weight: 600;
    color: var(--accent-7, #d35400);
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-image img{
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
}

/* Galleries Section */
.galleries {
    padding: 4rem 0;
}

.galleries h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.3;
}

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

.gallery-card{
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 6px 14px rgba(2,6,23,0.04);
  transition: transform .16s ease, box-shadow .16s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}
.gallery-card:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(2,6,23,0.08);
}
.gallery-card h3 { 
  margin: 0 0 0.75rem; 
  font-size: 1.4rem;
  line-height: 1.4;
}

.gallery-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.gallery-link{
  display: inline-block;
  margin-top: 1rem;
  color: #fff;
  background: linear-gradient(90deg,var(--accent), #e67e22);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.gallery-link:hover{ 
  opacity: .95; 
  transform: translateY(-2px); 
}

.gallery-address {
    font-size: 0.95rem;
    color: var(--muted-color, #555);
    margin: 0.5rem 0 0.75rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.gallery-address::before {
    content: "📍";
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Events Section */
.events {
    padding: 4rem 0;
    background: var(--bg-light);
}

.events h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.3;
}

.event-card{
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 12px rgba(2,6,23,0.04);
}

.event-card h3 {
  font-size: 1.5rem;
  margin: 0.5rem 0;
  line-height: 1.4;
}

.event-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
}

.event-date{ 
  color:var(--accent); 
  font-weight:700;
  font-size: 1rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    text-align: center;
}

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.contact p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

/* Footer */
footer{
  margin-top: 2.5rem;
  border-top: 1px solid #eef2f6;
  padding-top: 1.25rem;
  color: var(--muted);
}

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

/* Skip to content link */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    z-index: 9999;
    padding: 0.5rem 0.75rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Skip link accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Focus styles */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

/* Responsive */
@media (max-width: 880px) {
  .about-content { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  nav#nav { display: none; }
  .gallery-grid { 
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 881px) {
  nav#nav { display: block; }
}
@media (max-width:880px){
  .hero h1{ font-size: 2.25rem; }
  :root{ --max-width: 920px; }
  body { font-size: 17px; }
}
@media (max-width:480px){
  .container{ padding: 0 1rem; }
  .cta-button{ width: 100%; text-align:center; display:block; font-size: 1.1rem; }
  :root { --header-height: 56px; }
  .logo img { width: 40px; }
  .logo h1 { font-size: 0.95rem; }
  header .header-content { padding: 0.25rem 0; }
  body { font-size: 16px; }
  .about-text p { font-size: 1rem; }
  .gallery-grid { 
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .gallery-card { 
    min-height: 240px;
    padding: 1.5rem;
  }
  .gallery-card h3 { font-size: 1.25rem; }
}
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.2rem;
        line-height: 1.6;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    nav.nav-open {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem;
    }
}