/* ========================================
   TESORO EXPORT SERVICES - GLOBAL STYLES
   ======================================== */

/* CSS Variables - GLOBAL DESIGN TOKENS
   ⚠️  IMPORTANT: These variables are used across ALL pages
   ⚠️  When updating colors, also update in page-specific <style> blocks
   ⚠️  These values define the brand identity - change carefully
   ======================================== */
:root {
  /* Brand Colors - Primary Identity */
  --navy: #152F47;           /* Primary brand color - headers, footer, text emphasis */
  --orange: #d97634;         /* Primary accent - CTAs, highlights, interactive elements */
  --orange-dark: #c26628;    /* Hover state for orange elements */
  --blue: #4194F2;           /* Links, focus states, LinkedIn color */
  
  /* Neutral Colors - Base Palette */
  --white: #FFFFFF;          /* Pure white - cards, text on dark backgrounds */
  --dark: #1a1a1a;           /* Primary body text color */
  --text-gray: #555;         /* Secondary text, captions, meta information */
  --light-bg: #f5f1ed;       /* Page background (warm beige/sand tone) */
  
  /* Functional Colors - Specific Use Cases */
  --whatsapp-green: #25D366; /* WhatsApp CTA buttons (official WhatsApp color) */
  --whatsapp-hover: #20BA5A; /* WhatsApp button hover state */
  --border-soft: #d2d6dc;    /* Form borders, dividers, subtle separators */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light-bg);
  animation: pageLoad 0.3s ease-out;
}

@keyframes pageLoad {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

/* ========================================
   TRANSITIONS & MICRO-INTERACTIONS
   ======================================== */

a {
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

button {
  transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.12s ease, color 0.2s ease;
}

input, textarea, select {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

img {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================================
   FOCUS STATES (Accessibility)
   ======================================== */

a:focus,
button:focus {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(217, 118, 52, 0.2);
}

.nav-menu a:focus {
  outline-color: var(--orange);
}

/* ========================================
   SKIP TO CONTENT (Accessibility)
   ======================================== */

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 0 0 4px 0;
  font-weight: 600;
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--orange);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.header-global {
  background-color: var(--navy);
  padding: 18px 50px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.logo-icon {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--orange);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp-green);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}

/* ========================================
   BUTTONS
   ======================================== */

/* Green WhatsApp CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp-green);
  color: white;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Orange Hero CTA Button */
.hero-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: white;
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(217, 118, 52, 0.4);
}

.hero-cta-button:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(217, 118, 52, 0.5);
}

/* ========================================
   FOOTER
   ======================================== */

.footer-global {
  background-color: var(--navy);
  color: white;
  padding: 60px 20px 30px;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-left h4,
.footer-middle h4,
.footer-right h4 {
  color: var(--orange);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-left p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-description {
  font-size: 0.95rem;
}

.footer-location {
  font-size: 0.95rem;
}

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

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

.footer-middle a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

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

.footer-middle a:hover {
  color: var(--orange);
}

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

.footer-signature {
  color: var(--orange);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin: 15px 0;
}

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

.social-icon:hover {
  transform: scale(1.1);
}

.footer-legal {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

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

.footer-legal a:hover {
  color: var(--orange);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: 0 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.5rem;
  font-weight: 300;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .header-global {
    padding: 15px 20px;
  }

  .nav-menu {
    gap: 15px;
    font-size: 0.9rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .logo-icon {
    height: 40px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .nav-menu {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

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

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