/* 
 * Qatar Roofings - Premium Styles
 * Palette: Deep Blue (#0F172A), Cool Grey (#F8FAFC - #334155), Metallic Bronze (#B45309)
 * Font: 'Outfit' (Headings), 'Inter' (Body)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800&display=swap');

:root {
  /* Colors */
  --primary-color: #0F172A; /* Deep Blue */
  --secondary-color: #B45309; /* Metallic Bronze / Accent */
  --secondary-hover: #92400E;
  --text-dark: #1E293B;
  --text-light: #64748B;
  --text-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-dark: #0F172A;
  --border-color: #E2E8F0;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-color);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-lg) 0;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-white { color: var(--text-white); }

.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border: 2px solid var(--text-white);
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: white;
  color: var(--primary-color);
}

/* Header & Nav */
header {
  background-color: transparent;
  padding: var(--spacing-sm) 0;
  position: absolute;
  width: 100%;
  z-index: 1000;
  top: 0;
  transition: background-color 0.3s ease;
}

header.scrolled {
  background-color: var(--primary-color);
  position: fixed;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  gap: var(--spacing-md);
}

nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover, nav a.active {
  color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  height: 90vh; /* Premium large hero */
  min-height: 600px;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-sm);
  color: white;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto var(--spacing-md);
  color: rgba(255,255,255,0.9);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

/* Service Cards */
.card {
  background: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary-color);
}

.card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.card ul {
  list-style: disc inside;
  color: var(--text-light);
  margin-top: var(--spacing-sm);
}

/* Form Styles */
form {
  display: grid;
  gap: var(--spacing-sm);
  max-width: 600px;
  margin: 0 auto;
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.1);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

footer h4 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

footer a {
  color: #94a3b8;
}

footer a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  
  .nav-container nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    padding: var(--spacing-xl) var(--spacing-md);
    transition: var(--transition-normal);
    z-index: 999;
  }
  
  .nav-container nav.active {
    right: 0;
  }
  
  .nav-container nav ul {
    flex-direction: column;
  }
  
  .mobile-toggle { display: block; z-index: 1000; }
  
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Modern Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}
