@import 'header.css';

:root {
  /* Colors - Universal Warmth Palette */
  /* WCAG AAA Target: Contrast 7:1 for normal text, 4.5:1 for large text */
  --color-bg-body: #FAF9F6;
  /* Soft warm white */
  --color-bg-card: #FFFFFF;
  --color-text-main: #2D3436;
  /* Dark slate - High contrast */
  --color-text-muted: #636e72;

  --color-primary: #C0392B;
  /* Deep Warm Radish/Orange - Adjusted for better contrast on white */
  --color-primary-light: #FFE0B2;
  /* Soft Orange for backgrounds */
  --color-secondary: #218c74;
  /* Deep Green - Nature friendly */

  --color-accent: #e67e22;
  /* Pure Orange for accents/icons */

  --color-popi-orange: #f39c12;
  /* Warm vibrant orange for Popi */

  /* Typography */
  --font-family-base: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  /* Clean, readable */
  --font-size-base: 18px;
  /* Larger base size for accessibility */
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
  --spacing-xxl: 120px;

  /* Borders */
  --border-radius-card: 24px;
  /* Soft rounded */
  --border-radius-btn: 50px;

  /* Imported Fonts */
  --font-family-english: 'Cormorant Garamond', serif;
}

.font-english {
  font-family: var(--font-family-english);
  font-style: italic;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.floating-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  font-weight: bold;
}

.floating-cta-btn:hover {
  transform: scale(1.1);
}

.floating-cta-line {
  background-color: #06c755;
}

.floating-cta-tel {
  background-color: var(--color-primary);
}

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

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  /* Smooth scrolling */
  scroll-behavior: smooth;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text-main);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-size: 1.5rem;
  color: var(--color-secondary);
}

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

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xxl) 0;
}

/* Components: Card */
.card {
  background: var(--color-bg-card);
  border-radius: var(--border-radius-card);
  padding: var(--spacing-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* Premium soft shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Components: Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius-btn);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
}

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

.btn-primary:hover {
  background-color: #a93226;
  transform: scale(1.05);
}

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

/* Header */
header {
  padding: 10px 0;
  /* Reduced padding for sticky */
  background-color: rgba(255, 255, 255, 0.95);
  /* Sticky background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  /* Sticky shadow */
  position: fixed;
  /* Sticky positioning */
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text-main);
  text-decoration: none;
  display: flex;
  /* Fix for image alignment */
  align-items: center;
}

.logo img {
  height: 90px !important;
  /* Larger logo */
  width: auto;
  transition: height 0.3s ease;
}

/* Add padding to body for fixed header */
body {
  padding-top: 110px;
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 15px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--color-text-main);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  display: block;
  transition: color 0.2s;
}

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

.btn-contact-circle {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #C0392B;
  /* Deep Red/Orange */
  color: white !important;
  font-size: 0.8rem !important;
  font-weight: 700;
  padding: 0 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
}

.btn-contact-circle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(192, 57, 43, 0.3);
  background-color: #E74C3C;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  /* Full screen feel */
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #FFF8F0 0%, #E8F6F3 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-main);
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-secondary);
}

.service-card p {
  flex-grow: 1;
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: center;
  }

  .about-text {
    flex: 1;
  }

  .about-image {
    flex: 1;
    height: 400px;
    background-color: #eee;
    border-radius: var(--border-radius-card);
  }

  /* Placeholder */
}

/* Footer */
footer {
  background-color: var(--color-text-main);
  color: white;
  padding: var(--spacing-xl) 0;
  text-align: center;
}

footer p {
  color: #b2bec3;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero {
    text-align: center;
    justify-content: center;
  }

  nav ul {
    display: none;
  }

  /* Mobile menu simplified for MVP */
}

/* =========================================
   Mobile Responsiveness (Added)
   ========================================= */

@media (max-width: 900px) {

  /* Typography Adjustments */
  :root {
    --font-size-base: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;
    --spacing-xxl: 60px;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  /* Layout Adjustments */
  .container {
    width: 92%;
    padding: 0 16px;
  }

  section {
    padding: 50px 0;
  }

  /* Hero Section */
  .hero {
    min-height: auto;
    padding-top: 100px;
    /* Account for fixed header */
    padding-bottom: 60px;
    text-align: center;
  }

  .hero-content {
    width: 100%;
  }

  /* Fix background shape obstructing content on mobile */
  .hero>div[style*="position: absolute"] {
    display: none;
  }

  /* Stacking grids */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* About Section */
  .about-content {
    flex-direction: column;
  }

  .about-image {
    height: 250px;
    width: 100%;
  }

  /* Card Adjustments */
  .card {
    padding: 20px;
  }

  /* CTA Buttons in Hero */
  .hero .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .hero div[style*="display: flex"] {
    flex-direction: column;
    width: 100%;
  }

  /* Fix Header Padding for Body */
  body {
    padding-top: 70px;
    /* Reduced specific to mobile header height */
  }

  /* Stacking for Rates Page Grids */
  .mr-container>div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .mr-cta-btn {
    width: 100%;
    display: block;
    margin-bottom: 10px;
  }

  section[style*="display: flex"] {
    flex-direction: column;
  }
}

/* Adjustments for Table Handling */
@media (max-width: 600px) {

  .area-table,
  .mr-rates-table,
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .area-table th,
  .area-table td,
  .mr-rates-table th,
  .mr-rates-table td,
  table th,
  table td {
    white-space: normal;
    min-width: 120px;
  }

  /* Ensure Company Info table headers don't get too squeezed */
  th {
    white-space: nowrap;
    min-width: 100px;
  }
}