/*
Theme Name: Atelier Studio
Theme URI: https://example.com/atelier-studio
Author: Your Name
Author URI: https://example.com
Description: A cinematic, premium one-page theme for creative agencies. Features modern typography, playful colors, and smooth animations. Elementor compatible.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atelier-studio
Tags: one-column, custom-colors, custom-menu, featured-images, theme-options, translation-ready, blog, portfolio
*/

/* ===================================
   CSS Variables / Design Tokens
   =================================== */
:root {
  --background: hsl(0, 0%, 99%);
  --foreground: hsl(0, 0%, 10%);
  --card: hsl(0, 0%, 97%);
  --card-foreground: hsl(0, 0%, 10%);
  --primary: hsl(12, 76%, 61%);
  --primary-foreground: hsl(0, 0%, 99%);
  --secondary: hsl(0, 0%, 94%);
  --secondary-foreground: hsl(0, 0%, 10%);
  --muted: hsl(0, 0%, 94%);
  --muted-foreground: hsl(0, 0%, 45%);
  --accent: hsl(175, 60%, 45%);
  --accent-foreground: hsl(0, 0%, 99%);
  --border: hsl(0, 0%, 90%);
  --ring: hsl(12, 76%, 61%);
  --radius: 0.5rem;
  
  /* Custom tokens */
  --hero-gradient: linear-gradient(135deg, hsl(0, 0%, 99%) 0%, hsl(0, 0%, 96%) 50%, hsl(12, 30%, 97%) 100%);
  --glass-bg: hsla(0, 0%, 100%, 0.8);
  --glass-border: hsla(0, 0%, 0%, 0.08);
  --glow-primary: 0 8px 40px hsla(12, 76%, 61%, 0.15);
  --glow-accent: 0 8px 30px hsla(175, 60%, 45%, 0.12);
}

/* ===================================
   Reset & Base Styles
   =================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

ul, ol {
  list-style: none;
}

/* ===================================
   Typography
   =================================== */
.font-display {
  font-family: 'Syne', sans-serif;
}

.font-body {
  font-family: 'Inter', sans-serif;
}

.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--accent), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================
   Layout & Container
   =================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 4rem;
  }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowPulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.animate-fade-up {
  animation: fadeUp 1s ease-out forwards;
}

.animate-fade-up-delay {
  animation: fadeUp 1s ease-out 0.2s forwards;
  opacity: 0;
}

.animate-fade-up-delay-2 {
  animation: fadeUp 1s ease-out 0.4s forwards;
  opacity: 0;
}

.animate-slow-pulse {
  animation: slowPulse 4s ease-in-out infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* ===================================
   Components - Glass Panel
   =================================== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ===================================
   Components - Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: hsl(12, 76%, 55%);
  box-shadow: var(--glow-primary);
}

.btn-hero {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  color: var(--foreground);
  padding: 1rem 2rem;
}

.btn-hero:hover {
  background: hsla(0, 0%, 100%, 0.95);
  box-shadow: var(--glow-primary);
  border-color: var(--primary);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-accent:hover {
  background-color: hsl(175, 60%, 40%);
  box-shadow: var(--glow-accent);
}

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

.btn-outline:hover {
  background: var(--secondary);
}

/* ===================================
   Header / Navbar
   =================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--primary);
  border-radius: 50%;
}

.main-nav {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-gradient);
  overflow: hidden;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-orb-1 {
  top: 20%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: hsla(12, 76%, 61%, 0.15);
}

.hero-orb-2 {
  bottom: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: hsla(175, 60%, 45%, 0.12);
}

.hero-orb-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: hsla(12, 76%, 61%, 0.08);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(hsla(0, 0%, 0%, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, hsla(0, 0%, 0%, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding-top: 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 9999px;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--accent);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===================================
   Section Styles
   =================================== */
.section {
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0;
  }
}

.section-header {
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
}

/* ===================================
   Work/Portfolio Section
   =================================== */
.work-section {
  background-color: var(--background);
}

.work-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .work-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.work-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.work-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.5s ease;
}

.work-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.work-image-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.work-item:hover .work-image {
  transform: scale(1.05);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(0, 0%, 0%, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay {
  opacity: 1;
}

.work-content {
  padding: 1.5rem;
}

.work-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.work-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.work-year {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.work-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.work-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ===================================
   Services Section
   =================================== */
.services-section {
  background-color: var(--secondary);
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-item {
  padding: 2rem;
  background: var(--background);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.service-item:hover {
  box-shadow: var(--glow-primary);
  border-color: var(--primary);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
  stroke-width: 1.5;
}

.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.service-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ===================================
   About Section
   =================================== */
.about-section {
  background-color: var(--background);
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-content {
  max-width: 600px;
}

.about-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ===================================
   Reviews/Testimonials Section
   =================================== */
.reviews-section {
  background-color: var(--secondary);
}

.reviews-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-item {
  padding: 2rem;
  background: var(--background);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.review-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.review-quote-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.review-star {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  fill: var(--primary);
}

.review-content {
  font-size: 1rem;
  color: var(--foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.review-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.review-author-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.review-author-info p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
  background-color: var(--background);
}

.contact-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border-radius: var(--radius);
  color: var(--primary);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-item-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.contact-item-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-form {
  padding: 2.5rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(12, 76%, 61%, 0.1);
}

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

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ===================================
   Elementor Compatibility
   =================================== */
.elementor-section {
  padding: 0;
}

.elementor-widget-container {
  width: 100%;
}

/* Ensure Elementor doesn't override our typography */
.elementor-widget-heading .elementor-heading-title {
  font-family: 'Syne', sans-serif;
}

.elementor-widget-text-editor {
  font-family: 'Inter', sans-serif;
}

/* ===================================
   Utility Classes
   =================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s ease;
}
