/* Base Styles */
:root {
  /* Portugal-inspired Color Scheme */
  --primary: #D03C21; /* Portuguese Terracotta */
  --secondary: #24334A; /* Deep Blue */
  --accent: #FFD166; /* Golden Yellow */
  --light: #EEF2F7; /* Light Gray */
  --green: #B3DDD1; /* Soft Teal */
  --white: #FFFFFF;
  --black: #222222;
  --gray: #666666;
  --light-gray: #DDDDDD;
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-round: 50%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  color: var(--secondary);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: var(--spacing-sm);
  color: var(--secondary);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  height: auto;
}

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

/* Section */
.section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

.section-header h2:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

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

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

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

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

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

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

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

/* Forms */
input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: var(--spacing-sm);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.form-group {
  margin-bottom: var(--spacing-sm);
}

.form-row {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.form-row .form-group {
  flex: 1;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
}

.form-check input {
  width: auto;
  margin-right: var(--spacing-xs);
  margin-top: 0.25rem;
}

.form-result {
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  margin-top: var(--spacing-sm);
}

.form-result.success {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.form-result.error {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

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

.logo a {
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: var(--spacing-md);
}

.nav-list a {
  color: var(--secondary);
  font-weight: 500;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  background-color: var(--light);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

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

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  color: var(--gray);
  max-width: 90%;
}

/* About Section */
.about-content {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-image, .about-text {
  flex: 1;
}

.about-text h3 {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  color: var(--secondary);
}

.about-text p {
  margin-bottom: var(--spacing-md);
  color: var(--gray);
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.service-card {
  background-color: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.service-icon {
  margin: 0 auto var(--spacing-sm);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.service-card p {
  color: var(--gray);
}

/* Portfolio Section */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.filter-btn {
  background-color: transparent;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.filter-btn:hover {
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.portfolio-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--white);
}

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

.portfolio-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light);
}

.portfolio-item h3 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1.1rem;
}

.portfolio-item p {
  padding: 0 1rem 1rem;
  color: var(--gray);
  font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light);
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-content {
  background-color: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-md);
}

.quote-icon {
  margin-bottom: var(--spacing-sm);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--spacing-md);
  color: var(--gray);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-round);
  overflow: hidden;
}

.author-info h4 {
  margin-bottom: 0.25rem;
  color: var(--secondary);
}

.author-info p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.rating {
  display: flex;
  gap: 2px;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.testimonial-prev, .testimonial-next {
  background-color: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  transition: background-color 0.3s ease;
}

.testimonial-prev:hover, .testimonial-next:hover {
  background-color: rgba(36, 51, 74, 0.1);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-round);
  background-color: var(--light-gray);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--primary);
}

/* Newsletter Section */
.newsletter {
  background: linear-gradient(rgba(36, 51, 74, 0.9), rgba(36, 51, 74, 0.9)), url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="600" viewBox="0 0 800 600"><rect width="800" height="600" fill="%2324334A"/><path d="M0,100 Q200,150 400,100 T800,100 L800,600 L0,600 Z" fill="%23D03C21" opacity="0.1"/><path d="M0,200 Q200,250 400,200 T800,200 L800,600 L0,600 Z" fill="%23FFD166" opacity="0.1"/><path d="M0,300 Q200,350 400,300 T800,300 L800,600 L0,600 Z" fill="%23B3DDD1" opacity="0.1"/></svg>');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-text {
  margin-bottom: var(--spacing-md);
}

.newsletter-text h2 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.newsletter-text p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-md);
}

.newsletter-form {
  background-color: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.newsletter-form .form-check label {
  color: var(--secondary);
}

/* Contact Section */
.contact-content {
  display: flex;
  gap: var(--spacing-lg);
}

.contact-info, .contact-form-container {
  flex: 1;
}

.contact-item {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.contact-text h3 {
  margin-bottom: var(--spacing-xs);
  font-size: 1.1rem;
  color: var(--secondary);
}

.contact-text p {
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.social-links h3 {
  margin-bottom: var(--spacing-sm);
}

.social-icons {
  display: flex;
  gap: var(--spacing-sm);
}

.social-icons a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
}

.contact-form {
  background-color: var(--light);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
}

/* Map Section */
.map-section {
  height: 400px;
  overflow: hidden;
}

.map-container {
  height: 100%;
}

/* Footer */
.footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: var(--spacing-lg) 0 var(--spacing-sm);
}

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

.footer-column h3 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
  bottom: -8px;
  left: 0;
}

.footer-logo {
  margin-bottom: var(--spacing-sm);
}

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-md);
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: var(--spacing-md);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.cookie-content h3 {
  margin-bottom: var(--spacing-xs);
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.cookie-settings-panel {
  background-color: var(--light);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-md);
}

.cookie-settings-panel.hidden {
  display: none;
}

.cookie-option {
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--light-gray);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option input {
  margin-right: var(--spacing-xs);
}

.cookie-option label {
  display: inline-block;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.cookie-option p {
  padding-left: 24px;
  margin-bottom: 0;
  color: var(--gray);
  font-size: 0.9rem;
}

/* Blog styles will be added in the responsive.css file */
