/* =======================
   AlliGazzar Autoservice
   Tech Futuristic Style (Flexbox only)
   Modern, trustworthy, transparent car service
   ======================= */

/************************************************************
 * RESET & NORMALIZE
 ************************************************************/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  color: #F3F3F3;
  background: linear-gradient(135deg, #142232 0%, #193B52 100%);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #ECA527;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFE0A0;
}

ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
  padding-left: 1.2em;
}
li {
  margin-bottom: 0.65em;
}

b, strong {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

h1 {font-size: 2.75rem; margin-bottom: 28px;}
h2 {font-size: 2rem; margin-bottom: 24px;}
h3 {font-size: 1.38rem; margin-bottom: 18px;}
h4 {font-size: 1.08rem;}

p {margin-bottom: 1em;}

/* Typography scale for spacing consistency */
.text-section h2, .text-section h3 {
  margin-top: 1.8em;
}

/************************************************************
 * CONTAINERS, LAYOUT, SPACING
 ************************************************************/
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Tech white card illusion */
  background: rgba(25, 59, 82, 0.8);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(28, 65, 106, 0.16);
  padding: 32px 24px;
  margin-bottom: 24px;
  gap: 18px;
}

@media (max-width: 700px) {
  .content-wrapper {
    padding: 20px 8px;
    border-radius: 14px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
@media (max-width: 700px) {
  .section {
    padding: 24px 6px;
    margin-bottom: 36px;
  }
}

.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #243B50;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(25, 59, 82, 0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 20px;
  color: #F3F3F3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 230px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/************************************************************
 * HEADER & NAVIGATION
 ************************************************************/
header {
  width: 100%;
  background: #142232;
  border-bottom: 3px solid #ECA527;
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px #ECA52740);
  transition: filter 0.2s;
}
.logo:hover img, .logo:focus img {
  filter: drop-shadow(0 0 32px #FFD45190);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #F3F3F3;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  transition: color 0.25s;
  position: relative;
  padding: 3px 0;
}
.main-nav a::after {
  content: '';
  display: block;
  height: 2.5px;
  background: #ECA527;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.33s;
  margin-top: 2px;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  transform: scaleX(1);
}
.main-nav .nav-cta {
  background: #ECA527;
  color: #193B52;
  font-weight: bold;
  border-radius: 18px;
  padding: 10px 22px;
  margin-left: 22px;
  box-shadow: 0px 3px 12px #ECA52740;
  transition: background 0.15s, color 0.2s, box-shadow 0.33s;
}
.main-nav .nav-cta:hover, .main-nav .nav-cta:focus {
  background: #FFD451;
  color: #142232;
  box-shadow: 0px 8px 28px #FFD45140;
}

/* Hide nav for mobile */
@media (max-width: 970px) {
  .main-nav {
    display: none;
  }
}

/************************************************************
 * MOBILE MENU (BURGER)
 ************************************************************/
.mobile-menu-toggle {
  background: #142232;
  border: 2px solid #ECA527;
  border-radius: 8px;
  color: #ECA527;
  font-size: 2rem;
  cursor: pointer;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  margin-left: 10px;
  z-index: 98;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ECA527;
  color: #142232;
}

@media (min-width: 971px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 34, 50, 0.97);
  flex-direction: column;
  z-index: 2000;
  transform: translateX(-110%);
  transition: transform 0.34s cubic-bezier(.7,.1,.3,1);
  box-shadow: 0 0 0 9000px rgba(20,34,50,0.96);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #ECA527;
  border: none;
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 18px 24px 4px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFD451;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 22px;
  padding-left: 38px;
  gap: 24px;
}
.mobile-nav a {
  color: #F3F3F3;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.33rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: none;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ECA527;
  color: #142232;
}

@media (min-width: 971px) {
  .mobile-menu {
    display: none !important;
  }
}

/************************************************************
 * HERO/SECTION LAYOUTS, FEATURES
 ************************************************************/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
  margin-top: 18px;
}
.feature-icon {
  background: #1B4D6B;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-shadow: 0 3px 16px #364B6720;
  margin-bottom: 8px;
}
.feature-description {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 4px;
}
@media (max-width: 700px) {
  .feature-grid {
    gap: 18px 0;
  }
}

.key-service-icons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  margin: 20px 0 22px 0;
}
.key-service-icons img {
  height: 50px;
  width: 50px;
  border-radius: 9px;
  box-shadow: 0 1px 9px #ECA52722;
  background: #223B54;
}

.team-highlight {
  margin: 22px 0 10px 0;
  background: #ECA527;
  color: #193B52;
  font-weight: bold;
  border-radius: 12px;
  padding: 13px 20px;
  box-shadow: 0 1px 10px #FFD45115;
}

/************************************************************
 * TESTIMONIALS
 ************************************************************/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #F3F3F3;
  color: #1E2B38;
  border-radius: 18px;
  box-shadow: 0 2px 12px #14223218;
  padding: 20px;
  margin-bottom: 22px;
  position: relative;
}
.testimonial-quote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #142232;
  margin-bottom: 10px;
}
.testimonial-meta {
  font-size: 0.95rem;
  color: #445D7B;
  font-weight: 500;
  align-self: flex-end;
}

/************************************************************
 * TABLES, FAQ, DTS
 ************************************************************/
table {
  width: 100%;
  border-collapse: collapse;
  background: #243B50;
  color: #F3F3F3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px #14223220;
  margin: 16px 0 28px 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.01rem;
}
th, td {
  padding: 14px 16px;
  text-align: left;
}
th {
  background: #1C2F44;
  color: #ECA527;
  font-size: 1.06rem;
}
tr {
  border-bottom: 1px solid #1B4D6B;
}
tr:last-child {
  border-bottom: none;
}

dl {
  margin-bottom: 30px;
}
dl dt {
  font-size: 1.11rem;
  font-family: 'Montserrat';
  font-weight: 600;
  color: #ECA527;
  margin-top: 20px;
}
dl dd {
  margin-bottom: 12px;
  margin-left: 18px;
  font-size: 0.98rem;
  color: #F3F3F3;
}

/************************************************************
 * BUTTONS & CTA
 ************************************************************/
.primary-cta, a.primary-cta, button.primary-cta {
  display: inline-block;
  background: #ECA527;
  color: #142232;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.18rem;
  border: none;
  border-radius: 20px;
  padding: 13px 30px;
  margin: 17px 0 2px 0;
  cursor: pointer;
  box-shadow: 0 3px 16px #FFD45138;
  outline: none;
  text-align: center;
  transition: background 0.18s, color 0.22s, box-shadow 0.19s, transform 0.12s;
}
.primary-cta:hover, .primary-cta:focus {
  background: #FFD451;
  color: #1E2B38;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px #FFD45154;
}

.button-group {
  display: flex;
  flex-direction: row;
  gap: 18px;
}

/************************************************************
 * FOOTER
 ************************************************************/
footer {
  background: #142232;
  border-top: 3px solid #ECA527;
  width: 100%;
}
footer .container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px 18px 20px;
}
.footer-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 12px #ECA52725);
  background: #223B54;
  border-radius: 10px;
  padding: 3px 7px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #ECA527;
  font-family: 'Montserrat';
  font-size: 1rem;
  transition: color 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFE0A0;
}
.footer-contact {
  color: #F3F3F3;
  font-size: 0.96rem;
  margin: 7px 0 0 0;
  text-align: center;
}
.footer-legal {
  color: #667CA0;
  font-size: 0.88rem;
  margin: 11px 0 0 0;
  text-align: center;
}
@media (max-width: 700px) {
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/************************************************************
 * FORMS (CONTACT & COOKIE)
 ************************************************************/
input, select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 10px;
  border: 1.5px solid #ECA527;
  padding: 10px 14px;
  margin-bottom: 15px;
  width: 100%;
  background: #142232;
  color: #F3F3F3;
  outline: none;
  transition: border-color 0.18s;
}
input:focus, select:focus, textarea:focus {
  border-color: #FFD451;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #ECA527;
  margin-bottom: 5px;
  display: block;
}

/************************************************************
 * COOKIE CONSENT BANNER
 ************************************************************/
#cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #1b2e46;
  color: #ffffff;
  border-top: 2.5px solid #ECA527;
  box-shadow: 0 -3px 32px #193B5260;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 30px 22px 30px;
  z-index: 4500;
  animation: cookie-slide-up 0.6s cubic-bezier(.55,0,.8,1) 1;
}
@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px;
    gap: 14px;
  }
}
@keyframes cookie-slide-up {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#cookie-banner .cookie-text {
  font-size: 1rem;
  color: #F3F3F3;
  max-width: 550px;
  margin-right: 12px;
}
#cookie-banner .button-group {
  gap: 16px;
}
#cookie-banner button, .cookie-btn {
  font-size: 1rem;
  padding: 7.5px 18px;
  margin: 0 2px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  outline: none;
  transition: background 0.15s, color 0.15s, transform 0.13s;
}
#cookie-banner .accept-btn {
  background: #ECA527;
  color: #1B2E46;
}
#cookie-banner .accept-btn:hover {
  background: #FFD451;
  color: #142232;
}
#cookie-banner .reject-btn {
  background: #223B54;
  color: #FFD451;
}
#cookie-banner .reject-btn:hover {
  background: #FFD451;
  color: #223B54;
}
#cookie-banner .settings-btn {
  background: none;
  color: #FFD451;
  border: 1px solid #FFD451;
}
#cookie-banner .settings-btn:hover {
  background: #FFD45125;
}

/************************************************************
 * COOKIE MODAL POPUP
 ************************************************************/
#cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18,34,50, 0.93);
  z-index: 5000;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s cubic-bezier(.5,0,.56,1);
}
#cookie-modal.open {
  display: flex;
}
#cookie-modal .modal-content {
  background: #F3F3F3;
  color: #132237;
  border-radius: 18px;
  box-shadow: 0 10px 40px #193B5255;
  padding: 38px 32px 30px 32px;
  max-width: 450px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 18px;
  animation: pop-in 0.2s cubic-bezier(.7,.1,.3,1);
}
@keyframes fade-in {
  from { background: rgba(18,34,50,0); } to { background: rgba(18,34,50,0.93); }
}
@keyframes pop-in {
  from {transform: scale(.7) translateY(32px); opacity: .2;} to {transform: scale(1) translateY(0); opacity: 1;}
}
#cookie-modal h2 {
  margin-bottom: 8px;
  color: #193B52;
}
#cookie-modal .close-modal {
  position: absolute;
  top: 18px; right: 16px;
  background: none;
  border: none;
  font-size: 1.55rem;
  color: #ECA527;
  cursor: pointer;
}
#cookie-modal .cookies-category-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
#cookie-modal label {
  color: #193B52;
  font-size: 1rem;
}
#cookie-modal input[type="checkbox"] {
  width: 21px; height: 21px;
  accent-color: #ECA527;
}
#cookie-modal .essential-label {
  color: #71767c;
  font-size: .93rem;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}
#cookie-modal .cookie-btn {
  background: #ECA527;
  color: #132237;
  border-radius: 9px;
}
#cookie-modal .cookie-btn.secondary {
  background: #223B54;
  color: #FFD451;
}

/************************************************************
 * MISC CLASSES (MAP, DETAILS, CONTACT INFO)
 ************************************************************/
.contact-details {
  margin-bottom: 18px;
}
.opening-hours {
  margin-bottom: 18px;
  font-size: 1.1rem;
  color: #FFD451;
  font-family: 'Montserrat';
}
.map-location {
  margin-bottom: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ECA527;
}

.cta-section h3 {
  color: #ECA527;
  margin: 0 0 11px 0;
  font-size: 1.21rem;
  font-family: 'Montserrat';
}

/************************************************************
 * RESPONSIVE ADJUSTMENTS (Mobile First)
 ************************************************************/
@media (max-width: 970px) {
  header .container { flex-direction: row; }
}
@media (max-width: 800px) {
  h1 {font-size: 2.1rem;}
  h2 {font-size: 1.5rem;}
  .container { padding: 0 6px; }
}
@media (max-width: 700px) {
  .testimonial-card { padding: 15px; }
  .card { padding: 16px 7px; border-radius: 12px; }
  .map-location { font-size: .98rem; }
}
@media (max-width: 440px) {
  .footer-logo img { height: 39px; }
}
@media (max-width: 360px) {
  .main-nav .nav-cta, .primary-cta, #cookie-banner button {
    font-size: .95rem;
    padding: 9px 14px;
  }
  footer .container, .content-wrapper {
    padding: 11px 3px;
  }
}

/************************************************************
 * ANIMATIONS & MICRO-INTERACTIONS
 ************************************************************/
button, .primary-cta, a.primary-cta {
  transition: background 0.16s, color 0.14s, box-shadow 0.18s, transform 0.14s;
}
.mobile-menu,
#cookie-modal {
  transition: transform 0.33s, opacity 0.3s;
}

a, .feature-icon, .main-nav a, .mobile-nav a {
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

/************************************************************
 * BRAND COLORS (Fallbacks)
 ************************************************************/
:root {
  --primary: #193B52;
  --secondary: #ECA527;
  --accent: #F3F3F3;
}

/************************************************************
 * SPECIFIC UTILITY CLASSES
 ************************************************************/
.text-section {
  margin-bottom: 16px;
  padding-right: 4px;
}

/************************************************************
 * CARD SPACING ENFORCEMENT
 ************************************************************/
.card-container > *,
.card-grid > *,
.content-grid > * {
  margin-bottom: 20px;
}

/************************************************************
 * PRINT FRIENDLY
 ************************************************************/
@media print {
  header, footer, #cookie-banner, #cookie-modal, .mobile-menu { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
}
