/*************************************/
/************ GLOBAL CSS *************/
/*************************************/
:root {
  --primary-color: #e63946;
  --primary-hover-color: #c02634;
  --secondary-color: #555;
  --background-color: #f9f9f9;
  --card-background: #fff;
  --card-shadow: rgba(0, 0, 0, 0.35);
  --animation-timing: 0.3s ease-in-out;
  --input-background: #fae4e6;
  --input-hover-background: #ffe6f0;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: #333;
}

body.dark-mode{
  --background-color:#191919;
  --card-background:#212121;
  --primary-background:#121212;
  --input-background:#000000;
  --text-color:#FFFFFF;
  --text-muted:#DDDDDD;
}


.hero {
  margin-top: 15vh !important;
}

/*************************************/
/******* CONTACT INFO AND FORM *******/
/*************************************/
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.heading {
  text-align: center;
  margin-bottom: 30px;
}

.heading h1 {
  font-size: 36px;
  color: #333;
}

.heading span {
  color: var(--primary-color);
}

.contact-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.contact-box {
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: var(--card-shadow) 0px 5px 15px;
  padding: 20px;
  text-align: left;
}

.contact-box h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

.contact-box p {
  font-size: 14px;
  color: var(--secondary-color);
  line-height: 1.6;
  margin: 5px 0;
}

.contact-box i {
  font-size: 20px;
  color: var(--primary-color);
  margin-right: 10px;
}

.form-box {
  background: var(--card-background);
  border-radius: 8px;
  box-shadow: var(--card-shadow) 0px 5px 15px;
  padding: 20px;
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  background-color: var(--input-background);
}

.inputForm:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(199, 41, 41, 0.2);
}

.form-box textarea {
  resize: none;
  height: 100px;
}

.form-box button {
  padding: 10px 20px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  -webkit-transition: background-color 0.3s ease, transform 0.3s ease;
  -ms-transition: background-color 0.3s ease, transform 0.3s ease;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.form-box button:hover {
  background: var(--primary-hover-color);
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
}

/*************************************/
/******** CONTACT INFO CARDS *********/
/*************************************/
.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.info-card {
  background: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 4px 6px var(--card-shadow);
  padding: 20px;
  transition: transform var(--animation-timing), box-shadow var(--animation-timing);
  cursor: pointer;
}

.info-card img {
  margin-bottom: 10px;
}

.info-card h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.info-card p {
  font-size: 14px;
  color: var(--secondary-color);
  margin-bottom: 1px;
}

.info-card a {
  display: inline-block;
  font-size: 14px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.info-card a:hover {
  text-decoration: underline;
}

.info-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  background-color: rgb(255, 248, 220);
}

/*************************************/
/**************** MAP ****************/
/*************************************/
.map {
  width: 100%;
  height: fit-content;
  background: url('https://via.placeholder.com/1200x300') no-repeat center center/cover;
  border-radius: 8px;
  margin-bottom: 40px;
}

.map iframe{
  width: 100%;
}

/*************************************/
/************ NEWSLETTER *************/
/*************************************/
.newsletter {
  background: var(--card-background);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--card-shadow) 0px 5px 15px;
  text-align: center;
}

.newsletter p {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.newsletter input {
  padding: 10px;
  width: 70%;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-right: 10px;
  font-size: 14px;
  background-color: var(--input-background);
}

.newsletter button {
  padding: 10px 20px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  -webkit-transition: background-color 0.3s ease, transform 0.3s ease;
  -ms-transition: background-color 0.3s ease, transform 0.3s ease;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.newsletter button:hover {
  background: #9b0511;
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
}

/*************************************/
/************** FOOTER ***************/
/*************************************/
.footer {
  background-color: #333;
  color: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-about,
.footer-links,
.footer-contact {
  flex: 1;
  min-width: 250px;
}

.footer h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.footer p,
.footer ul,
.footer a {
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  color: #ccc;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a:hover {
  color: #fff;
}

.footer-socials a {
  margin-right: 10px;
  color: #ccc;
  font-size: 18px;
  transition: color var(--animation-timing);
}

.footer-socials a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 10px;
  font-size: 14px;
  color: #aaa;
}

/* Media Queries for Small devices (phones) */
@media (max-width: 480px) {
  /*************************************/
  /******* CONTACT INFO AND FORM *******/
  /*************************************/
  .container{
    padding: 0px 5px !important;
  }

  .contact-box, .form-box{
    width: 96vw !important;
  }

  /*************************************/
  /******** CONTACT INFO CARDS *********/
  /*************************************/
  .info-section{
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }

  .info-card{
    padding: 20px 10px;
  }

  /*************************************/
  /************ NEWSLETTER *************/
  /*************************************/
  .newsletter {
    padding: 20px 5px;
  }

  .newsletter input {
    margin-bottom: 15px;
    width: 100%;
  }

  .newsletter button {
    padding: 8px 16px;
  }
}

.dark-mode .heading h1,.dark-mode .contact-box h3 ,.dark-mode .contact-box,.dark-mode .form-box,.dark-mode input,.dark-mode textarea{
  color: var(--text-color);
}

.dark-mode .contact-box,.dark-mode .form-box,.dark-mode .newsletter{
  background: var(--card-background);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.dark-mode .contact-box p,.dark-mode .newsletter p{
  color: var(--text-muted);
}

.dark-mode .newsletter input,.dark-mode .form-box input, .dark-mode .form-box textarea{
  background-color:var(--input-background);
}