/* =============================================
   VulcanCloud - Main Stylesheet
   Optimized for performance and accessibility
   ============================================= */

:root {
  --primary: #1a3a5c;
  --accent: #e85d04;
  --accent-light: #f48c06;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(26,58,92,0.08);
  --radius: 10px;
  --max-w: 1140px;
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

/* ---- Header / Nav ---- */
header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-logo span { color: var(--accent-light); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent-light); text-decoration: none; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-light) !important; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2540 100%);
  color: #fff;
  padding: 96px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 span { color: var(--accent-light); }

.hero p {
  font-size: 1.2rem;
  opacity: 0.88;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); color: #fff; text-decoration: none; transform: translateY(-1px); }

.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }

.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: #0f2540; color: #fff; text-decoration: none; transform: translateY(-1px); }

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item .icon { color: var(--accent); font-size: 1.2rem; }

/* ---- Section Headers ---- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--text-light); max-width: 620px; margin: 0 auto; }
.section-label { display: inline-block; color: var(--accent); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(232,93,4,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.service-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 0.97rem; }

/* ---- Stats ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item { padding: 24px; }
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { color: var(--text-light); font-size: 0.95rem; margin-top: 6px; }

/* ---- Blog Grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), #1a6b9a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-tag { font-size: 0.78rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.blog-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }
.blog-card p { color: var(--text-light); font-size: 0.93rem; flex: 1; }
.blog-card .read-more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 0.9rem; color: var(--accent); }

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-text { color: var(--text); font-size: 0.97rem; line-height: 1.7; font-style: italic; margin-bottom: 18px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar { width: 44px; height: 44px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.reviewer-name { font-weight: 600; font-size: 0.93rem; color: var(--primary); }
.reviewer-title { font-size: 0.82rem; color: var(--text-light); }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question:hover { background: var(--bg-alt); }
.faq-icon { font-size: 1.3rem; flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-light);
  font-size: 0.97rem;
}

.faq-item.open .faq-answer { display: block; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), #0f2540);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}

.cta-banner h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 16px; }
.cta-banner p { font-size: 1.1rem; opacity: 0.85; max-width: 560px; margin: 0 auto 36px; }

/* ---- Contact Form ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

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

.contact-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--primary); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---- Blog Page ---- */
.blog-header {
  background: var(--primary);
  color: #fff;
  padding: 64px 0 48px;
  text-align: center;
}

.blog-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.blog-header p { opacity: 0.85; font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ---- Article Page ---- */
.article-header {
  background: linear-gradient(135deg, var(--primary), #0f2540);
  color: #fff;
  padding: 64px 0;
}

.article-header .breadcrumb { font-size: 0.85rem; opacity: 0.7; margin-bottom: 16px; }
.article-header .breadcrumb a { color: rgba(255,255,255,0.8); }
.article-header h1 { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.25; max-width: 800px; }
.article-meta { margin-top: 20px; font-size: 0.9rem; opacity: 0.75; display: flex; gap: 20px; flex-wrap: wrap; }

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px;
}

.article-body h2 { font-size: 1.6rem; font-weight: 700; color: var(--primary); margin: 40px 0 16px; }
.article-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin: 28px 0 10px; }
.article-body p { color: var(--text); margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 8px; font-size: 1.02rem; color: var(--text); }
.article-body strong { color: var(--primary); }

.article-callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
}

.article-callout p { margin: 0; font-weight: 500; }

/* ---- Footer ---- */
footer {
  background: #0d1e30;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { font-size: 0.92rem; line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-brand .logo { color: #fff; font-size: 1.3rem; font-weight: 700; }
.footer-brand .logo span { color: var(--accent-light); }

.footer-col h4 { color: #fff; font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent-light); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ---- Page Breadcrumb ---- */
.breadcrumb-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.breadcrumb-nav { font-size: 0.88rem; color: var(--text-light); }
.breadcrumb-nav a { color: var(--text-light); }
.breadcrumb-nav span { color: var(--text); font-weight: 500; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* ---- Responsive ---- */
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: 0.2s; }

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); flex-direction: column; padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .hero { padding: 64px 0 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
