/* IronSands Energy - Corporate Website Styles */

/* ========================================
   ROOT VARIABLES & RESET
   ======================================== */
:root {
  --primary-color: #1a3d5c;
  --secondary-color: #d4501e;
  --accent-color: #f39c12;
  --text-dark: #2c3e50;
  --text-light: #ecf0f1;
  --bg-light: #f8f9fa;
  --bg-dark: #1a3d5c;
  --border-color: #dfe6e9;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-heading: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  line-height: 1.7;
  color: var(--text-dark);
  background: #ffffff;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: #b8431a;
  border-color: #b8431a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--primary-color);
  color: white;
}

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

.btn-light:hover,
.btn-light:focus {
  background: var(--bg-light);
  border-color: var(--bg-light);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 8px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 61, 92, 0.92), rgba(212, 80, 30, 0.85));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.35rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.95);
  line-height: 1.6;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-header .subtitle {
  font-size: 1.15rem;
  color: #7f8c8d;
  line-height: 1.6;
}

/* ========================================
   FEATURE CARDS
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 35px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.feature-card p {
  color: #636e72;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ========================================
   INFO SECTIONS
   ======================================== */
.info-section {
  padding: 80px 0;
}

.info-section.bg-light {
  background: var(--bg-light);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.info-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.info-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.info-card ul {
  list-style: none;
  padding-left: 0;
}

.info-card ul li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: #636e72;
}

.info-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ========================================
   TWO-COLUMN LAYOUTS
   ======================================== */
.two-col-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 60px 0;
}

.two-col-content h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.two-col-content p {
  font-size: 1.05rem;
  color: #636e72;
  margin-bottom: 20px;
}

.two-col-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.two-col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.two-col-image:hover img {
  transform: scale(1.05);
}

/* ========================================
   FORMS
   ======================================== */
.form-section {
  background: var(--bg-light);
  padding: 80px 0;
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 50px 45px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: var(--transition);
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(212, 80, 30, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-required {
  color: var(--secondary-color);
  font-weight: bold;
}

.form-submit {
  text-align: center;
  margin-top: 35px;
}

.form-submit button {
  min-width: 200px;
}

/* ========================================
   CONTACT INFO
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.contact-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.5rem;
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.contact-card a {
  color: var(--secondary-color);
  font-weight: 500;
}

.contact-card a:hover,
.contact-card a:focus {
  text-decoration: underline;
}

/* Map Container */
.map-container {
  margin: 50px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 450px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   SERVICES GRID
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  margin-top: 50px;
}

.service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.service-image {
  height: 220px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 30px;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.service-content p {
  color: #636e72;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.service-features li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: #636e72;
  font-size: 0.95rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* ========================================
   CASE STUDIES / GALLERY
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26, 61, 92, 0.95), transparent);
  color: white;
  padding: 25px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-within .gallery-caption {
  transform: translateY(0);
}

.gallery-caption h3 {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 5px;
}

.gallery-caption p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 80px 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, rgba(26, 61, 92, 0.95), rgba(212, 80, 30, 0.9)),
              url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=1200') center/cover;
  color: white;
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  font-size: 2.75rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  color: rgba(255,255,255,0.95);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0 30px;
}

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

.footer-section h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.footer-section p,
.footer-section li {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
}

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

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

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--accent-color);
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
  background: var(--bg-light);
  padding: 20px 0;
}

.breadcrumbs ul {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.breadcrumbs li::after {
  content: '›';
  color: #95a5a6;
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--secondary-color);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus {
  text-decoration: underline;
}

/* ========================================
   ALERT / SUCCESS MESSAGE
   ======================================== */
.alert {
  padding: 20px 25px;
  border-radius: 8px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-icon {
  font-size: 1.75rem;
}

/* ========================================
   LOADING STATES
   ======================================== */
.loading {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .two-col-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .main-nav.active {
    max-height: 500px;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
  }
  
  .main-nav li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }
  
  .main-nav a {
    display: block;
    padding: 15px 20px;
  }
  
  .hero {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .features-grid,
  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: 35px 25px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .site-logo {
    font-size: 1.25rem;
  }
  
  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2.75rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 61, 92, 0.98);
  color: white;
  padding: 25px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.cookie-content {
  flex: 1;
  min-width: 300px;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
}

.cookie-content a {
  color: var(--accent-color);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-content a:hover,
.cookie-content a:focus {
  color: white;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.cookie-btn-accept:hover,
.cookie-btn-accept:focus {
  background: #b8431a;
  border-color: #b8431a;
  transform: translateY(-2px);
}

.cookie-btn-decline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.cookie-btn-decline:hover,
.cookie-btn-decline:focus {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

@media (max-width: 768px) {
  .cookie-banner .container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .cookie-content {
    min-width: 100%;
  }
  
  .cookie-actions {
    justify-content: center;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .site-header,
  .mobile-menu-toggle,
  .hero-actions,
  .cta-section,
  .site-footer,
  .cookie-banner,
  .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
}