/*
 * Stylesheet for the modern reconstruction of Werbetechnik Emele.
 *
 * This design is inspired by the 2025 snapshot of the original website
 * captured by the Internet Archive.  Colours, typography and layout
 * closely follow the archived version while using only static assets
 * packaged with this project.  All images referenced in this file
 * reside in the ``images/`` directory.  JavaScript is kept to a
 * minimum and split out into ``js/script.js``.
 */

/* Root colour palette and shared variables */
:root {
  --red: #d41517;        /* primary accent colour (close to archive site) */
  --dark: #0c0c0c;       /* near‑black background */
  --light: #ffffff;      /* white for text */
  --grey: #f5f5f5;       /* light grey for subtle backgrounds */
  /*
   * Wine‑red tone for inline links on dark backgrounds.  The archive
   * site used a bright burgundy for text links; this value is a
   * slightly lighter variant of our primary red to improve
   * readability against near‑black.  See
   * https://webcolors.de/weinrot for inspiration.
   */
  --link: #e04a4c;
  --font-family: 'Arial', 'Helvetica', sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--light);
  background-color: var(--dark);
  line-height: 1.6;
}

/*
 * Global link styling
 *
 * By default browsers render links in blue and visited links in purple,
 * which contrasts poorly against our dark backgrounds.  We override
 * these defaults to use a lighter wine‑red derived from our palette
 * and ensure visited links remain legible.  Specific sections
 * (navbar, footer) define their own link colours and are not
 * affected by this rule because their selectors are more specific.
 */
a {
  color: var(--link);
  text-decoration: none;
}
a:visited {
  color: var(--link);
}
a:hover {
  color: var(--red);
  text-decoration: underline;
}

/*
 * Override default link/visited colours.  Many browsers define
 * specific colours for unvisited (a:link) and visited links, which
 * have higher specificity than plain ``a`` selectors because of
 * the pseudo‑class.  Without overriding these, the browser may
 * continue to display blue and purple links.  This rule ensures
 * that both unvisited and visited links in the main content adopt
 * our wine‑red palette.
 */
a:link,
a:visited {
  color: var(--link);
}

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

/* Top information bar */
.top-bar {
  width: 100%;
  background-color: var(--red);
  color: var(--light);
  font-size: 0.85rem;
  padding: 0.4rem 5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.top-bar span {
  margin-right: 1.5rem;
  white-space: nowrap;
}

/* Logo and main navigation */
header {
  position: relative;
  z-index: 10;
}
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
}
.navbar .logo {
  display: flex;
  align-items: center;
}
.navbar .logo img {
  height: 60px;
}
.navbar nav {
  display: flex;
  gap: 1.5rem;
}
.navbar nav a {
  color: var(--light);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.navbar nav a:hover {
  color: var(--red);
}

/* Hero section */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../images/sliderEmele3.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  text-transform: uppercase;
}
.hero h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.hero p {
  font-size: 1rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--light);
}

/* Partner section (black background with red heading) */
.partner-section {
  background-color: var(--dark);
  padding: 4rem 5% 3rem;
  text-align: center;
}
.partner-section h2 {
  color: var(--red);
  font-size: 2.4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.partner-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: var(--light);
}

/* Call to action block */
.cta {
  text-align: center;
  padding: 3rem 5%;
  background-color: var(--dark);
}
.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.cta h2 span {
  color: var(--red);
}

/* Services section */
.services {
  background-color: var(--red);
  color: var(--light);
  padding: 4rem 5%;
  text-align: center;
}
.services h2 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.service-item {
  background: transparent;
  padding: 1.5rem;
  text-align: center;
}
.service-item .icon {
  width: 40px;
  height: 50px;
  border: 3px solid var(--light);
  border-bottom: none;
  margin: 0 auto 1rem;
  position: relative;
}
.service-item .icon::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid var(--light);
}
.service-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.service-item p {
  font-size: 0.9rem;
  color: var(--light);
}

/* Hours section */
.hours {
  background-color: var(--dark);
  color: var(--light);
  padding: 4rem 5%;
  text-align: center;
}
.hours h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.hours p {
  font-size: 1.2rem;
  line-height: 1.4;
}

/* Footer */
footer {
  background-color: var(--dark);
  padding: 2rem 5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
footer .footer-left img {
  height: 50px;
}
footer .footer-right {
  display: flex;
  gap: 1rem;
}
footer .footer-right a {
  color: var(--light);
  font-size: 0.8rem;
  text-transform: uppercase;
  text-decoration: none;
}
footer .footer-right a:hover {
  color: var(--red);
}

/* Generic page content wrapper used on subpages */
.page-content {
  background-color: var(--dark);
  padding: 4rem 5%;
  color: var(--light);
  min-height: 60vh;
}
.page-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--red);
  text-transform: uppercase;
}
.page-content h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--red);
  text-transform: uppercase;
}
.page-content p,
.page-content li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--light);
}
.page-content ul {
  margin-left: 1.2rem;
  list-style-type: disc;
}

/* Contact form styling */
.contact-form {
  margin-top: 2rem;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: var(--light);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 1rem;
  color: #000;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form button {
  align-self: flex-start;
  background-color: var(--red);
  color: var(--light);
  border: none;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  border-radius: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.contact-form button:hover {
  background-color: #a71012;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero h2 {
    font-size: 1.6rem;
  }
  .navbar nav {
    display: none; /* hide nav for mobile; JS can toggle if implemented */
  }
}