/* New Mecca Cafe - shared styles for index.htm, history.htm and specials.htm */

/* ---------- Page reveal ----------
   The page stays hidden for a moment until announcements have loaded
   (see site.js), so a banner never pushes content down after it appears. */
html.js:not(.ready) body { visibility: hidden; }

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    background: url('wertilea.jpg') repeat;
    color: black;
    line-height: 1.6;
}

a { text-decoration: none; color: red; }
a:visited { color: teal; }
a:hover { color: maroon; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

a.skip-link, a.skip-link:visited {
    position: absolute; left: -9999px; top: 8px;
    background: #fff; color: #000; padding: 8px 12px;
    border: 2px solid #000; z-index: 10000;
}
a.skip-link:focus { left: 8px; }

/* ---------- Language toggle ---------- */
.language-toggle {
    position: fixed; top: 10px; right: 10px;
    background: linear-gradient(45deg, #FF0000, #388E3C);
    border: 2px solid white; color: white;
    padding: 10px 20px; border-radius: 25px; cursor: pointer;
    font-family: Arial, sans-serif; font-weight: bold; font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999;
}
.language-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }

/* English is the default; site.js adds class "es" to <html> for Spanish */
.spanish-content { display: none; }
html.es .english-content { display: none; }
html.es .spanish-content { display: revert; }

/* ---------- Announcement banner ---------- */
.announcement-banner {
    background: linear-gradient(45deg, #FF6B35, #F7931E);
    color: white; padding: 15px 20px; text-align: center;
    font-weight: bold; font-size: 16px;
    margin: -24px -24px 20px -24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    animation: slideDown 0.5s ease-out;
}
.announcement-banner[hidden] { display: none; }
.announcement-banner p { margin: 8px 0; font-size: 16px; line-height: 1.5; }

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .announcement-banner { animation: none; }
}

/* ---------- Main container ---------- */
.outer-container {
    max-width: 1050px; margin: 20px auto; padding: 4px;
    background: silver; border: 1px solid #666;
}
.inner-container {
    background: url('parch_bg.gif') repeat;
    padding: 24px; border: 1px solid #666;
}

/* ---------- Header ---------- */
.header-images {
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px; margin-bottom: 20px;
}
.header-images img { max-width: 100%; height: auto; }
.header-logo  { width: 187px; }
.header-title { width: 516px; }
.header-mecca { width: 113px; }

/* ---------- Navigation ---------- */
.navigation {
    text-align: center; padding: 20px 0;
    border-top: 2px solid #333; border-bottom: 2px solid #333;
    margin: 20px 0;
}
.navigation a {
    font-size: 16pt; font-weight: bold; margin: 0 5px;
    display: inline-block; padding: 5px 8px; white-space: nowrap;
}

/* ---------- Content ---------- */
.content-section { text-align: center; margin: 30px 0; }
.content-section p { font-weight: bold; line-height: 1.8; margin: 20px 0; }
.large-text  { font-size: 18pt; }
.medium-text { font-size: 14pt; }
.red-text    { color: #ff0000; }

hr { margin: 20px auto; border: 0; border-top: 1px solid #000033; }
.thick-hr { border-top: 2px solid #333; }

.diamonds { text-align: center; margin: 20px 0; }
.diamonds img { margin: 0 2px; }

.map-image, .photo-image { max-width: 100%; height: auto; border: 1px solid #333; }
.map-link { display: inline-block; margin: 20px 0; }

.footer-text { text-align: center; font-size: 10pt; font-weight: normal; margin: 20px 0; }
.date-text { font-size: 12px; font-weight: normal; text-align: center; margin: 20px 0; }

/* ---------- Photo carousel (home page) ----------
   The box has a fixed shape, so slides of different sizes can never
   change the page height while they rotate. */
.carousel-wrapper { display: flex; justify-content: center; margin: 30px 0; }

.carousel-container {
    position: relative; width: min(100%, 616px);
    border: 1px solid #333; border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden; background: #f5f5f5;
}
.carousel { position: relative; width: 100%; aspect-ratio: 3 / 2; }

.carousel-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out;
}
.carousel-image.active { opacity: 1; }

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(211, 47, 47, 0.7); color: white; border: none;
    font-size: 24px; padding: 10px 15px; cursor: pointer;
    z-index: 10; border-radius: 5px; transition: all 0.3s ease;
}
.carousel-btn:hover { background: rgba(211, 47, 47, 0.9); transform: translateY(-50%) scale(1.1); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* ---------- History page ---------- */
.image-container { display: none; }   /* shown on mobile only */

.story-paragraph {
    text-align: justify; font-size: 12pt; line-height: 1.8;
    margin: 20px 0; position: relative;
}
.story-paragraph img { margin: 10px; border: 1px solid #333; }
.left-image  { float: left;  margin-right: 15px; }
.right-image { float: right; margin-left: 15px; }

.honor-section { text-align: center; margin: 40px 0; }
.honor-section p { font-family: 'Times New Roman', serif; font-size: 18pt; margin: 20px 0; }
.honor-image { max-width: 100%; height: auto; border: 1px solid #333; margin: 20px 0; }
.hof-image   { max-width: 100%; height: auto; border: 1px solid #333; }

/* ---------- Specials page ---------- */
.page-title {
    font-size: 22pt; font-weight: bold; color: #8B0000;
    text-align: center; line-height: 1.3;
}
.page-subtitle {
    font-size: 12pt; font-style: italic; color: #333;
    text-align: center; margin: 4px 0 0;
}
.accent-hr { width: 85%; border-top: 1px solid #8B3A0F; }

.specials-section {
    margin: 18px 0; padding: 16px 20px;
    background: rgba(255,255,255,0.45);
    border: 2px solid #8B3A0F; border-radius: 6px;
}
.special-title {
    font-size: 22pt; font-weight: bold; color: #8B0000;
    margin-bottom: 4px; text-align: center;
}
.special-subtitle {
    font-size: 12pt; color: #333; font-style: italic;
    margin-bottom: 10px; text-align: center;
}
.special-flex { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.special-flyer { flex: 0 0 auto; max-width: 300px; }
.special-flyer img {
    width: 100%; max-width: 300px; height: auto;
    border: 2px solid #8B3A0F; border-radius: 4px;
}
.special-text { flex: 1 1 260px; font-size: 12pt; color: #222; line-height: 1.55; }
.special-text p { margin: 0 0 10px; }
.special-price { font-size: 16pt; font-weight: bold; color: #8B0000; margin-top: 8px; }
.special-note { font-size: 10pt; color: #555; font-style: italic; }
.special-footer { text-align: center; font-weight: bold; font-size: 12pt; margin: 18px 0; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .announcement-banner { font-size: 14px; padding: 12px 15px; margin: -15px -15px 15px -15px; }
    .announcement-banner p { font-size: 14px; }

    .outer-container { margin: 10px; padding: 2px; }
    .inner-container { padding: 15px; }

    /* Only the small logo shows on mobile */
    .header-logo, .header-title { display: none !important; }
    .header-images a:has(.header-logo),
    .header-images a:has(.header-title) { display: none; }
    .header-images { justify-content: center; }
    .header-mecca { width: 150px; max-width: 80%; }

    .navigation a { font-size: 13px; margin: 3px 2px; padding: 5px 6px; display: block; width: 100%; }

    .content-section p { font-size: 16px; }
    .large-text  { font-size: 18px; }
    .medium-text { font-size: 16px; }

    .carousel-btn { font-size: 18px; padding: 8px 12px; }

    .language-toggle { padding: 8px 12px; font-size: 12px; top: 5px; right: 5px; }

    /* History page */
    .image-container { display: block !important; text-align: center; margin-bottom: 20px; }
    .image-container img {
        display: inline-block; height: 130px !important; width: auto !important;
        margin: 0 5px !important; border: 1px solid #333;
    }
    .story-paragraph .left-image,
    .story-paragraph .right-image { display: none !important; }
    .story-paragraph { text-align: left; font-size: 16px; }
    .honor-section p { font-size: 16px; }

    /* Specials page */
    .page-title, .special-title { font-size: 18pt; }
    .special-flex { flex-direction: column; }
    .special-flyer { max-width: 100%; }
}

@media (max-width: 480px) {
    .navigation a { font-size: 12px; margin: 3px; padding: 5px; }
    .story-paragraph { font-size: 15px; }
    .image-container img { height: 110px !important; margin: 0 3px !important; }
}
