/* ============================================
   THE COZY ATELIER - MAIN STYLESHEET
   ============================================ */

/* Root Variables */
:root {
  --primary-color: #8b7355;
  --secondary-color: #d4a574;
  --accent-color: #c9a876;
  --dark-bg: #2a2a2a;
  --light-bg: #f5f3f0;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --border-color: #e0d5cc;
  --success-color: #4caf50;
  --error-color: #ff6b6b;
  --transition: all 0.3s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Garamond', serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Trebuchet MS', 'Arial', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
}

h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

h4 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  font-size: 1.05rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

/* ============================================
   BUTTONS & FORMS
   ============================================ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Trebuchet MS', 'Arial', sans-serif;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 115, 85, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Form Elements */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-family: 'Trebuchet MS', 'Arial', sans-serif;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  padding: 12px 14px;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Georgia', 'Garamond', serif;
  transition: var(--transition);
  background-color: #fafafa;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-size: 1rem;
}

.error-message {
  color: var(--error-color);
  font-size: 0.9rem;
  margin-top: 5px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Trebuchet MS', 'Arial', sans-serif;
  letter-spacing: 1px;
}

nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  font-family: 'Trebuchet MS', 'Arial', sans-serif;
}

nav a:hover {
  color: var(--secondary-color);
}

.phone-header {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.05rem;
  font-family: 'Trebuchet MS', 'Arial', sans-serif;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.4) 0%, rgba(139, 115, 85, 0.3) 100%), url('../images/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.5) 0%, rgba(139, 115, 85, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  animation: slideUp 0.8s ease;
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  color: #ffffff;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  color: #f0f0f0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  font-family: 'Georgia', 'Garamond', serif;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  font-size: 1.1rem;
  padding: 16px 36px;
}

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background-color: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h3 {
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-list {
  list-style: none;
  margin: 2rem 0;
}

.about-list li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-light);
  font-size: 1.05rem;
}

.about-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.3rem;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  text-align: center;
  border-top: 4px solid var(--secondary-color);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */

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

.feature {
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.feature:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: #ffffff;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: 'Trebuchet MS', 'Arial', sans-serif;
}

.feature h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.feature p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-wrapper {
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper h3 {
  margin-bottom: 2rem;
}

#form-success {
  display: none;
  background-color: var(--success-color);
  color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
}

#form-success h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.contact-info {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 2.5rem;
  border-radius: 8px;
}

.contact-info h3 {
  color: #ffffff;
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  font-size: 1.5rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-item-content {
  flex: 1;
}

.contact-item-content strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: 'Trebuchet MS', 'Arial', sans-serif;
}

.contact-item-content a {
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
}

.contact-item-content a:hover {
  color: var(--accent-color);
}

.map-container {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--dark-bg);
  color: #ffffff;
  padding: 3rem 0 1rem;
}

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

.footer-section h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-family: 'Trebuchet MS', 'Arial', sans-serif;
}

.footer-section p,
.footer-section a {
  color: #cccccc;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #999999;
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .header-container {
    padding: 1rem 1.5rem;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #ffffff;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .phone-header {
    display: none;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

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

  .hero-buttons .btn {
    width: 100%;
  }

  section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .hero {
    height: 300px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  section {
    padding: 2rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 16px;
  }

  .about-list li {
    padding-left: 1.8rem;
    font-size: 0.95rem;
  }

  .feature-number {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

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

.fade-in-up {
  animation: fadeInUp 0.6s ease;
}

/* Smooth scroll behavior for links */
a[href^="#"] {
  scroll-behavior: smooth;
}
