/* Estudo de foto K2 — shared styles */

:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f0ebe3;
  --color-surface: #ffffff;
  --color-text: #2d2a26;
  --color-text-muted: #6b6560;
  --color-accent: #c4795c;
  --color-accent-dark: #a85f44;
  --color-accent-light: #e8c4b4;
  --color-sage: #7a8b6f;
  --color-sage-light: #d4ddd0;
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(45, 42, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 42, 38, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--color-accent-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin-top: 0; }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 42, 38, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

#site-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

#site-logo span {
  color: var(--color-accent);
}

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

#main-nav a:hover,
#main-nav a[aria-current="page"] {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

#nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

#nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

#nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-sage-light);
}

.btn-secondary:hover {
  border-color: var(--color-sage);
  color: var(--color-sage);
}

/* Hero */
#hero {
  position: relative;
  min-height: clamp(480px, 85vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45, 42, 38, 0.55) 0%,
    rgba(45, 42, 38, 0.25) 50%,
    rgba(196, 121, 92, 0.2) 100%
  );
}

#hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  color: #fff;
  max-width: 640px;
}

#hero-content h1 {
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

#hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

#hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

#featured-gallery {
  background: var(--color-surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Services cards */
#services-preview {
  background: var(--color-bg-alt);
}

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

.service-card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

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

/* About teaser */
#about-teaser .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

#about-teaser-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

#about-teaser-text p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* CTA banner */
#cta-banner {
  background: linear-gradient(135deg, var(--color-sage) 0%, #5f6f56 100%);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

#cta-banner h2 {
  margin-bottom: 1rem;
}

#cta-banner p {
  max-width: 520px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

#cta-banner .btn-primary {
  background: #fff;
  color: var(--color-sage);
}

#cta-banner .btn-primary:hover {
  background: var(--color-bg);
}

/* Page hero (inner pages) */
#page-hero {
  background: var(--color-bg-alt);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  text-align: center;
}

#page-hero p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

/* Gallery page — masonry feel */
#gallery-grid .gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

#gallery-grid .gallery-item:nth-child(3n+2) {
  aspect-ratio: 1 / 1;
}

/* About page */
#about-story .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

#about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

#about-values {
  background: var(--color-surface);
}

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

.value-item h3 {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

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

/* Services page */
#services-list .service-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(45, 42, 38, 0.08);
}

#services-list .service-detail:last-child {
  border-bottom: none;
}

.service-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent-light);
  line-height: 1;
}

#pricing-note {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-top: 2rem;
}

#pricing-note p {
  color: var(--color-text-muted);
  margin: 0;
}

/* Contact page */
#contact-section .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

#contact-info {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: 10px;
  font-size: 1.1rem;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.15rem;
}

.contact-item span,
.contact-item a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

#contact-form {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(45, 42, 38, 0.15);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

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

/* Footer */
#site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

#footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

#footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
}

#footer-nav h4,
#footer-social h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

#footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
}

#footer-nav a:hover {
  color: var(--color-accent-light);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background var(--transition);
}

.social-links a:hover {
  background: var(--color-accent);
  color: #fff;
}

#footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(45, 42, 38, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

#lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

#lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
}

#lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  #nav-toggle {
    display: flex;
  }

  #main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid rgba(45, 42, 38, 0.08);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }

  #main-nav.is-open {
    max-height: 320px;
  }

  #main-nav ul {
    flex-direction: column;
    padding: 1rem;
    align-items: stretch;
  }

  #main-nav a {
    padding: 0.75rem 1rem;
  }

  #about-teaser .about-grid,
  #about-story .about-grid,
  #contact-section .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  #services-list .service-detail {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
