/* styles.css - Premium design for ร้านกันต์เชียงใหม่ */
/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  /* Color palette */
  --primary: hsl(45, 90%, 55%);
  /* Warm gold */
  --primary-dark: hsl(45, 90%, 45%);
  --bg: hsl(210, 15%, 10%);
  /* Dark navy background */
  --surface: hsla(0, 0%, 100%, 0.08);
  /* Glass surface */
  --text: hsl(0, 0%, 95%);
  --muted: hsl(210, 10%, 50%);
  --accent: hsl(165, 70%, 45%);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glassmorphism utility */
.glass {
  backdrop-filter: blur(12px);
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Header (Hero) */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

/* Logo container – no background */
.logo {
  background: transparent;
  display: flex;
  align-items: center;
}

/* Logo image – ensure transparency */
.logo-img {
  background: transparent;
  max-height: 300px;
  height: auto;
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .logo-img {
    max-height: 160px;
  }
}

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

.hero .nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.hero .nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--primary);
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease;
}

.hero .nav-links a:hover::after {
  width: 100%;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--primary);
}

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

.card h3 {
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: hsla(0, 0%, 100%, 0.05);
  color: var(--text);
  font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form button {
  align-self: flex-start;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  padding: 2rem 0;
  background: hsla(0, 0%, 0%, 0.2);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive tweaks */
/* Responsive image handling */
.service-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 0.5rem;
}

/* Contact container layout */
.contact-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  /* allow wrap on small screens */
}

.contact-container .map-wrapper,
.contact-container .contact-details {
  flex: 1 1 300px;
  line-height: 3.6;
  font-size: 18px;
  /* grow/shrink, min width */
}

/* Adjust hero height on small screens */
@media (max-width: 600px) {
  .hero {
    height: 80vh;
  }



  /* Social icons */
  .social-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.35rem;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .social-icon svg {
    width: 0.8em;
    height: 0.8em;
    fill: currentColor;
  }

  .social-icon:hover {
    color: var(--accent);
    transform: translateY(-2px);
  }

  .social-icon svg {
    width: 50px;
    height: 50px;
    fill: currentColor;
  }
}

.social-icon .e-fab-facebook-square {
  width: 0.25em;
  height: 0.25em;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero .nav {
    flex-direction: column;
    gap: 1rem;
  }
}