/* ========================================
   SIEZZON HAVEN - Global Styles
   ======================================== */

/* CSS Variables */
:root {
  /* Colors */
  --primary-color: #FF5722;
  --primary-dark: #E64A19;
  --secondary-color: #757575;
  --secondary-light: #BDBDBD;
  --background-white: #FFFFFF;
  --text-dark: #212121;
  --accent-light: #F5F5F5;
  --overlay-dark: rgba(0, 0, 0, 0.7);
  
  /* Typography */
  --font-heading: 'Poppins', 'Montserrat', sans-serif;
  --font-body: 'Open Sans', 'Roboto', sans-serif;
  
  /* Spacing */
  --section-padding: 80px;
  --section-padding-mobile: 40px;
  --card-padding: 24px;
  --element-margin: 20px;
  
  /* Border Radius */
  --radius-button: 6px;
  --radius-card: 8px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--background-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
}

p {
  margin-bottom: 1rem;
}

/* ========================================
   Container & Layout
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

section {
  padding: var(--section-padding) 0;
}

/* ========================================
   Top Bar
   ======================================== */

.top-bar {
  background-color: var(--text-dark);
  color: var(--background-white);
  padding: 8px 0;
  font-size: 14px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-left {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-icon {
  font-size: 16px;
}

.top-bar a {
  color: var(--background-white);
  text-decoration: none;
  transition: var(--transition-fast);
}

.top-bar a:hover {
  color: var(--primary-color);
}

.top-bar-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icon {
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.social-icon svg {
  fill: var(--background-white);
}

/* ========================================
   Navigation Bar
   ======================================== */

.navbar {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  background-color: var(--background-white);
  z-index: 1000;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.navbar-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: var(--transition-fast);
}

.navbar-logo:hover {
  color: var(--primary-dark);
}

.navbar-logo:hover img {
  transform: scale(1.05);
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar-menu a {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--primary-color);
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-normal);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.navbar-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: var(--transition-fast);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-button);
  font-weight: 600;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
  min-height: 44px;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--background-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--background-white);
  border: 2px solid var(--background-white);
}

.btn-outline:hover {
  background-color: var(--background-white);
  color: var(--primary-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--background-white);
}

.btn-secondary:hover {
  background-color: var(--text-dark);
}

/* ========================================
   Cards
   ======================================== */

.card {
  background-color: var(--background-white);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 20px;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.card-text {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* ========================================
   Grid Layouts
   ======================================== */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--background-white);
  overflow: hidden;
  margin-top: 110px;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.8), rgba(33, 33, 33, 0.7));
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  padding: 0 20px;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 56px;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-title-main {
  font-weight: 700;
  animation: fadeInDown 1s ease;
}

.hero-title-typed {
  font-size: 42px;
  font-weight: 600;
  color: var(--primary-color);
  min-height: 50px;
  border-right: 3px solid var(--primary-color);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 50% { border-color: var(--primary-color); }
  51%, 100% { border-color: transparent; }
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Statistics Section
   ======================================== */

.stats-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 60px 0;
  margin-top: -2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
}

.stat-item {
  color: var(--background-white);
  animation: fadeInUp 1s ease;
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.stat-number::after {
  content: '+';
  font-size: 32px;
  margin-left: 5px;
}

.stat-label {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========================================
   Fade In Animations
   ======================================== */

.animate-fade-in {
  animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 36px;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 18px;
  color: var(--secondary-color);
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   Feature Icons
   ======================================== */

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--background-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 1rem;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  background-color: var(--primary-color);
  color: var(--background-white);
  text-align: center;
  padding: 60px 20px;
}

.cta-section h2 {
  color: var(--background-white);
  margin-bottom: 1.5rem;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.cta-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background-color: var(--text-dark);
  color: var(--background-white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 18px;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.social-links a:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

.social-links a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition-normal);
  cursor: pointer;
  color: white;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
  background-color: #20BA5A;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--background-white);
}

.whatsapp-float::before {
  content: '💬';
  font-size: 32px;
}

/* ========================================
   Forms
   ======================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--accent-light);
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 16px;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
}

/* ========================================
   Modal
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: var(--background-white);
  border-radius: var(--radius-card);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--accent-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 1.5rem;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--accent-light);
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease;
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.bg-light {
  background-color: var(--accent-light);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* ========================================
   Responsive Design - Tablet
   ======================================== */

@media (max-width: 1023px) {
  :root {
    --section-padding: 60px;
  }
  
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   Responsive Design - Mobile
   ======================================== */

@media (max-width: 767px) {
  :root {
    --section-padding: 40px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 18px;
  }
  
  .top-bar {
    display: block;
    font-size: 14px;
    padding: 8px 0;
  }
  
  .top-bar-content {
    justify-content: center;
    text-align: center;
  }
  
  .top-bar-left {
    gap: 0;
  }
  
  .top-bar-item:first-child {
    display: none;
  }
  
  .top-bar-item:last-child {
    display: flex;
  }
  
  .top-bar-right {
    display: none;
  }
  
  .navbar {
    top: 40px;
  }
  
  .navbar .container {
    padding: 0.75rem 20px;
  }
  
  .hero {
    min-height: 500px;
    margin-top: 100px;
  }
  
  .hero-title {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .hero-title-main {
    font-size: 28px;
    font-weight: 700;
  }
  
  .hero-title-typed {
    font-size: 22px;
    min-height: 35px;
    font-weight: 600;
  }
  
  .hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    padding: 0 10px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .stat-icon {
    font-size: 36px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .stat-number::after {
    font-size: 24px;
  }
  
  .stat-label {
    font-size: 14px;
  }
  
  .navbar-menu {
    position: fixed;
    top: 100px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 100px);
    background-color: var(--background-white);
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
  }
  
  .navbar-menu.active {
    left: 0;
  }
  
  .navbar-logo img {
    height: 40px;
    max-width: 150px;
  }
  
  .navbar-toggle {
    display: flex;
  }
  
  .navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .navbar-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .card-title {
    font-size: 18px;
  }
  
  .card-text {
    font-size: 15px;
  }
  
  section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .card {
    margin-bottom: 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-features {
    flex-direction: column;
    align-items: center;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float::before {
    font-size: 28px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  
  .quote-layout,
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .card[style*="position: sticky"] {
    position: relative !important;
    top: 0 !important;
  }
}

/* ========================================
   Loading State
   ======================================== */

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--accent-light);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ========================================
   Improved Section Spacing
   ======================================== */

section + section {
  margin-top: 0;
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-light), transparent);
  margin: 2rem 0;
}

/* ========================================
   Enhanced Typography
   ======================================== */

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .navbar,
  .whatsapp-float,
  .btn {
    display: none;
  }
}
