/* ============================================================
   ScooterLounge.com — Main Stylesheet
   Replaces: default_lambretta.css, default_vespa.css,
             dropdowntab_lambretta.css, dropdowntab_vespa.css
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* ============================================================
   CSS VARIABLES — Theme switching via .theme-lambretta / .theme-vespa
   ============================================================ */
:root {
  --accent:        #E54F00;
  --accent-dark:   #b33d00;
  --accent-light:  #fff3ec;
  --accent-hover:  #FAEDD5;
  --header-bg:     url('/images/navbar/lambretta/header_lam.jpg') center/cover no-repeat;
  --nav-bg:        url('/images/navbar/lambretta/main_bg.jpg') center/cover no-repeat;
  --border:        #E54F00;
  --link:          #165488;
  --heading3:      #E54F00;
  --body-bg:       url('/images/bg_lambretta.gif') repeat;
}

.theme-vespa {
  --accent:        #015E87;
  --accent-dark:   #014d6e;
  --accent-light:  #eaf5fb;
  --accent-hover:  #e8fad5;
  --header-bg:     url('/images/navbar/vespa/header_vespa.jpg') center/cover no-repeat;
  --nav-bg:        url('/images/navbar/vespa/bg.jpg') center/cover no-repeat;
  --border:        #015E87;
  --link:          #165488;
  --heading3:      #015E87;
  --body-bg:       url('/images/bg_vespa.gif') repeat;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 20px 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  color: #333;
  background: var(--body-bg);
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.2;
}
h2 { font-size: 1.6em; color: #222; }
h3 { font-size: 1.2em; color: var(--heading3); }
h4 { font-size: 1em; color: #444; }

p, blockquote, ul, ol {
  margin: 0 0 1em;
  line-height: 1.8;
  font-size: 0.9em;
  text-align: justify;
}

ul { padding-left: 1.2em; }

a:link, a:visited { color: var(--link); text-decoration: underline; }
a:hover { color: var(--accent); text-decoration: underline; }

img { border: none; max-width: 100%; height: auto; }

hr { border: none; border-top: 1px solid #ddd; margin: 1.5em 0; }

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
#page-wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

#logo a {
  display: block;
  background: var(--header-bg);
  height: 110px;
  text-indent: -9999px;
  overflow: hidden;
}

#logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   NAVIGATION — Replaces Dynamic Drive dropdown
   ============================================================ */
#nav {
  background: var(--nav-bg);
  border-bottom: 2px solid var(--accent);
  position: relative;
  z-index: 100;
}

#nav ul {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: flex;
  flex-wrap: wrap;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

#nav > ul > li {
  position: relative;
}

#nav > ul > li > a {
  display: block;
  padding: 4px 9px;
  margin-right: 3px;
  border: 1px solid var(--accent);
  background: #fff;
  color: #2d2b2b;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

#nav > ul > li > a:hover,
#nav > ul > li:hover > a {
  background: var(--accent-light);
  color: #000;
}

/* Dropdown panels */
#nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--accent);
  border-top: none;
  min-width: 160px;
  z-index: 200;
  flex-direction: column;
  flex-wrap: nowrap;
  padding: 0;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
}

#nav ul li:hover > ul {
  display: flex;
}

#nav ul ul li {
  width: 100%;
}

#nav ul ul li a {
  display: block;
  padding: 5px 10px;
  border-bottom: 1px solid var(--accent);
  color: #2d2b2b;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

#nav ul ul li a:hover {
  background: var(--accent-hover);
}

#nav ul ul li.nav-subhead {
  padding: 5px 10px 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--accent);
  background: #f8f8f8;
}

/* Mobile nav toggle */
#nav-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
#search-bar {
  background: #fff;
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  padding: 6px 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  max-width: 860px;
  margin: 0 auto;
}

#search-bar form {
  display: flex;
  gap: 4px;
  align-items: center;
}

#search-bar input[type="search"] {
  border: 1px solid var(--accent);
  padding: 3px 8px;
  font-size: 12px;
  width: 220px;
  font-family: 'Lora', serif;
}

#search-bar button {
  border: 1px solid var(--accent);
  background: #e9e9e9;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
}

#search-bar button:hover { background: var(--accent); color: #fff; }

/* ============================================================
   CONTENT AREA
   ============================================================ */
#content {
  max-width: 860px;
  margin: 0 auto;
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  background: #fff;
  min-height: 400px;
}

/* Two-column layout */
#col-main {
  float: left;
  width: calc(100% - 215px);
  padding: 25px 20px 20px 20px;
  background: #fff;
}

#col-side {
  float: right;
  width: 205px;
  padding: 25px 10px 20px 10px;
  border-left: 1px solid var(--accent);
  background: #eee;
  min-height: 400px;
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* Full-width single column */
#col-full {
  padding: 25px 30px 25px 30px;
}

/* Top heading style */
.top-head {
  margin: 0 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  color: #222;
}

/* ============================================================
   SIDEBAR NAV
   ============================================================ */
#col-side h3 {
  padding: 0 0 6px 0;
  font-size: 1em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  margin-bottom: 0;
}

#col-side ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1em 0;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
}

#col-side ul li {
  border-bottom: 1px solid #ddd;
}

#col-side ul li a {
  display: block;
  padding: 5px 4px;
  color: var(--link);
  text-decoration: none;
}

#col-side ul li a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

#col-side ul li a b {
  color: var(--accent);
}

/* ============================================================
   REPAIR GUIDE — PAGINATION NAV
   ============================================================ */
.page-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
  font-family: 'Oswald', sans-serif;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s;
}

.page-nav a:hover { background: var(--accent); color: #fff; }

/* ============================================================
   BROCHURE / PHOTO GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  margin: 20px 0;
}

.gallery-item {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
}

.gallery-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-item img {
  height: 150px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border: 1px solid #ddd;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.gallery-item a:hover img {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.gallery-item .caption {
  margin-top: 6px;
  line-height: 1.4;
}

.gallery-item .caption strong { display: block; color: #333; }

.gallery-item .view-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* CSS Lightbox for individual brochure pages */
.lightbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
  justify-content: center;
}

.lightbox-grid a {
  display: block;
}

.lightbox-grid img {
  height: 180px;
  width: auto;
  border: 1px solid #ccc;
  transition: border-color 0.15s;
  cursor: zoom-in;
}

.lightbox-grid a:hover img { border-color: var(--accent); }

/* Full-size image overlay using :target */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lb-overlay:target {
  display: flex;
}

.lb-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 24px;
  color: #fff;
  font-size: 32px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  line-height: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--accent);
  border-top: none;
  background: #fff;
  padding: 14px 20px;
  font-size: 12px;
  font-family: 'Oswald', sans-serif;
  color: #555;
  text-align: center;
}

#footer a { color: var(--accent); text-decoration: none; }
#footer a:hover { text-decoration: underline; }

/* ============================================================
   ENTRY/SPLASH PAGE (index.html)
   ============================================================ */
.entry-wrap {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

.entry-logo {
  margin: 0 auto 20px;
}

.entry-logo img { max-width: 100%; height: auto; }

.entry-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.entry-card {
  display: block;
  text-decoration: none;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  background: #fff;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.entry-card.lambretta { border-color: #E54F00; }
.entry-card.vespa     { border-color: #015E87; }

.entry-card img { width: 100%; height: auto; display: block; }

.entry-card-label {
  padding: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.entry-card.lambretta .entry-card-label { color: #E54F00; }
.entry-card.vespa .entry-card-label     { color: #015E87; }

.entry-links {
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  color: #555;
  margin: 8px 0 4px;
  letter-spacing: 0.03em;
}

.entry-links a { color: #fff; margin: 0 4px; text-decoration: underline; }

.entry-card.lambretta .entry-links { background: #E54F00; padding: 6px; }
.entry-card.vespa .entry-links     { background: #015E87; padding: 6px; }

/* ============================================================
   SECTION HOME PAGE — hero welcome block
   ============================================================ */
.section-welcome {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 1.2em;
}

.section-welcome img {
  flex-shrink: 0;
  border: 1px solid #ddd;
}

/* ============================================================
   WHAT'S NEW
   ============================================================ */
.whats-new-list p {
  border-bottom: 1px dotted #ddd;
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
}

.whats-new-list strong { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  #page-wrap, #header, #content, #search-bar, #footer {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  #col-main {
    float: none;
    width: 100%;
    padding: 16px;
  }

  #col-side {
    float: none;
    width: 100%;
    border-left: none;
    border-top: 2px solid var(--accent);
  }

  #col-full { padding: 16px; }

  .entry-sections { grid-template-columns: 1fr; }

  #nav-toggle { display: block; }

  #nav ul {
    display: none;
    flex-direction: column;
  }

  #nav ul.open { display: flex; }

  #nav ul ul {
    position: static;
    display: flex;
    border: none;
    box-shadow: none;
    background: #f5f5f5;
    padding-left: 12px;
  }

  #nav > ul > li > a { margin-right: 0; }

  #search-bar input[type="search"] { width: 140px; }

  .section-welcome { flex-direction: column; }
  .section-welcome img { float: none !important; }
}
