/*
Theme Name: TM Beauty
Theme URI: https://tmbeauty.fi
Description: Professional beauty salon theme for TM Beauty & Nails with WordPress CMS
Version: 1.0.0
Author: TM Beauty
Author URI: https://tmbeauty.fi
Repository: https://github.com/vieteri/tmbeauty_nextjs/tree/wordpress
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tm-beauty
Domain Path: /languages
*/

:root {
  --color-amber-50: #fffbf0;
  --color-amber-100: #fef3c7;
  --color-amber-200: #fde68a;
  --color-amber-700: #b45309;
  --color-amber-800: #92400e;
  --color-stone-50: #fafaf9;
  --color-stone-100: #f5f5f4;
  --color-stone-200: #e7e5e4;
  --color-gray-700: #374151;
  --color-gray-900: #111827;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--color-gray-700);
  background-color: #ffffff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--color-gray-900);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 1.875rem;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 1px;
}

h2 {
  font-size: 2.25rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.75px;
}

h3 {
  font-size: 1.875rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.5px;
}

h4 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.5px;
}

h5 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.3px;
}

h6 {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.3px;
}

p {
  margin-bottom: 1rem;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.3px;
}

a {
  color: var(--color-amber-700);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-amber-800);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--color-amber-700);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* Container */
.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
  width: 100%;
}

.site-branding {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  flex-direction: row;
}

.site-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: block;
  overflow: hidden;
}

.site-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.footer-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3) !important;
}

.site-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-gray-900);
  margin-left: 0.75rem;
  transition: color 0.3s ease;
}

.site-title:hover {
  color: var(--color-amber-700);
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
}

.main-nav li {
  white-space: nowrap;
}

.main-nav a {
  color: var(--color-gray-700);
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--color-amber-700);
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  color: white;
  margin-top: 5rem;
  padding: 3rem 0;
}

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

.footer-widget h3 {
  color: #fef3c7;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-widget p,
.footer-widget a {
  color: white;
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer-widget a:hover {
  color: #fef3c7;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(254, 243, 199, 0.2);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Main Content */
main {
  min-height: calc(100vh - 8rem);
  padding: 4rem 0;
}

.page-content {
  background: white;
  min-height: 100vh;
  padding: 4rem 0;
}

main > section {
  padding: 4rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
  z-index: -1;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background-color: var(--color-amber-700);
  color: white;
  box-shadow: 0 4px 15px rgba(180, 83, 9, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-amber-800);
  color: white;
  box-shadow: 0 20px 35px rgba(146, 64, 14, 0.4);
  transform: translateY(-4px);
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(180, 83, 9, 0.8);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-amber-700);
  border: 2px solid var(--color-amber-700);
  box-shadow: 0 4px 15px rgba(180, 83, 9, 0.15);
}

.btn-secondary:hover {
  background-color: var(--color-amber-700);
  color: white;
  box-shadow: 0 20px 35px rgba(180, 83, 9, 0.4);
  transform: translateY(-4px) scale(1.02);
  border-color: var(--color-amber-800);
}

.btn-secondary:focus-visible {
  outline: 3px solid rgba(180, 83, 9, 0.8);
  outline-offset: 2px;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-amber-700);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.btn-link:hover {
  color: var(--color-amber-800);
}

/* Hero Section Enhancements */
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-amber-700);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Dividers */
.section-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-amber-700), transparent);
  margin: 2rem 0;
  opacity: 0.5;
}

/* Trust Badges Enhancement */
.trust-badge-item {
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0);
}

.trust-badge-item:hover {
  background: rgba(180, 83, 9, 0.08);
  transform: translateX(4px);
}

.trust-badge-icon {
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2) !important;
}

.trust-badge-item:hover .trust-badge-icon {
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.35) !important;
  transform: scale(1.08) !important;
}

/* Cards */
.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e7e5e4;
  overflow: hidden;
  transition: all 0.4s ease;
}

.card:hover {
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* Testimonial Cards */
.testimonial-card {
  background: var(--color-stone-100);
  border-radius: 0.75rem;
  border: 1px solid #e7e5e4;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #fef3c7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 0.875rem;
}

.social-link i {
  font-size: 1rem;
}

.social-link:hover {
  color: white;
}

.social-label {
  font-size: 0.75rem;
  display: inline;
}

/* Service Card Toggle */
.service-card-toggle {
  cursor: pointer;
  transition: all 0.4s ease;
}

.service-card-toggle:hover {
  box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px) scale(1.01);
}

.service-card-toggle:focus-visible {
  outline: 3px solid var(--color-amber-700);
  outline-offset: 2px;
}

.service-card-toggle.expanded {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Mobile Menu Enhancement */
.main-nav a:focus-visible {
  outline: 2px solid var(--color-amber-700);
  outline-offset: -2px;
}

/* CTA Section Buttons */
.btn-cta-white {
  background: transparent;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.4s ease;
  border: 2px solid white;
}

.btn-cta-white:hover {
  background: white;
  color: var(--color-amber-700);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-cta-white:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.btn-cta-outline {
  border: 2px solid white;
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-block;
  background: transparent;
  transition: all 0.4s ease;
}

.btn-cta-outline:hover {
  background: white;
  color: var(--color-amber-700);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-cta-outline:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  .menu-toggle {
    display: flex !important;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid rgba(186, 83, 9, 0.1);
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }

  .main-nav.mobile-menu-open {
    display: flex;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 1rem 0;
  }

  .main-nav li {
    white-space: normal;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .main-nav a {
    display: block;
    padding: 1rem;
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: 1rem;
  }

  .site-header-content {
    height: 3.5rem;
    position: relative;
  }

  .site-header {
    position: sticky;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .site-logo {
    width: 40px !important;
    height: 40px !important;
  }

  .site-logo img {
    width: 40px;
    height: 40px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Hero Section Mobile */
  main > section:first-of-type > div > div {
    grid-template-columns: 1fr !important;
    flex-direction: column-reverse !important;
  }

  main > section:first-of-type > div > div > div:last-child {
    order: -1;
    margin-bottom: 2rem;
    width: 100% !important;
    max-width: 100% !important;
  }

  main > section:first-of-type > div > div > div:last-child > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  main > section:first-of-type > div > div > div:last-child img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}
