/*
  Signature Looks – Unisex Salon

  This stylesheet defines the visual identity of the Signature Looks website.
  A warm palette of earth and amber tones harmonises with our illustrations
  and helps create an inviting atmosphere.  Layouts are responsive to
  adapt gracefully to small screens.
*/

/* Colour variables for easy theming */
:root {
  /* Updated luxury colour palette with rich browns and golden accents */
  --color-bg: #f6f1eb;           /* soft beige background for a refined feel */
  --color-primary: #795548;      /* rich chocolate brown for headings and accents */
  --color-secondary: #5d4037;    /* dark brown for body text */
  --color-accent: #cda373;       /* muted gold for buttons and highlights */
  --color-light: #ffffff;        /* white */
  --color-dark: #2e221b;         /* deep brown for dark text */
  --radius: 8px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-secondary);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3 {
  color: var(--color-primary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

/* Navigation bar */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  background-color: var(--color-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links li a {
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Style login links differently to make them stand out */
.nav-links .login-link a {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  background-color: var(--color-light);
  color: var(--color-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dropdown login menu */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-toggle::after {
  content: '\25BE'; /* downward pointing triangle */
  margin-left: 4px;
  font-size: 0.7rem;
}

.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-light);
  border: 1px solid #e0d7cd;
  border-radius: var(--radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  display: none;
  flex-direction: column;
  min-width: 160px;
  z-index: 1000;
}

.nav-links .dropdown:hover .dropdown-menu,
.nav-links .dropdown:focus-within .dropdown-menu {
  display: flex;
}

.nav-links .dropdown-menu li a {
  padding: 0.5rem 1rem;
  color: var(--color-primary);
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.nav-links .dropdown-menu li a:hover,
.nav-links .dropdown-menu li a:focus {
  background-color: var(--color-bg);
}

/* Ensure dropdown displays properly on mobile when nav is open */
@media (max-width: 768px) {
  .nav-links .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    min-width: auto;
  }
}

/* Appointment link styling */
.appointment-link {
  margin-top: 1rem;
}

.nav-links .login-link a:hover,
.nav-links .login-link a:focus {
  background-color: var(--color-primary);
  color: var(--color-light);
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--color-accent);
}

/* Hamburger menu (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hero section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light);
  text-align: center;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
}

/* Semi-transparent overlay to improve text readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-content h1 {
  color: var(--color-light);
  margin-bottom: 0.5rem;
}

.hero-content p {
  color: #f2e8de;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-dark);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover,
.btn:focus {
  background-color: var(--color-primary);
  color: var(--color-light);
}

/* About section */
.about {
  padding: 4rem 0;
  background-color: var(--color-light);
}

.about p {
  max-width: 800px;
}

/* Services section */
.services {
  padding: 4rem 0;
  background-color: var(--color-bg);
}

.service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-item {
  background-color: var(--color-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.service-item h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

/* Gallery section */
.gallery {
  padding: 4rem 0;
  background-color: var(--color-light);
}

/* Full menu link button wrapper */
.full-menu-link {
  text-align: center;
  margin-top: 2rem;
}

/* Service menu section */
.service-menu {
  padding: 4rem 0;
  background-color: var(--color-light);
}

.service-menu .menu-list {
  margin-top: 1.5rem;
}

/* Each details container styles the collapsible panels */
.service-menu details {
  border: 1px solid #e0d7cd;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background-color: #faf5ef;
}

/* Styling the summary element to act as a header */
.service-menu summary {
  cursor: pointer;
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  list-style: none;
}

/* Hide default disclosure triangle */
.service-menu summary::-webkit-details-marker {
  display: none;
}

/* Custom arrow indicator for collapsed/expanded state */
.service-menu summary::after {
  content: '\25BC';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

/* Rotate arrow when details are open */
.service-menu details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

/* List styling inside the service menu */
.service-menu ul {
  list-style: none;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.service-menu ul ul {
  padding-left: 1.5rem;
}

.service-menu li {
  margin-bottom: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Contact section */
.contact {
  padding: 4rem 0;
  background-color: var(--color-bg);
}

/* Social links inside the contact section */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-light);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
  background-color: var(--color-accent);
  color: var(--color-light);
}

.contact .address {
  font-weight: 600;
  margin-bottom: 1rem;
}

form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e0d7cd;
  border-radius: var(--radius);
  font: inherit;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(217, 162, 95, 0.3);
}

button[type="submit"] {
  align-self: flex-start;
  background-color: var(--color-primary);
  color: var(--color-light);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: var(--color-secondary);
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 1.5rem 0;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
}

/* Responsive navigation and layout adjustments */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    width: 200px;
    background-color: var(--color-light);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -4px 0 8px rgba(0,0,0,0.1);
  }
  .nav-links.open {
    right: 0;
  }
  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.2rem;
  }
}