@import url('https://fonts.googleapis.com/css2?family=Lemon:wght@400&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =====================
   BASE STYLES
===================== */

body {
  font-family: 'Lemon', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #267bc5;
  color: #2a80ca;
}

a {
  color: #2880cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.red-text {
  color: #8B0000;
}

.services-list {
  list-style: none;
}

.service-item {
  display: flex;
  align-items: flex-start;
  margin: 30px 0;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  gap: 30px;
}

.service-item > span {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
}

.image-carousel {
  margin-top: 0;
  height: 250px;
  width: 300px;
  position: relative;
  border-radius: 8px;
  flex-shrink: 0;
}

.image-carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 8px;
  animation: fadeInOut 4s infinite;
}

.image-carousel img.active {
  display: block;
}

@keyframes fadeInOut {
  0% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes spin {
  0% {
    transform: rotateY(360deg) rotateX(10deg);
  }
  100% {
    transform: rotateY(0deg) rotateX(10deg);
  }
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* =====================
   HEADER
===================== */

header {
  background: #000103;
  color: #25384b;
  padding: 20px 0;
  border-bottom: 3px solid #63c0c7;
}

header h1 {
  font-size: 28px;
  display: inline-block;
  margin: 0;
}

header .logo {
  height: 60px;
  margin-right: 15px;
  vertical-align: middle;
  animation: spin 2s linear infinite;
  transform-style: preserve-3d;
}

#branding {
  display: flex;
  align-items: center;
}

header .highlight {
  color: #5dade2;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 28px;
  color: #5dade2;
  text-shadow: 
    0 0 3px #5dade2,
    0 0 6px #5dade2;
}

/* =====================
   NAV
===================== */

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: #5dade2;
  font-weight: bold;
}

nav ul li.current a {
  color: #5dade2;
}

/* =====================
   SECTIONS
===================== */

.section {
  padding: 60px 0;
  background: #fff;
}

.section.dark {
  background: #222;
  color: #fff;
}

.section h2,
.section h3 {
  margin-bottom: 15px;
}

.section p {
  max-width: 700px;
}

#showcase {
  text-align: center;

  background:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.7)),
    url("pictures-barbershop/barbershop2.jpeg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
  min-height: 80vh;

  display: flex;
  align-items: center;
}


#showcase .container {
  width: 100%;
}

#showcase h2 {
  font-size: 40px;
  margin-bottom: 15px;
}

#showcase p {
  font-size: 18px;
  margin: auto;
}

/* Contact page hero with Barbershop Place background */
.contact-hero {
  position: relative;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("pictures-barbershop/Barbershop Place.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #fff;
  padding: 80px 0;
}

.contact-hero .container {
  position: relative;
  z-index: 2;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.contact-hero .contact-method {
  background: rgba(255,255,255,0.95);
  color: #000;
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* =====================
   BUTTONS
===================== */

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #2563a5;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background: #1f4d8c;
}

.btn:active {
  background: #163a66;
}

/* =====================
   HOURS LIST
===================== */

.hours {
  list-style: none;
}

.hours li {
  margin-bottom: 8px;
}

/* =====================
   LISTS
===================== */

section ul {
  margin-top: 15px;
  margin-left: 20px;
}

section ul li {
  margin-bottom: 10px;
}

/* =====================
   CONTACT PAGE
===================== */

.contact-method {
  margin-bottom: 30px;
}

.contact-method h3 {
  margin-bottom: 10px;
  color: #c0392b;
}

.socials {
  list-style: none;
  padding: 0;
}

.socials li {
  margin-bottom: 10px;
}

/* =====================
   FOOTER
===================== */

footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

/* =====================
   MOBILE RESPONSIVE
===================== */

/* Tablets and smaller screens */
@media (max-width: 768px) {
  /* Header layout adjustments */
  header .container {
    flex-direction: column;
    gap: 15px;
  }

  #branding {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  header h1 {
    font-size: 20px;
    text-align: center;
  }

  header .logo {
    height: 50px;
    margin-right: 10px;
  }

  /* Navigation adjustments */
  nav {
    width: 100%;
  }

  nav ul {
    width: 100%;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  nav ul li a {
    font-size: 14px;
  }

  /* Section padding adjustments */
  .section {
    padding: 40px 0;
  }

  #showcase {
    min-height: 60vh;
  }

  #showcase h2 {
    font-size: 28px;
  }

  #showcase p {
    font-size: 16px;
  }

  /* Service items - stack vertically */
  .service-item {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 15px;
  }

  .service-item > span {
    text-align: center;
    font-size: 14px;
  }

  .image-carousel {
    height: 200px;
    width: 100%;
    max-width: 280px;
  }

  /* Contact section adjustments */
  .contact-hero {
    padding: 50px 0;
  }

  .contact-hero .contact-method {
    padding: 15px;
    font-size: 14px;
  }

  /* Button adjustments */
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Container width for smaller screens */
  .container {
    width: 95%;
  }

  section ul {
    margin-left: 15px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  /* Header */
  header {
    padding: 15px 0;
  }

  header h1 {
    font-size: 18px;
  }

  header .logo {
    height: 45px;
    margin-right: 8px;
  }

  #branding {
    gap: 8px;
  }

  /* Navigation */
  nav ul {
    gap: 10px;
  }

  nav ul li a {
    font-size: 12px;
  }

  /* Section */
  .section {
    padding: 30px 0;
  }

  .section h2,
  .section h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  /* Showcase */
  #showcase {
    min-height: 50vh;
  }

  #showcase h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  #showcase p {
    font-size: 14px;
  }

  /* Service items */
  .service-item {
    padding: 12px;
    margin: 20px 0;
  }

  .service-item > span {
    font-size: 13px;
  }

  .image-carousel {
    height: 180px;
    width: 100%;
    max-width: 250px;
  }

  /* Contact */
  .contact-hero {
    padding: 40px 0;
  }

  .contact-hero .contact-method {
    padding: 12px;
    font-size: 13px;
  }

  .contact-hero .contact-method h3 {
    font-size: 16px;
  }

  /* Hours */
  .hours li {
    font-size: 13px;
  }

  /* Lists */
  section ul {
    margin-left: 12px;
  }

  section ul li {
    font-size: 13px;
  }

  /* Button */
  .btn {
    padding: 8px 16px;
    font-size: 12px;
    margin-top: 15px;
  }

  /* Footer */
  footer {
    padding: 15px 0;
    font-size: 12px;
  }

  .container {
    width: 97%;
  }
}
