/* ===== BASE STYLES ===== */
/* These styles apply to all devices, starting with mobile */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* CSS variables for consistent theming */
  --primary-color: #3498DB;
  --complementary-color: #DB7734;
  --complementary-color-light: #f7e2d3;
  --complementary-color-lighter: #fbf1eb;
  --primary-color-dark: #1f73ac;
  --primary-color-light: #d1e7ea;
  --primary-color-lighter: #dfeef0;
  --secondary-color: #DB3498;
  --secondary-color-dark: #b22077;
  --tertiary-color: #98DB34;
  --text-color: #333;
  --background-color: #fff;
  --heading-font: 'Open Sans', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  font-size: 16px; /* Base font size for mobile */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  margin-bottom: 1rem;
}

/* Mobile-first typography */
h1 { font-size: 2.2rem; font-weight: 600; }
h2 { font-size: 1.5rem; font-weight: 500; }
h3 { font-size: 1rem; font-weight: 300; }

a {
  color: var(--text-color); 
  text-decoration-line: none;
}

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

footer {
  background-color: var(--background-color);
}

footer div {
  display: flex;
  justify-content: center;
  width: 80%;
  margin: 0px auto;
}

footer img {
  height: 2rem;
  margin: 1rem 1rem 1rem;
}

.copyright {
  font-size: 0.7rem;
  margin-bottom: 1rem;
}

/* Basic container - starts narrow */
.container {
  width: 100%;
  padding: 0 10px;
  margin: 0 auto;
}

/* Mobile-first spacing */
section {
  margin: 1rem 0;
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.space-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.fill-flex {
  flex-grow: 2;
}

/* Grid system - mobile first */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4-column grid on mobile */
  gap: 10px;
}

/* Mobile navigation */
header {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header a {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: none; /* Hidden by default on mobile */
}

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

.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 67px;
  left: 0;
  width: 100%;
  background-color: var(--background-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 100;
}

.nav-toggle {
  display: block; /* Visible on mobile */
}

.vertical-middle {
  margin-top: auto;
  margin-bottom: auto;
}

.icon-search {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-image: url("../images/search-icon.svg");
}

#search {
  display: none;
}

/* IDs */
#logo {
  width: 100px;
  transition: width 0.3s ease;
}

/* Mobile grid columns (default) */
.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }

/* Burger Menu Styles START */
#burger-menu-button {
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  margin-left: 15px;
  margin-right: 10px;
}

.burger-bar {
  width: 100%;
  height: 1px;
  background-color: var(--text-color);
  position: absolute;
  border-radius: 2px;
}

/* Three bars positioning */
.burger-bar:nth-child(1) {
  top: 0;
}

.burger-bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.burger-bar:nth-child(3) {
  bottom: 0;
}

/* Active state (X) transformation */
#burger-menu-button.active .burger-bar:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}

#burger-menu-button.active .burger-bar:nth-child(2) {
  opacity: 0;
}

#burger-menu-button.active .burger-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Navigation menu styles */
header nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--background-color);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

/* Burger Menu Styles END */

header nav.active {
  display: block;
}

header nav ul {
  list-style: none;
  padding: 0;
}

header nav ul li {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  text-align: center;
}

header nav ul li:hover {
  background-color: #f5f5f5;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--primary-color);
}

/* Brand list styling START */
.services-section {
  padding: 40px 0;
  background-color: var(--complementary-color-light);
}

.services-heading {
  margin-bottom: 10px;
}

.services-subheading {
  margin-bottom: 40px;
  color: #666;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
/* Brand list styling END */

main {
  text-align: center;
}

main h3 {
  margin-top: 16px;
}

/* Hero section styling START */
#herocontainer {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 350px;
  max-width: 100%;
  margin: 0 auto;
}

#herocontainer picture {
  width: 100%;
  height: 100%;
  display: block;
}

#herocontainer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero_message_container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
}

#hero_message1 {
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Text shadow for better readability */
}

#hero_message2 {
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  font-size: 1rem;
  font-weight: 300;
}

/* Style for CTA button */
.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.7rem 1rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 400;
  transition: background-color 0.3s;
  margin: 0 auto;
}

.cta-button:hover {
  background-color: var(--primary-color-dark); /* Darker shade on hover */
  cursor: pointer;
}

/* ===== UTILITY CLASSES ===== */
/* Show elements based on screen size */
.mobile-only {
  display: block;
}

.tablet-only,
.desktop-only {
  display: none;
}

article {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.article-paragraph {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.article-paragraph h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.article-paragraph h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.article-paragraph p {
  font-size: 1rem;
  line-height: 1.7;
}

.article-paragraph__secondary {
  background-color: var(--complementary-color-lighter);
}

.article-paragraph picture {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.article-paragraph picture img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-paragraph:hover picture img {
  transform: scale(1.05);
}

.article-paragraph div {
  text-align: center;
  padding: 0;
  max-width: 100%;
}

.testimonials-section {
  padding: 60px 0;
  background-color: var(--complementary-color-lighter);
  text-align: center;
}

.testimonials-heading {
  margin-bottom: 40px;
}

.testimonials-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 90%;
  margin: 0 auto;
}

.testimonial-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  flex: 1;
}

.testimonial-stars {
  color: #FFD700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

.testimonials-cta {
  margin-top: 40px;
}

/* Contact Form Section Styles */
.contact-section {
  padding: 60px 0;
  background-color: var(--complementary-color-light);
  text-align: center;
}

.contact-heading {
  margin-bottom: 10px;
}

.contact-subheading {
  margin-bottom: 40px;
  color: #666;
}

.contact-container {
  display: flex;
  flex-direction: column;
  max-width: 90%;
  margin: 0 auto;
  gap: 40px;
}

.contact-info {
  background-color: var(--complementary-color-lighter);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 24px;
  height: 24px;
  margin-right: 15px;
}

.contact-form {
  background-color: white; /* Keep white for readability of form fields */
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid var(--complementary-color-light); /* Add a subtle border */
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--body-font);
  font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2); /* Subtle glow effect using primary color */
}

.form-group textarea {
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: center;
}

.form-checkbox input {
  width: auto;
  margin-right: 10px;
}

.form-checkbox label {
  margin-bottom: 0;
  font-weight: normal;
  font-size: 14px;
}

.contact-submit {
  width: 100%;
  margin-top: 10px;
}

.contact-submit:hover {
  background-color: var(--primary-color-dark);
}

/* Special Offers Section Styles */
.special-offers-section {
  padding: 60px 0;
  background-color: var(--complementary-color-lighter);
  text-align: center;
}

.special-offers-heading {
  margin-bottom: 10px;
}

.special-offers-subheading {
  margin-bottom: 40px;
  color: #666;
}

.offers-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 90%;
  margin: 0 auto;
}

.offer-card {
  background-color: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  position: relative;
  border: 1px solid var(--complementary-color-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.offer-card-featured {
  background-color: var(--complementary-color-light);
  border: 1px solid var(--complementary-color);
}

.offer-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background-color: var(--complementary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.offer-card-featured .offer-badge {
  background-color: var(--complementary-color);
}

.offer-title {
  margin: 10px 0 15px 0;
  color: var(--text-color);
}

.offer-description {
  margin-bottom: 25px;
  color: #555;
  line-height: 1.6;
}

.offer-cta {
  margin-top: auto;
  display: inline-block;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
  
  .tablet-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }

  .container {
    max-width: 90%;
    padding: 0 15px;
  }
  
  /* Tablet typography */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.4rem; }
  
  /* Tablet spacing */
  section {
    margin: 20px 0;
  }
  
  /* Adjust grid for tablet */
  .grid {
    grid-template-columns: repeat(8, 1fr); /* 8-column grid on tablet */
    gap: 15px;
  }
  
  /* Tablet grid columns */
  .tab-col-1 { grid-column: span 1; }
  .tab-col-2 { grid-column: span 2; }
  .tab-col-3 { grid-column: span 3; }
  .tab-col-4 { grid-column: span 4; }
  .tab-col-6 { grid-column: span 6; }
  .tab-col-8 { grid-column: span 8; }
  
  #logo {
    width: 120px;
  }

  /* Specific tablet layout adjustments */
  .sidebar {
    padding: 15px;
  }

  header nav.active {
    display: flex;
    justify-content: center;
  }

  header nav ul {
    width: 100%;
    justify-content: space-around;
  }

  header nav ul li {
    padding: 15px 10px;
    transition: color 0.3s ease;
  }

  header nav ul li:hover {
    color: var(--primary-color);
  }

  #hero_message_container {
    padding: 30px 60px;
    background-color: rgba(0, 0, 0, 0.4);
  }

  #hero_message1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }
  
  #hero_message2 {
    font-size: 1.3rem;
    max-width: 80%;
    margin: 0 auto 25px;
  }
  
  #hero, #herocontainer {
    min-height: 450px;
  }

  #herocontainer {
    height: 450px;
  }

  .services-section {
    padding: 60px 0;
  }

  .article-paragraph {
    padding: 60px 40px;
    flex-direction: row;
  }

  .article-paragraph div {
    text-align: left;
    padding-left: 20px;
    flex: 1;
  }

  .article-paragraph picture {
    flex: 1;
    max-width: none;
  }

  .article-paragraph:nth-child(even) {
    flex-direction: row-reverse;
  }

  .article-paragraph:nth-child(even) div {
    padding-left: 0;
    padding-right: 20px;
  }

  .article-paragraph h3 {
    font-size: 1.6rem;
  }

  .article-paragraph h3::after {
    width: 80px;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .testimonials-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .testimonial-card {
    flex: 0 0 calc(50% - 20px);
    flex-direction: row;
  }
  
  .testimonial-image {
    margin-right: 20px;
    margin-bottom: 0;
  }

  .contact-container {
    flex-direction: row;
    max-width: 90%;
  }
  
  .contact-info {
    flex: 1;
  }
  
  .contact-form {
    flex: 2;
  }

  .offers-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .offer-card {
    flex: 0 0 calc(50% - 20px);
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 1024px) {
  .tablet-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }

  .container {
    max-width: 1200px;
    padding: 0 20px;
  }
  
  /* Desktop typography */
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.5rem; }
  
  /* Desktop spacing */
  section {
    margin: 30px 0;
  }
  
  /* Adjust grid for desktop */
  .grid {
    grid-template-columns: repeat(12, 1fr); /* 12-column grid on desktop */
    gap: 20px;
  }
  
  /* Desktop navigation */
  .nav-menu {
    display: flex; /* Always visible on desktop */
    flex-direction: row;
  }
  
  .nav-toggle {
    display: none; /* Hidden on desktop */
  }
  
  /* Desktop grid columns */
  .desk-col-1 { grid-column: span 1; }
  .desk-col-2 { grid-column: span 2; }
  .desk-col-3 { grid-column: span 3; }
  .desk-col-4 { grid-column: span 4; }
  .desk-col-6 { grid-column: span 6; }
  .desk-col-8 { grid-column: span 8; }
  .desk-col-12 { grid-column: span 12; }

  #burger-menu-button {
    display: none; /* Hide burger on desktop */
  }

  #logo {
    width: 140px;
  }
  
  header nav {
    display: flex !important;
    position: static;
    width: auto;
    box-shadow: none;
    margin-left: 30px;
  }
  
  header nav ul {
    display: flex;
    width: auto;
  }
  
  header nav ul li {
    padding: 0 20px;
    font-weight: 500;
    border-bottom: none;
    position: relative;
  }

  header nav ul li::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }

  header nav ul li:hover::after {
    transform: scaleX(1);
  }

  #hero_message_container {
    padding: 40px 80px;
    align-items: flex-start;
    text-align: left;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    justify-content: center;
  }
  
  #hero_message1 {
    font-size: 3rem;
    max-width: 600px;
    text-align: left;
  }
  
  #hero_message2 {
    font-size: 1.5rem;
    margin: 0 0 30px 0;
    max-width: 550px;
    text-align: left;
  }
  
  #hero, #herocontainer {
    min-height: 550px; /* Even taller for desktop */
  }

  #herocontainer {
    height: 600px;
  }

  .cta-button {
    padding: 14px 36px;
    font-size: 1.1rem;
    margin: 0;
  }

  .services-section {
    padding: 80px 0;
  }

  .article-paragraph {
    padding: 80px 60px;
  }
  
  .article-paragraph div {
    padding-left: 40px;
    max-width: 50%;
  }
  
  .article-paragraph:nth-child(even) div {
    padding-right: 40px;
  }
  
  .article-paragraph picture {
    max-width: 50%;
  }
  
  .article-paragraph h3 {
    font-size: 1.8rem;
  }
  
  .article-paragraph h3::after {
    width: 100px;
  }
  
  .article-paragraph p {
    font-size: 1.1rem;
  }

  .testimonials-container {
    flex-wrap: nowrap;
    gap: 30px;
    max-width: 1200px;
  }
  
  .testimonial-card {
    flex: 1;
  }

  .testimonials-cta {
    margin-top: 40px;
  }

  .contact-container {
    gap: 60px;
    max-width: 1200px;
  }

  .offers-container {
    flex-wrap: nowrap;
    max-width: 1200px;
  }
  
  .offer-card {
    flex: 1;
  }
  
  .offer-card-featured {
    flex: 1.1;
    transform: scale(1.05);
    z-index: 2;
  }
  
  .offer-card-featured:hover {
    transform: scale(1.05) translateY(-5px);
  }
}

/* ===== LARGE DESKTOP STYLES ===== */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  /* Even larger typography */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.7rem; }

  #herocontainer {
    height: 700px;
  }

  #hero_message1 {
    font-size: 3.5rem;
    max-width: 700px;
  }

  #hero_message2 {
    font-size: 1.7rem;
    max-width: 650px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  .no-print {
    display: none;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}
