/*
 * Global stylesheet for the Ottawa Picture Framing website.
 *
 * This file defines a simple, clean and responsive design for
 * a small custom framing shop. Colours are inspired by rich
 * wood tones and neutral gallery walls. Each section of the
 * site has ample spacing to showcase text and imagery without
 * overwhelming visitors.
 */

/* CSS variables define the colour palette used throughout the site. */
:root {
    --primary-color: #2d3a4a; /* deep blue–grey reminiscent of painted frames */
    --accent-color: #b58c5a;  /* warm copper tone for buttons and highlights */
    --light-bg: #f5f5f5;      /* soft off‑white used for alternating sections */
    --text-color: #333;
    --heading-color: #2d3a4a;
    --link-color: #2d3a4a;
}

/* Reset some default browser styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Navigation styles */
.navbar {
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.4rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: #fff;
    font-weight: 600;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
    border-color: var(--accent-color);
}

/* Hero section */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    background: url("images/hero.jpg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

/* Overlay for hero to improve text contrast */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 58, 74, 0.55);
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

/* On hover buttons deepen slightly for interactive feel */
.btn:hover {
    background-color: #a77c48;
}

/* Section styles */
section {
    padding: 4rem 2rem;
}

section:nth-of-type(even) {
    background-color: var(--light-bg);
}

section h2 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 2rem;
}

section p {
    max-width: 800px;
    margin: 0.5rem auto;
    text-align: center;
}

/* Services cards */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    font-style: italic;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.testimonial-card::before {
    content: "\201C"; /* Unicode left double quotation mark */
    font-size: 3rem;
    position: absolute;
    top: -10px;
    left: 10px;
    color: var(--accent-color);
}

.testimonial-author {
    margin-top: 1rem;
    font-style: normal;
    font-weight: bold;
    color: var(--primary-color);
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* Social media section */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.social-links a svg {
    width: 48px;
    height: 48px;
    fill: var(--primary-color);
    transition: fill 0.2s ease, transform 0.2s ease;
}

.social-links a:hover svg {
    fill: var(--accent-color);
    transform: scale(1.1);
}

/* Map container styling */
.map-container {
    max-width: 1000px;
    margin: 2rem auto;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Contact details */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

.contact-info a {
    color: var(--primary-color);
    font-weight: bold;
}

/* Hours table */
.hours {
    max-width: 400px;
    margin: 1rem auto;
    border-collapse: collapse;
    width: 100%;
}

.hours th,
.hours td {
    border-bottom: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.hours th {
    color: var(--primary-color);
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .nav-links {
        gap: 1rem;
    }
}