/* World Cup 2026 Domain Portfolio - Main Stylesheet */
:root {
  --primary-blue: #0052B4;
  --secondary-green: #008D36;
  --accent-gold: #FFD700;
  --dark-blue: #003366;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Montserrat', 'Roboto', 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 5rem 0;
}

/* Header */
header {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

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

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--accent-gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-image {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Updated domain icon styling for consistent image display */
.domain-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

/* Added media queries for better responsive layout and consistent centering */
/* This ensures centering works perfectly on all devices */
@media (max-width: 768px) {
  .domain-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .domain-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Added styling for city icons to ensure they stay contained in cards */
.city-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    object-fit: contain; /* Ensures image stays within container */
}

/* Added placeholder styling for domains without images */
.city-icon-placeholder {
    width: 100%;
    max-width: 150px;
    height: 100px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    border-radius: 4px;
    color: var(--dark-gray);
    font-size: 0.9rem;
}



/* Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  margin: 0 auto;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--dark-blue);
}

.btn-primary:hover {
  background-color: var(--dark-blue);
  color: var(--accent-gold);
}

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

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

.btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Benefits Section */
.benefits {
  background-color: var(--light-gray);
  padding: 4rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.benefit-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Domain Grid */
/* Domain Grid - Updated for consistent card layout */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Domain card styling - consistent card dimensions, shadow, and hover effects */
/* Updated: Ensured perfect centering of all content within domain cards for ALL cards */
.domain-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    overflow: hidden; /* Fix for image overflow issue */
    flex-direction: column;
    text-align: center; /* Ensure all content is centered horizontally */
    align-items: center; /* Center align all flex children */
    justify-content: center; /* Center content vertically as well */
    padding: 1rem 0.5rem; /* Add consistent padding */
}

.domain-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Updated domain-icon styling for better image display in cards with adjusted spacing */
.domain-icon {
  width: auto;
  max-width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 10px 0;
}

/* Added styles for city and host city text to ensure they're on separate lines and centered */
.domain-city {
  width: 100%;
  text-align: center;
  margin-bottom: 0.2rem;
}

.domain-host {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

/* Domain content styling - perfectly centered text and improved layout */
/* Updated domain-content styling for perfect text centering on all devices and cards */
.domain-content {
  padding: 1.5rem 1rem;
  text-align: center; /* Center all text in domain cards */
  display: flex;
  flex-direction: column;
  align-items: center; /* Ensure perfect horizontal centering of all elements */
  width: 100%;
  margin: 0 auto; /* Center the content container itself */
}

/* Updated domain-name for perfect centering and layout adjustments */
.domain-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark-blue);
  text-align: center;
  width: 100%;
}

/* Domain price tag styling - updated for perfect centering */
.domain-price-tag {
    background-color: var(--accent-gold);
    color: white;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin: 0.5rem auto;
    display: inline-block;
    text-align: center;
}

/* Domain button styling with perfect centering */
.domain-btn {
    margin-top: 1rem;
    display: block;
    width: fit-content;
    margin: 1rem auto 0;
    position: relative;
    z-index: 10; /* Make button appear above the overlay */
}

/* Domain overlay styling - improved readability and mobile compatibility */
.domain-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 82, 180, 0.9);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
  z-index: 5; /* Lower than the button's z-index */
}

.domain-card:hover .domain-overlay {
  opacity: 1;
}

.domain-overlay-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.domain-overlay-text {
  text-align: center;
}

/* Search and Filter */
.search-filter {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.search-input {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-blue);
  border-radius: 50px;
  font-size: 1rem;
  min-width: 300px;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--light-gray);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.filter-btn:hover {
  background-color: var(--dark-blue);
  color: var(--white);
}

/* Market Section */
.market-section {
  background-color: var(--white);
  padding: 5rem 0;
}

.infographic {
  max-width: 100%;
  height: auto;
  margin: 3rem auto;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.market-card {
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.market-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Case Studies */
.case-studies {
  background-color: var(--light-gray);
  padding: 5rem 0;
}

.case-study {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.case-study h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Stats section styling */
/* Updated: Improved centering and spacing for stats section */
.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 3rem auto 2rem;
    max-width: 1200px;
    text-align: center;
}

.stat {
    flex: 1 1 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* Perfect horizontal centering */
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    width: 100%; /* Ensure full width for proper centering */
    text-align: center;
}

.stat-label {
    margin-top: 0.5rem;
    color: var(--dark-blue);
    width: 100%; /* Ensure full width for proper centering */
    text-align: center;
}

/* Contact Form */
.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

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

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

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-method {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-right: 1rem;
}

/* Footer */
footer {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 3rem 0;
}

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

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--accent-gold);
}

.footer-links h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Header logo styling */
/* Logo styling - ensures consistent display across all devices */
.site-logo {
  max-height: 48px;
  height: 48px;
  width: auto;
  padding-right: 16px;
  vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--dark-blue);
    padding: 1rem 0;
  }
  
  .nav-active li {
    margin: 0.5rem 0;
    text-align: center;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  h1, .hero-title {
    font-size: 2.5rem;
  }
  
  .domain-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 576px) {
  h1, .hero-title {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .search-input {
    min-width: 100%;
  }
  
  .domain-grid {
    grid-template-columns: 1fr;
  }

  /* Additional mobile fixes for domain cards */
  .domain-card {
    padding: 1rem;
    flex-direction: column;
  }

  /* Ensure city icons stay contained on small screens */
  .city-icon {
    max-width: 120px;
    margin-bottom: 0.75rem;
  }

  /* Ensure logo visibility on mobile */
  .site-logo {
    max-height: 42px;
    height: 42px;
  }

  /* Improve overlay readability on mobile */
  .domain-overlay-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .domain-overlay-text {
    font-size: 0.9rem;
  }
}
