/* WEBS-34: Mobile First Responsive Styles for Aethron Technologies website */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;

  /* Mobile-first: Base font size for mobile */
  font-size: 16px;
}

/* Container - Mobile First */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* Small devices (480px and up) */
@media (min-width: 30rem) {
  .container {
    padding: 0 24px;
  }
}

/* Medium devices (768px and up) */
@media (min-width: 48rem) {
  .container {
    max-width: 750px;
    padding: 0 32px;
  }
}

/* Large devices (992px and up) */
@media (min-width: 62rem) {
  .container {
    max-width: 970px;
  }
}

/* Extra large devices (1200px and up) */
@media (min-width: 75rem) {
  .container {
    max-width: 1170px;
  }
}

/* Typography - Mobile First */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Mobile typography */
h1 { font-size: 1.75rem; }  /* 28px */
h2 { font-size: 1.5rem; }   /* 24px */
h3 { font-size: 1.25rem; }  /* 20px */
h4 { font-size: 1.125rem; } /* 18px */

/* Tablet and up typography */
@media (min-width: 48rem) {
  h1 { font-size: 2.25rem; } /* 36px */
  h2 { font-size: 1.875rem; } /* 30px */
  h3 { font-size: 1.5rem; }   /* 24px */
  h4 { font-size: 1.25rem; }  /* 20px */
}

/* Desktop typography */
@media (min-width: 62rem) {
  h1 { font-size: 2.5rem; }   /* 40px */
  h2 { font-size: 2rem; }     /* 32px */
  h3 { font-size: 1.5rem; }   /* 24px */
  h4 { font-size: 1.25rem; }  /* 20px */
}

p {
  margin-bottom: 1rem;

  /* Mobile-first: Slightly larger text for better readability */
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 48rem) {
  p {
    font-size: 1.125rem; /* 18px on tablet+ */
    line-height: 1.7;
  }
}

/* Links */
a {
  color: #06c;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #049;
  text-decoration: underline;
}

/* Buttons - Mobile First with Touch-Friendly Design */
.btn {
  display: inline-block;

  /* Mobile: Larger padding for better touch targets */
  padding: 16px 24px;
  min-height: 44px; /* Minimum touch target size */
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;

  /* Mobile: Full width buttons by default */
  width: 100%;
  box-sizing: border-box;
}

/* Tablet and up: Inline buttons */
@media (min-width: 48rem) {
  .btn {
    width: auto;
    padding: 12px 24px;
    display: inline-block;
  }
}

.btn-primary {
  background-color: #f60; /* Orange background */
  color: white; /* White text */
}

.btn-primary:hover {
  background-color: #e55a00; /* Darker orange on hover */
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background-color: #f60; /* Orange background */
  color: white; /* White text */
  border: 2px solid #f60;
}

.btn-secondary:hover {
  background-color: #e55a00; /* Darker orange on hover */
  color: white;
  text-decoration: none;
}

.btn-large {
  /* Mobile: Even larger touch targets for important buttons */
  padding: 20px 32px;
  font-size: 1.125rem;
  min-height: 52px;
}

@media (min-width: 48rem) {
  .btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
  }
}

/* Hero section - Mobile First Design */
.hero {
  background: #06c; /* Blue background */
  color: white; /* White text */

  /* Mobile: Reduced padding for smaller screens */
  padding: 60px 0;
  text-align: center;
}

/* Tablet and up: More spacious hero */
@media (min-width: 48rem) {
  .hero {
    padding: 80px 0;
  }
}

/* Desktop: Full hero spacing */
@media (min-width: 62rem) {
  .hero {
    padding: 100px 0;
  }
}

.hero-content h1 {
  /* Mobile: Smaller hero title */
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: white; /* Ensure title is white */
}

/* Tablet: Medium hero title */
@media (min-width: 48rem) {
  .hero-content h1 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
  }
}

/* Desktop: Large hero title */
@media (min-width: 62rem) {
  .hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
  }
}

.hero-subtitle {
  /* Mobile: Smaller subtitle */
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #ccc; /* Light gray for subtitle */
}

@media (min-width: 48rem) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

@media (min-width: 62rem) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-description {
  /* Mobile: Readable description size */
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #ccc; /* Light gray for description text */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

@media (min-width: 48rem) {
  .hero-description {
    font-size: 1.125rem;
    margin-bottom: 2.25rem;
  }
}

@media (min-width: 62rem) {
  .hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
  }
}

.hero-actions {
  /* Mobile: Stack buttons vertically */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

/* Tablet and up: Horizontal layout */
@media (min-width: 48rem) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Hero buttons - Use outline style like "about us" section */
.hero .btn-primary,
.hero .btn-secondary {
  background: white; /* White background when not hovering */
  color: #f60; /* Orange text */
  border: 2px solid #f60; /* Orange border */
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.hero .btn-primary:hover,
.hero .btn-secondary:hover {
  background: #f60; /* Orange background on hover */
  color: white; /* White text on hover */
  text-decoration: none;
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 60px 0;
}

section:nth-child(even) {
  background-color: #f8f9fa;
}

/* Services overview section - Mobile First */
.services-overview {
  /* Mobile: Reduced padding */
  padding: 40px 0;
  background-color: #f8f9fa;
}

/* Tablet and up: More spacious */
@media (min-width: 48rem) {
  .services-overview {
    padding: 60px 0;
  }
}

/* Desktop: Full spacing */
@media (min-width: 62rem) {
  .services-overview {
    padding: 80px 0;
  }
}

.services-grid {
  display: grid;

  /* Mobile: Single column */
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

/* Small tablet: Try 2 columns if space allows */
@media (min-width: 30rem) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Tablet and up: Better grid */
@media (min-width: 48rem) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.25rem;
    margin-top: 2rem;
  }
}

/* Desktop: Full spacing */
@media (min-width: 62rem) {
  .services-grid {
    gap: 2.5rem;
  }
}

.service-card {
  background: white; /* White background */

  /* Mobile: Reduced padding */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: center;
}

/* Tablet and up: More padding */
@media (min-width: 48rem) {
  .service-card {
    padding: 2.25rem;
    border-radius: 16px;
  }
}

/* Desktop: Full padding */
@media (min-width: 62rem) {
  .service-card {
    padding: 2.5rem;
  }
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  height: 80px;
  width: 80px;
  background: #f60; /* Orange background for circular icon */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-card h3 {
  color: #06c; /* Blue title */
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.service-card p {
  color: #000; /* Black text */
  line-height: 1.7;
  font-size: 1rem;
}

/* About summary section - Black titles and text on gray background */
.about-summary {
  padding: 80px 0;
  background: #f5f5f5; /* Gray background */
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.summary-card {
  padding: 2.5rem;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  transition: all 0.3s ease;
  text-align: left;
  background: white; /* White card background on gray section */
}

.summary-card:hover {
  border-color: #06c; /* Blue border on hover */
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 102, 204, 0.1);
}

.summary-card h3 {
  color: #000; /* Black title */
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.summary-card p {
  color: #000; /* Black text */
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn-outline {
  background: transparent;
  color: #f60; /* Orange text for outline button */
  border: 2px solid #f60; /* Orange border */
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #f60; /* Orange background on hover */
  color: white; /* White text on hover */
  text-decoration: none;
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--aethron-gray-dark) 0%, var(--aethron-black) 100%);
  color: var(--aethron-white);
  padding: 60px 0 30px;
  position: relative;
}

.site-footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--aethron-blue) 0%, var(--aethron-orange) 100%);
}

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

/* Footer Brand Section */
.footer-brand {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo-image {
  height: 48px;
  width: auto;
}

.footer-brand-text h3 {
  color: var(--aethron-white);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.footer-tagline {
  color: var(--aethron-orange);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.5rem 0 0 0;
  line-height: 1.3;
}

.footer-description {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Footer Section Headings */
.footer-section h4 {
  color: var(--aethron-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--aethron-orange);
  display: inline-block;
}

/* Footer Links */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-links-list a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-links-list a:before {
  content: '→';
  color: var(--aethron-orange);
  margin-right: 0.5rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-links-list a:hover {
  color: var(--aethron-white);
  padding-left: 1rem;
}

.footer-links-list a:hover:before {
  opacity: 1;
  transform: translateX(0);
}

/* Footer Contact Info */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.95rem;
  white-space: nowrap;
}

.contact-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.footer-contact-item a:hover {
  color: var(--aethron-orange);
}

.footer-contact-item span:not(.contact-icon) {
  color: #ccc;
}

/* Footer Language Switcher */
.footer-language-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-lang-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.footer-lang-link:hover {
  color: var(--aethron-white);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--aethron-orange);
}

.footer-lang-link.active {
  color: var(--aethron-orange);
  background-color: var(--aethron-white);
  border-color: var(--aethron-white);
  font-weight: 600;
}

.lang-flag {
  font-size: 1.1rem;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom-left p {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-legal-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.footer-legal-links a:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--aethron-orange);
  transition: width 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--aethron-white);
}

.footer-legal-links a:hover:after {
  width: 100%;
}

/* Privacy Policy Page Styles */
.privacy-page {
  padding: 60px 0;
  background-color: var(--aethron-white);
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid var(--aethron-orange);
}

.page-header h1 {
  color: var(--aethron-blue);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-subtitle {
  color: var(--aethron-gray-medium);
  font-size: 1rem;
  margin: 0;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.privacy-section {
  margin-bottom: 3rem;
}

.privacy-section h2 {
  color: var(--aethron-blue);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--aethron-gray);
}

.privacy-section h3 {
  color: var(--aethron-gray-dark);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
}

.privacy-section p {
  color: var(--aethron-gray-dark);
  margin-bottom: 1rem;
}

.privacy-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.privacy-section li {
  color: var(--aethron-gray-dark);
  margin-bottom: 0.5rem;
}

.privacy-section li strong {
  color: var(--aethron-blue);
}

.privacy-section a {
  color: var(--aethron-orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

.privacy-section a:hover {
  color: var(--aethron-orange-dark);
  text-decoration: underline;
}

.contact-info {
  background-color: var(--aethron-gray);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--aethron-orange);
  margin: 1rem 0;
}

.contact-info p {
  margin: 0;
  color: var(--aethron-gray-dark);
}

.contact-info strong {
  color: var(--aethron-blue);
}

/* Responsive Design for Privacy Pages */
@media (max-width: 768px) {
  .privacy-page {
    padding: 40px 0;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .privacy-content {
    padding: 0 1rem;
  }
  
  .privacy-section h2 {
    font-size: 1.3rem;
  }
  
  .contact-info {
    padding: 1rem;
  }
}

/* Responsive Footer Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 2fr 1.2fr 1fr;
    gap: 2.5rem;
  }
  
  .footer-section:last-child {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 50px 0 25px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .footer-brand {
    max-width: none;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-section h4 {
    text-align: center;
  }
  
  .footer-language-switcher {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-legal-links {
    justify-content: center;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-content {
    gap: 2rem;
  }
  
  .footer-legal-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-language-switcher {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-card,
  .summary-card {
    padding: 2rem;
  }
  
  .services-overview,
  .about-summary {
    padding: 50px 0;
  }
}
