/* ADAS.ie Static Site Styles */
:root {
  --blue: #075aae;
  --blue-light: #0274be;
  --yellow: #fee100;
  --yellow-dark: #fedc32;
  --yellow-border: #ffde00;
  --black: #000000;
  --dark: #1b1b20;
  --text: #666666;
  --text-dark: #3a3a3a;
  --heading: #000000;
  --light-bg: #f3f8fb;
  --white: #ffffff;
  --gold: #d0a727;
  --max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

a { color: var(--blue-light); text-decoration: none; }
a:hover { color: var(--blue); }

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

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  text-align: left;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.2em; }
h5 { font-size: 1.05em; }

p { margin-bottom: 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.site-logo img {
  height: 70px;
  width: auto;
}

/* Navigation */
.main-nav { display: flex; align-items: center; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav li { position: relative; }

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 15px;
  color: var(--black);
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav > ul > li > a:hover { color: #666; }

.main-nav li.has-submenu > a::after {
  content: '\25BE';
  margin-left: 5px;
  font-size: 0.7em;
}

.main-nav li.has-submenu:hover .submenu { display: block; }

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark);
  min-width: 220px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 4px 0;
}

.submenu li a {
  display: block;
  color: var(--white) !important;
  padding: 10px 18px;
  font-size: 13px;
  height: auto !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.submenu li:last-child a { border-bottom: none; }

.submenu li a:hover { color: #ccc !important; background: rgba(255,255,255,0.05); }

.nav-highlight {
  margin-left: 8px;
}

.nav-highlight > a {
  border: 3px solid var(--yellow-border) !important;
  height: auto !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.nav-highlight:hover {
  background: var(--yellow-border);
}

.nav-highlight:hover > a {
  color: var(--black) !important;
}

/* Mobile nav */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 10px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(270deg, rgba(7,90,174,0) 0%, #075aae 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 60px 40px;
  color: var(--white);
}

.hero-content h1 {
  color: var(--white);
  font-size: 2.5em;
  margin-bottom: 0.3em;
}

.hero-content p {
  font-size: 1.1em;
  line-height: 1.7;
  opacity: 0.95;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 0.95em;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--black);
  color: var(--yellow);
}

.btn-primary:hover {
  background: var(--yellow-dark);
  color: var(--black);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 0;
  padding: 15px 40px;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
  border-radius: 0;
}

.btn-yellow:hover {
  background: var(--yellow-dark);
}

.read-more {
  display: inline-block;
  padding: 5px 12px;
  background: #ffe200;
  color: var(--black);
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
}

.read-more:hover { background: var(--yellow-dark); color: var(--black); }

/* ===== SECTIONS ===== */
.section { padding: 60px 0; }
.section-light { background: var(--light-bg); }
.section-blue { background: var(--blue); color: var(--white); }
.section-blue h2, .section-blue h3, .section-blue p { color: var(--white); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 { color: var(--blue); }

/* ===== GRID ===== */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }

.card-body { padding: 24px; }

.card-body h3 { font-size: 1.1em; margin-bottom: 0.5em; }

.card-body p { font-size: 0.9em; color: var(--text); }

/* Service card (home page) */
.service-card {
  background: var(--white);
  text-align: center;
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}

.service-card:hover { transform: translateY(-4px); }

.service-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}

.service-card h3 {
  text-align: center;
  color: var(--blue);
  margin-bottom: 10px;
}

/* Product card */
.product-card {
  background: var(--white);
  border: 1px solid var(--yellow-border);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s;
}

.product-card:hover { transform: translateY(-4px); }

.product-card img {
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 16px;
}

.product-card h3 { text-align: center; font-size: 1.1em; }

.product-card .price {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.2em;
  margin: 8px 0;
}

/* ===== TWO-COLUMN LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.two-col img {
  width: 100%;
  border-radius: 4px;
}

/* ===== FEATURE LIST ===== */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feature-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.9em;
}

.feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}

/* ===== FEATURES SECTION ===== */
.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}

.feature-item:nth-child(even) { direction: rtl; }
.feature-item:nth-child(even) > * { direction: ltr; }

.feature-item h3 { color: var(--blue); }

.feature-video {
  background: var(--light-bg);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  color: var(--text);
  font-size: 0.85em;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== NEWS GRID ===== */
.news-card { border-bottom: 3px solid var(--yellow); }

.news-card .card-body { padding: 20px; }

.news-card h3 {
  font-size: 1em;
  margin-bottom: 10px;
}

.news-card h3 a { color: var(--heading); }
.news-card h3 a:hover { color: var(--blue); }

/* ===== CONTACT ===== */
.contact-info {
  list-style: none;
}

.contact-info li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 1em;
}

.contact-info strong { color: var(--heading); }

.contact-form {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 4px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
  font-size: 0.9em;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 0.95em;
  font-family: inherit;
  margin-bottom: 16px;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form button {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 12px 40px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.3s;
}

.contact-form button:hover { background: var(--blue); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.cta-banner p {
  font-size: 1.1em;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* ===== PARTNERS ===== */
.partner-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.partner-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.partner-card figcaption {
  padding: 20px;
  font-size: 0.85em;
  color: var(--text);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 20px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1em;
}

.footer-col ul { list-style: none; }

.footer-col ul li { padding: 4px 0; }

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9em;
}

.footer-col ul li a:hover { color: var(--yellow); }

.footer-col p { font-size: 0.9em; line-height: 1.6; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 0;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85em;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--blue);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  text-align: center;
}

.page-header p {
  font-size: 1.1em;
  opacity: 0.9;
  max-width: 700px;
  margin: 10px auto 0;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: 50px 0;
}

.page-content p {
  max-width: 800px;
  line-height: 1.8;
}

.page-content.centered p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .main-nav.active { display: block; }

  .main-nav ul {
    flex-direction: column;
    padding: 10px 0;
  }

  .main-nav > ul > li > a {
    height: auto;
    padding: 12px 20px;
  }

  .nav-highlight {
    margin-left: 0;
  }

  .nav-highlight > a {
    border: none !important;
    background: var(--yellow-border) !important;
    font-weight: 700 !important;
    padding: 12px 20px !important;
  }

  .submenu {
    position: static;
    display: block;
    box-shadow: none;
    background: #f5f5f5;
  }

  .submenu li a { color: var(--text-dark); padding-left: 30px; }

  .hero { min-height: 350px; }
  .hero-content { padding: 40px 20px; }
  .hero-content h1 { font-size: 1.8em; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .feature-item { grid-template-columns: 1fr; }
  .feature-item:nth-child(even) { direction: ltr; }
  .feature-list { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}
