/* Construtecz Brand Identity - Styles */
/* Wine + Silver Color Palette */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* CSS Variables - Brand Colors (Wine + Silver) */
:root {
  /* Wine / Vinotinto */
  --wine-primary: #6E0D0A;
  --wine-deep: #5A1210;
  --wine-rich: #820A06;
  
  /* Neutrals (Silver / Gray) */
  --silver: #B7B6B6;
  --light-silver: #E2E2E3;
  --off-white: #EFEFF0;
  --steel-gray: #6C6A6A;
  --charcoal: #221F1F;
  --near-black: #0A0B0A;
  
  /* Utility */
  --white: #FFFFFF;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 11, 10, 0.1);
  --shadow-md: 0 4px 6px rgba(10, 11, 10, 0.1);
  --shadow-lg: 0 10px 20px rgba(10, 11, 10, 0.15);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.75rem;
  margin-bottom: var(--spacing-sm);
}

h2 {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--charcoal);
}

/* Navigation */
nav {
  background-color: var(--wine-primary);
  padding: var(--spacing-sm) var(--spacing-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

nav .container {
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  align-items: center;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
}

nav a:hover {
  color: var(--white);
  background-color: var(--wine-deep);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: auto;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav .logo img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

nav .logo span {
  display: inline;
}

/* Desktop logo text visibility */
@media (min-width: 769px) {
  nav .logo span {
    display: inline;
  }
}

@media (max-width: 768px) {
  nav .logo span {
    display: none;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Language Toggle */
#lang-toggle {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  min-width: 60px;
  justify-content: center;
}

#lang-toggle:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

#lang-toggle .flag {
  width: 20px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--wine-rich) 0%, var(--wine-deep) 100%);
  color: var(--white);
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(130, 10, 6, 0.85) 0%, rgba(90, 18, 16, 0.85) 100%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  font-size: 3rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

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

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

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

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--wine-primary);
  border-color: var(--white);
}

/* Button on light backgrounds - for better contrast */
.btn-secondary-light {
  background-color: transparent;
  color: var(--wine-primary);
  border: 2px solid var(--wine-primary);
}

.btn-secondary-light:hover {
  background-color: var(--wine-primary);
  color: var(--white);
  border-color: var(--wine-primary);
}

/* Credibility Strip */
.credibility-strip {
  background-color: var(--white);
  padding: var(--spacing-md);
  text-align: center;
  border-bottom: 1px solid var(--light-silver);
}

.credibility-strip p {
  color: var(--steel-gray);
  font-size: 0.95rem;
  margin: 0;
}

.credibility-strip strong {
  color: var(--charcoal);
  font-weight: 600;
}

/* Section Styles */
section {
  padding: var(--spacing-xl) var(--spacing-md);
}

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

section:nth-child(odd) {
  background-color: var(--off-white);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--wine-primary);
  border-radius: 2px;
}

.section-title h2 {
  margin-bottom: var(--spacing-sm);
}

.section-title p {
  color: var(--steel-gray);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.card {
  background-color: var(--light-silver);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--silver);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--wine-primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--wine-primary);
}

.card:hover::before {
  transform: scaleY(1);
}

.card h3 {
  color: var(--charcoal);
  margin-bottom: var(--spacing-sm);
}

.card p {
  color: var(--charcoal);
  line-height: 1.6;
}

.card-icon {
  width: 56px;
  height: 56px;
  background-color: var(--wine-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  color: var(--white);
  font-size: 1.75rem;
  box-shadow: var(--shadow-sm);
  padding: 8px;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.metric {
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--light-silver);
  border-radius: var(--radius-md);
  border: 1px solid var(--silver);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.metric:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--wine-primary);
}

.metric-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--wine-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.metric-label {
  color: var(--steel-gray);
  margin-top: var(--spacing-xs);
  font-size: 0.95rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  text-align: center;
}

/* Footer */
footer {
  background-color: var(--near-black);
  color: var(--white);
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
}

footer p {
  color: var(--silver);
  margin-bottom: var(--spacing-xs);
}

footer p:last-child {
  margin-bottom: 0;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  align-items: start;
}

/* List Styles */
.service-list {
  list-style: none;
  padding-left: 0;
}

.service-list li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--silver);
  color: var(--charcoal);
  line-height: 1.6;
  position: relative;
  padding-left: 1.5rem;
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M 6 12 L 10 16 L 18 8" stroke="%236E0D0A" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Contact Info */
.contact-info {
  background-color: var(--light-silver);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-md);
  border: 1px solid var(--silver);
  box-shadow: var(--shadow-sm);
}

.contact-info h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--charcoal);
}

.contact-info p {
  margin-bottom: var(--spacing-xs);
  color: var(--charcoal);
}

.contact-info a {
  color: var(--wine-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: var(--wine-deep);
  text-decoration: underline;
}

/* Timeline */
.timeline {
  position: relative;
  padding: var(--spacing-md) 0;
}

.timeline-item {
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  background-color: var(--light-silver);
  border-left: 4px solid var(--wine-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--silver);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-left-width: 6px;
}

.timeline-item h3 {
  margin-bottom: var(--spacing-xs);
  color: var(--charcoal);
}

.timeline-item .year {
  color: var(--wine-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-item p {
  color: var(--charcoal);
  line-height: 1.7;
}

/* Links */
a {
  color: var(--wine-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--wine-deep);
}

/* Section Dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--silver), transparent);
  margin: var(--spacing-xl) 0;
}

/* Refined Typography */
strong {
  font-weight: 600;
  color: var(--charcoal);
}

em {
  font-style: italic;
  color: var(--steel-gray);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  nav {
    padding: var(--spacing-sm) var(--spacing-xs);
  }
  
  nav .container {
    flex-wrap: nowrap;
    position: relative;
  }
  
  .menu-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--wine-primary);
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: var(--spacing-sm);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--wine-deep);
    margin-top: var(--spacing-xs);
    z-index: 1001;
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav ul li {
    width: 100%;
  }
  
  nav a {
    display: block;
    width: 100%;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
  }
  
  nav a:hover {
    background-color: var(--wine-deep);
    padding: var(--spacing-sm);
  }
  
  nav .logo {
    order: 1;
    margin-right: 0;
    flex: 1;
    min-width: 0;
  }
  
  nav .logo img {
    height: 32px;
  }
  
  nav .logo span {
    display: none;
  }
  
  #lang-toggle {
    width: 100%;
    justify-content: center;
    margin-top: var(--spacing-xs);
  }
  
  #lang-toggle .flag {
    width: 18px;
  }
  
  .hero {
    background-attachment: scroll;
  }
  
  section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .hero {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .two-column {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .metrics {
    grid-template-columns: 1fr;
  }
  
  .metric-number {
    font-size: 2.5rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .hero {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
    margin-bottom: var(--spacing-xs);
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  nav .logo {
    font-size: 1.2rem;
  }
  
  nav .logo img {
    height: 28px;
  }
  
  nav .logo span {
    display: none;
  }
}

/* Image responsiveness */
img {
  max-width: 100%;
  height: auto;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}
