/* Reset and Base Styles */
:root {
  /* DARK THEME (Default) */
  --bg-color: #060907;
  --bg-light: #121814;
  --bg-input: #1a221c;
  --gold-primary: #C5A059;
  --gold-light: #E0C38C;
  --text-main: #F4F4F4;
  --text-muted: #A0A0A0;
  
  --header-bg: rgba(6, 9, 7, 0.95);
  --header-border: rgba(197, 160, 89, 0.15);
  --hero-overlay-start: rgba(6,9,7,0.4);
  --hero-overlay-end: rgba(6,9,7,0.9);
  --page-header-bg: linear-gradient(to bottom, #121814 0%, #060907 100%);
  --card-border: rgba(197, 160, 89, 0.1);
  --card-border-hover: rgba(197, 160, 89, 0.4);
  
  --hero-bg-image: url('./assets/hero.png');
  --logo-filter: invert(86%) sepia(18%) saturate(687%) hue-rotate(345deg) brightness(97%) contrast(89%);
  
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;
}



[data-theme="light"] {
  /* LIGHT THEME */
  --bg-color: #F8F9FA;
  --bg-light: #FFFFFF;
  --bg-input: #FFFFFF;
  --gold-primary: #9C7A31;
  --gold-light: #111612;
  --text-main: #222222;
  --text-muted: #666666;

  --header-bg: rgba(248, 249, 250, 0.95);
  --header-border: rgba(156, 122, 49, 0.2);
  
  --hero-bg-image: url('./assets/hero_light.png');
  --hero-overlay-start: rgba(248, 249, 250, 0.4);
  --hero-overlay-end: rgba(248, 249, 250, 0.95);
  --page-header-bg: linear-gradient(to bottom, #E9ECEF 0%, #F8F9FA 100%);
  
  --card-border: rgba(156, 122, 49, 0.2);
  --card-border-hover: rgba(156, 122, 49, 0.6);
  --logo-filter: invert(5%) sepia(11%) saturate(2283%) hue-rotate(101deg) brightness(92%) contrast(92%);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
}

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

/* Header & Navigation */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s ease;
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  padding: 15px 5%;
  border-bottom: 1px solid var(--header-border);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-svg {
  width: 200px;
  height: 40px;
  background-image: url('./assets/logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  filter: var(--logo-filter);
  transition: filter 0.4s ease;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

#navMenu {
  display: flex;
  gap: 30px;
  align-items: center;
}

#navMenu a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
  padding: 10px 0; /* Google mobile tap target rule */
}

#navMenu a:hover, #navMenu a.active {
  color: var(--gold-primary);
}

/* Buttons */


.theme-toggle {
  background: none;
  border: none;
  color: var(--gold-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s;
}
.theme-toggle:hover {
  background-color: rgba(197, 160, 89, 0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-primary);
  cursor: pointer;
  padding: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background-color: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--gold-primary);
  color: var(--bg-color);
}

.btn-solid {
  background-color: var(--gold-primary);
  color: var(--bg-color);
}

.btn-solid:hover {
  background-color: transparent;
  color: var(--gold-primary);
}

/* Global Page Header (for inner pages) */
.page-header {
  padding: 150px 5% 80px;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
  background: var(--page-header-bg);
}

.page-header h1 {
  font-size: 3.5rem;
  color: var(--gold-light);
  margin-bottom: 15px;
}

.page-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center 20%;
  z-index: -2;
  transition: background-image 0.4s ease;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
  z-index: -1;
}


.hero-content {
  max-width: 800px;
  padding: 0 20px;
  animation: fadeUp 1.5s forwards;
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 40px;
  font-weight: 300;
}

/* Base Sections */
section {
  padding: 80px 5%;
}

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

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

/* Procedures Grid */
.procedures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.procedure-card {
  background-color: var(--bg-light);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}

.procedure-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-hover);
}

.procedure-img-wrapper {
  overflow: hidden;
}

.procedure-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-bottom: 1px solid var(--card-border);
  transition: transform 0.6s ease;
}

.procedure-card:hover .procedure-img {
  transform: scale(1.05);
}

.procedure-content {
  padding: 30px;
}

.procedure-icon {
  color: var(--gold-primary);
  margin-bottom: 20px;
}

.procedure-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--gold-light);
}

.procedure-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.procedure-link {
  color: var(--gold-primary);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.procedure-link:hover { gap: 12px; }

/* Excellence (Rolex Vibe) */
.excellence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.excellence-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border: 1px solid var(--card-border);
}

.excellence-content h2 {
  font-size: 2.5rem;
  color: var(--gold-light);
  margin-bottom: 30px;
  line-height: 1.2;
}

.excellence-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.excellence-content .highlight {
  color: var(--gold-primary);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  display: block;
  margin-top: 30px;
}

/* Contact Form */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1.8rem;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  color: var(--text-muted);
}

.contact-item i {
  color: var(--gold-primary);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-light); /* Changed for contrast */
  font-family: var(--font-serif);
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 15px;
  background-color: var(--bg-input);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-family: var(--font-sans);
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
}

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

/* Footer */
footer {
  background-color: var(--bg-light);
  border-top: 1px solid var(--card-border);
  padding: 80px 5% 30px;
  margin-top: 50px;
  transition: background-color 0.4s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.footer-brand .logo-svg {
  margin: 0;
}

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-serif);
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--gold-primary);
}

.contact-item-mini {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-item-mini i {
  color: var(--gold-primary);
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-social a:hover { color: var(--gold-primary); }

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 30px;
  border-top: 1px solid var(--card-border);
}



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

/* Responsividade Google (Mobile First/Media Queries) */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  .excellence {
    grid-template-columns: 1fr;
  }
  .excellence-img {
    height: 400px;
    order: -1;
  }
}

@media (max-width: 768px) {
  header {
    justify-content: center;
  }
  
  .menu-toggle {
    display: block;
    position: absolute;
    left: 5%;
  }
  
  .logo {
    margin: 0 auto;
  }
  
  .logo-svg {
    background-position: center;
  }
  
  .nav-actions {
    position: absolute;
    right: 5%;
  }

  #navMenu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 30px 5%;
    gap: 20px;
    border-bottom: 1px solid var(--header-border);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  
  #navMenu.active {
    transform: translateY(0);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand .logo-svg {
    margin: 0 auto;
    background-position: center !important;
  }
  .footer-social {
    justify-content: center !important;
  }
  .footer-nav {
    align-items: center;
  }
  .contact-item-mini {
    justify-content: center;
    text-align: center;
  }
  

}

/* Newsletter Styles */
.newsletter-form {
  display: flex;
  margin-top: 15px;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  color: var(--text-main);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.newsletter-form button {
  background-color: var(--gold-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: var(--gold-light);
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .page-header h1 { font-size: 2.2rem; }
  .section-header h2 { font-size: 2rem; }
  
  .procedures-grid { gap: 15px; }
  .procedure-content { padding: 15px; }
  .procedure-img { height: 160px; }
  .procedure-content h3 { font-size: 1.1rem; }

  
  /* Tap targets compliance */
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}
