/* style.refactored.css
  This is a modernized version of the original stylesheet, 
  incorporating the new color palette and restoring visual elements.
*/

/* 1. Define the new color palette as CSS Variables */
:root {
  --primary-yellow: #FFC72C;
  --dark-charcoal: #2D2D2D;
  --clean-white: #FFFFFF;
  --light-gray: #F5F5F5;
  --text-primary: var(--dark-charcoal);
  --text-on-dark: var(--clean-white);
  --background-main: var(--clean-white);
  --background-secondary: var(--light-gray);
  --background-dark: var(--dark-charcoal);
}

/* --- Font Definitions (from original file) --- */
@font-face { 
  font-family: 'RobotoCondensed'; 
  src: url('../_fonts/RobotoCondensed-Regular-webfont.eot'); 
  src: url('../_fonts/RobotoCondensed-Regular-webfont.eot?#iefix') format('embedded-opentype'), 
       url('../_fonts/RobotoCondensed-Regular-webfont.woff') format('woff'), 
       url('../_fonts/RobotoCondensed-Regular-webfont.ttf') format('truetype'), 
       url('../_fonts/RobotoCondensed-Regular-webfont.svg#roboto_condensedregular') format('svg'); 
  font-weight: normal; 
  font-style: normal; 
}
@font-face { font-family: 'icomoon'; src:url('../_fonts/icomoon.eot?5pcktt'); src:url('../_fonts/icomoon.eot?#iefix5pcktt') format('embedded-opentype'), url('../_fonts/icomoon.ttf?5pcktt') format('truetype'), url('../_fonts/icomoon.woff?5pcktt') format('woff'), url('../_fonts/icomoon.svg?5pcktt#icomoon') format('svg'); font-weight: normal; font-style: normal; }


/* 2. Global Resets and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Modern reset */
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 10pt;
  color: var(--text-primary); /* New text color */
  background-color: var(--background-main); /* New background */
}

.wrapper {
    flex: 1 0 auto;
}
footer {
    flex-shrink: 0;
}


a {
  outline: none;
  transition: all 0.2s; /* Slightly faster transition */
  text-decoration: none;
  color: inherit;
}

/* 3. Typography with new colors */
h1, h2, h3, h4, h5 {
  font-family: 'RobotoCondensed', Tahoma, Helvetica, Arial, sans-serif;
  font-weight: normal;
  text-align: center;
  color: var(--text-primary); /* New default heading color */
}

h1 { text-transform: uppercase; font-size: 30pt; line-height: 1.2; }
h1 span { font-size: 10pt; text-transform: none; color: var(--text-primary); text-shadow: none; }
h2 { font-size: 14pt; }
h3 { font-size: 20pt; padding-top: 10px; }
h4 { font-size: 13pt; }

/* 4. Layout & Main Components */

header {
  padding-top: 15px;
  background-color: var(--background-dark);
  color: var(--text-on-dark);
}

header > div {
    width: 90%;
    max-w: 1200px;
    margin: 0 auto;
    padding-bottom: 35px;
    background: url(../_images/_taxi-line-white.png) center bottom repeat-x; /* Restored separator */
}

header ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding-bottom: 10px;
}

header ul li { display: inline-block; } 

/* Grouped language switcher styles */
header .lang-switcher a {
  display: inline-block;
  background: var(--primary-yellow);
  color: var(--text-primary);
  padding: 5px 15px;
  border-radius: 4px;
  margin-left: 5px;
  line-height: 2;
}
header .lang-switcher a:hover { background: var(--clean-white); }

/* Email link styles */
header ul li:first-child a {
  display: inline-block;
  background: var(--primary-yellow);
  color: var(--text-primary);
  padding: 5px 15px;
  border-radius: 4px;
  line-height: 2;
}
header ul li:first-child a:hover { background: var(--clean-white); }


header h1, header h1 span { color: var(--text-on-dark); }


.content {
  width: 90%;
  max-w: 1200px; /* Added max-width for large screens */
  margin: 0 auto;
  padding: 40px 0;
}

section { text-align:justify; margin-bottom:10px; clear:both; padding-bottom: 35px; }

section.orders, section.welcome, section.taxi {
    background: url(../_images/_taxi-line-black.png) center bottom repeat-x;
}
section.service {
    background: url(../_images/_taxi-line-white.png) center bottom repeat-x;
}

/* 5. Refactored blocks and lists */
.orders.group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.orders .col { width: auto !important; margin: 0 !important; float: none !important; }

.orders a {
  display: flex;
  flex-direction: column;
  padding: 15px;
  background: var(--background-secondary);
  border-radius: 8px; /* Rounded corners */
  text-align: center;
  height: 100%; /* Make cards same height */
}
.orders a:hover { background: var(--clean-white); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.orders a h2 { color: var(--text-primary); font-size: 13pt; margin-top: 10px; }
.orders a div { font-size: 9pt; line-height: 1.5; text-align: justify; flex-grow: 1; }
.orders a span { color: var(--text-primary); border-bottom: 2px dotted var(--primary-yellow); }
.orders a:hover span { border-bottom-color: var(--text-primary); }

/* FIX for list alignment */
section ul.list {
    list-style: none;
    padding: 7px 0 0 0;
}
section ul.list li {
    display: flex;
    align-items: flex-start;
    padding: 0 0 15px 0;
}
section ul.list li i {
    font-size: 13pt;
    color: var(--primary-yellow);
    margin-right: 15px;
    margin-top: 3px;
}
section ul.list li h4, section ul.list li span {
    text-align: left;
}
section ul.list li h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

/* Button styles */
section a.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 5px auto;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    color: var(--text-primary);
    font-size: 15pt;
}
section a.button span {
    border-bottom: 2px dotted var(--primary-yellow);
    transition: all 0.2s;
}
section a.button:hover span {
    border-bottom-color: transparent;
}


/* 6. Footer */
footer {
  padding: 20px 0;
  background: var(--background-dark);
  color: var(--text-on-dark);
  text-align: center;
}

footer > div {
    width: 90%;
    max-w: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer .reviews-block a { color: var(--primary-yellow); text-decoration: underline; }

footer .counter-images span:first-child {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 15px;
}

footer .counter-images img {
    height: 31px;
    width: auto;
}


/* --- Media Queries --- */
@media only screen and (max-width: 900px) {
  .orders.group { grid-template-columns: 1fr; }
  header ul { flex-direction: column; align-items: flex-start; gap: 10px; }
  header ul li { margin-bottom: 0; }
}

/* 7. CLEAN PHOTO GALLERY STYLES (as per user's example) */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.photo-grid .gallery-item {
    background: var(--background-secondary);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.photo-grid .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}
.photo-grid .gallery-item img {
    width: 100%;
    display: block;
    border-radius: 4px;
}
