/* 
 * Main CSS for Ozturk Truck & Trailer Repair
 * A clean, responsive design for a professional truck repair business
 */

/* ===== CSS Reset and Base Styles ===== */
:root {
  --primary: #0f172a;       /* Blue-gray-900 */
  --primary-light: #1e293b; /* Blue-gray-800 */
  --accent: #ef4444;        /* Red-500 */
  --accent-hover: #dc2626;  /* Red-600 */
  --neutral: #f8fafc;       /* Slate-50 */
  --neutral-light: #f1f5f9; /* Slate-100 */
  --neutral-medium: #e2e8f0;/* Slate-200 */
  --neutral-dark: #64748b;  /* Slate-500 */
  --text: #1e293b;          /* Slate-800 */
  --text-light: #475569;    /* Slate-600 */
  --white: #ffffff;
  --black: #0f172a;
  
  --radius: 6px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}

.col {
  position: relative;
  width: 100%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

/* ===== Responsive Breakpoints ===== */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* ===== Typography Utilities ===== */
.text-muted {
  color: var(--text-light);
}

.text-accent {
  color: var(--accent);
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

/* ===== Component Styling ===== */

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
}

.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-button svg {
  color: var(--primary);
}

.nav-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.nav-menu.active {
  display: flex;
}

.nav-link {
  padding: 0.75rem 1rem;
  color: var(--primary);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
  }
  
  .nav-link {
    padding: 0.5rem 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  color: var(--white);
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
}

.btn-accent {
  color: var(--white);
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background-color: var(--white);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.emergency-service-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.emergency-icon {
  color: var(--white);
}

.hero-image {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
}

.rounded {
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .hero-image {
    margin-top: 0;
  }
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--neutral-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.feature-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  height: 100%;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--white);
}

.service-card {
  background-color: var(--neutral-light);
  padding: 2rem;
  border-radius: var(--radius);
  height: 100%;
  transition: all 0.3s ease;
  border-left: 4px solid var(--accent);
}

.service-card:hover {
  box-shadow: var(--shadow);
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--neutral-light);
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* CTA Section */
.cta {
  padding: 4rem 0;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  color: var(--white);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: var(--white);
}

.contact-info {
  background-color: var(--neutral-light);
  padding: 2rem;
  border-radius: var(--radius);
  height: 100%;
}

.map-container {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--white);
  border: 1px solid var(--neutral-medium);
  border-radius: var(--radius);
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  padding: 5rem 0 2rem;
  background-color: var(--primary);
  color: var(--neutral);
}

.footer h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer ul {
  margin-bottom: 1.5rem;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: var(--neutral-medium);
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--neutral-medium);
}

.footer-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--accent);
  color: var(--white);
}

.footer-map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.copyright {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--neutral-dark);
  font-size: 0.875rem;
}

/* Utility Classes */
.icon {
  color: currentColor;
}