/* 
   Pinturas Donaire - Design System
   Architecture: Logic -> Utilities -> Components -> Sections
*/

:root {
  /* Colors */
  --primary: #1e293b; /* Slate 900 */
  --primary-light: #334155;
  --secondary: #f59e0b; /* Amber 500 */
  --secondary-hover: #ea580c; /* Orange 600 */
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent-soft: #e2e8f0;
  
  /* Layout */
  --header-height: 80px;
  --section-padding: 100px 5%;
  --border-radius: 12px;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

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

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Sections */

/* Header */
header {
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--accent-soft);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
  gap: 10px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--secondary);
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 12px;
  border: 2px solid var(--secondary);
}

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  font-weight: 500;
  color: var(--primary-light);
}

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

/* Hero */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.7)), url('./assets/hero.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 5%;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Services */
.services {
  padding: var(--section-padding);
  background: var(--bg-light);
}

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

.service-card {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 2.5rem;
  background: var(--accent-soft);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
  color: var(--secondary);
}

.service-card h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Portfolio */
.portfolio {
  padding: var(--section-padding);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 300px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.fb-banner {
  background: var(--primary);
  color: white;
  padding: 60px 40px;
  text-align: center;
  border-radius: var(--border-radius);
  margin-top: 60px;
}

/* About */
.about {
  padding: var(--section-padding);
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Contact */
.contact {
  padding: var(--section-padding);
  background: var(--bg-light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

form {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--accent-soft);
  border-radius: 8px;
  font-family: inherit;
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 80px 5% 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 968px) {
  :root {
    --header-height: 70px;
    --section-padding: 60px 5%;
  }

  .hero h1 { font-size: 2.2rem; }
  .about-content, .contact-container { grid-template-columns: 1fr; }
  nav ul { display: none; }

  .logo { font-size: 1.1rem; }
  .logo-img { width: 35px; height: 35px; margin-right: 8px; }

  .btn { padding: 10px 18px; font-size: 0.9rem; }
  
  .section-title h2 { font-size: 2rem; }

  footer { text-align: center; }
  .footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .logo { font-size: 0.9rem; }
}
