/* GULFPRO GHANA — Minimalistic Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

html { scroll-behavior: smooth; }

:root {
  --navy: #1E3525;
  --navy-light: #2A4733;
  --amber: #C8982D;
  --amber-hover: #B5871F;
  --amber-light: #E8C65A;
}

/* ---- Hero ---- */
.hero {
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11,26,46,0.88) 0%, rgba(19,43,74,0.65) 100%);
  z-index: 1;
}
.hero .hero-content { position: relative; z-index: 2; }

/* ---- Stat counter ---- */
.stat-bar {
  background: var(--navy);
  margin-top: -48px;
  position: relative;
  z-index: 10;
}

/* ---- Section ---- */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

/* ---- Service card ---- */
.service-card {
  border: 1px solid #e5e7eb;
  transition: all 0.25s ease;
  overflow: hidden;
  position: relative;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.service-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(11,26,46,0.06);
  transform: translateY(-2px);
}
.service-card:hover::after { transform: scaleX(1); }

/* ---- Project card ---- */
.project-card { overflow: hidden; }
.project-card img {
  transition: transform 0.4s ease;
}
.project-card:hover img {
  transform: scale(1.03);
}
.project-overlay {
  background: linear-gradient(0deg, rgba(11,26,46,0.8) 0%, transparent 55%);
}

/* ---- CTA banner ---- */
.cta-banner {
  background-size: cover;
  background-position: center;
  position: relative;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,26,46,0.85) 0%, rgba(30,61,92,0.75) 100%);
}

/* ---- Breadcrumb banner ---- */
.page-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 150px 0 64px;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11,26,46,0.88) 0%, rgba(19,43,74,0.7) 100%);
}

/* ---- Amber accent ---- */
.text-amber { color: var(--amber); }
.bg-amber { background-color: var(--amber); }
.border-amber { border-color: var(--amber); }
.hover\:bg-amber-hover:hover { background-color: var(--amber-hover); }

/* ---- Button styles ---- */
.btn-amber {
  background: var(--amber);
  color: var(--navy);
  font-weight: 600;
  padding: 12px 28px;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-amber:hover {
  background: var(--amber-hover);
  color: #fff;
  box-shadow: 0 2px 8px rgba(200,152,45,0.2);
}
.btn-outline {
  border: 1.5px solid #fff;
  color: #fff;
  font-weight: 600;
  padding: 11px 28px;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover {
  background: #fff;
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-navy:hover {
  background: var(--navy-light);
  box-shadow: 0 2px 8px rgba(11,26,46,0.15);
}

/* ---- Divider ---- */
.amber-line {
  width: 40px;
  height: 2px;
  background: var(--amber);
}

/* ---- Footer ---- */
footer a { transition: color 0.2s ease; }
footer a:hover { color: var(--amber) !important; }

/* ---- Scroll to top ---- */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  background: var(--nuanhyi-green);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:not(.visible) { pointer-events: none; }
.scroll-top:hover { background: var(--navy); color: #fff; }

/* ---- Page load ---- */
body { opacity: 1; }

/* ---- Scroll reveal ---- */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Image loading ---- */
img {
  background: #f0f1f4;
  color: transparent;
}

/* ---- Focus states (accessibility) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---- Selection ---- */
::selection {
  background: var(--amber);
  color: var(--navy);
}

/* ---- Navbar glass on scroll ---- */
nav.scrolled {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- Form inputs ---- */
input, textarea, select {
  font-family: 'Inter', sans-serif;
}
input:focus, textarea:focus {
  border-color: var(--amber) !important;
  box-shadow: 0 0 0 2px rgba(200,152,45,0.08);
}

/* ---- Subtle text link underline ---- */
.prose a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover {
  text-decoration-thickness: 2px;
}

/* ---- Horizontal rule ---- */
hr {
  border: none;
  height: 1px;
  background: #e2e8f0;
}

/* ---- Background utilities ---- */
.hero-bg { background-image: url('../img/banner/banner.png'); }
.page-banner-bg { background-image: url('../img/banner/bradcam2.png'); }
.page-banner-bg-alt { background-image: url('../img/banner/bradcam3.png'); }
.cta-bg { background-image: url('../img/banner/contact.png'); }

/* ---- Utility classes ---- */
.border-0 { border: 0 !important; }

/* ---- Responsive ---- */
/* Small mobile devices */
@media (max-width: 480px) {
  /* Top bar - minimal */
  .top-bar { font-size: 0.6875rem !important; }
  .top-bar .max-w-7xl { padding: 0.375rem 0.75rem !important; }
  .top-bar i { font-size: 0.625rem !important; }
  
  /* Navbar - ultra minimal */
  nav { height: auto !important; box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important; }
  nav .max-w-7xl { height: 50px !important; padding: 0 0.75rem !important; }
  nav img { height: 28px !important; }
  nav button { font-size: 1.125rem !important; padding: 0.5rem !important; }
  
  /* Mobile menu - ultra compact */
  #mobile-menu { padding-top: 0 !important; }
  #mobile-menu .px-6 { padding: 0.75rem 1rem !important; }
  #mobile-menu .space-y-3 { gap: 0 !important; }
  #mobile-menu .space-y-3 > * { margin-top: 0 !important; }
  #mobile-menu a { padding: 0.625rem 0 !important; font-size: 0.8125rem !important; display: block !important; }
  #mobile-menu .btn-amber { margin-top: 0.5rem !important; padding: 0.5rem 1.25rem !important; font-size: 0.75rem !important; }
  
  .hero { min-height: 60vh; padding: 24px 0; }
  .hero h1 { font-size: 1.75rem; line-height: 1.15; margin-bottom: 1rem !important; }
  .hero .amber-line { width: 32px !important; height: 2px !important; margin-bottom: 1rem !important; }
  .hero p { font-size: 0.9375rem !important; margin-bottom: 1.5rem !important; }
  .hero .flex { gap: 0.75rem !important; }
  .stat-bar { margin-top: 0; border-radius: 0; }
  .section { padding: 48px 0; }
  .section-sm { padding: 36px 0; }
  .page-banner { padding: 100px 0 36px; }
  
  /* Fix button overlap */
  .whatsapp-btn { 
    bottom: 16px; 
    left: 16px; 
    width: 44px; 
    height: 44px;
    font-size: 22px;
  }
  .scroll-top { 
    bottom: 80px; 
    right: 16px; 
    width: 36px; 
    height: 36px;
    font-size: 14px;
  }
  
  /* Better mobile spacing */
  .service-card, .testimonial-card { padding: 20px !important; }
  .btn-amber, .btn-navy { padding: 10px 24px; font-size: 12px; }
  
  /* Footer - ultra compact */
  footer .max-w-7xl { padding-top: 40px !important; padding-bottom: 24px !important; padding-left: 1rem !important; padding-right: 1rem !important; }
  footer img { height: 32px !important; margin-bottom: 16px !important; }
  footer h4 { font-size: 0.75rem !important; margin-bottom: 12px !important; }
  footer .w-8 { margin-bottom: 12px !important; }
  footer p, footer li, footer a { font-size: 0.75rem !important; }
  footer .grid { gap: 32px !important; margin-bottom: 32px !important; }
  footer .space-y-3 > * + * { margin-top: 6px !important; }
  footer .space-y-4 > * + * { margin-top: 8px !important; }
  footer .border-t { padding-top: 20px !important; }
  footer .w-9 { width: 32px !important; height: 32px !important; font-size: 0.75rem !important; }
  footer .flex.gap-3 { gap: 8px !important; margin-top: 16px !important; }
}

/* Tablet devices */
@media (min-width: 481px) and (max-width: 768px) {
  /* Navbar - minimal height */
  nav .max-w-7xl { height: 60px !important; padding: 0 1rem !important; }
  nav img { height: 36px !important; }
  
  .hero { min-height: 70vh; }
  .section { padding: 60px 0; }
  .page-banner { padding: 130px 0 56px; }
  
  .whatsapp-btn { bottom: 25px; left: 25px; }
  .scroll-top { bottom: 100px; right: 25px; }
}

/* Desktop */
@media (max-width: 768px) {
  /* General mobile navbar */
  nav .max-w-7xl { height: 56px !important; padding: 0 0.875rem !important; }
  nav img { height: 32px !important; }
  
  .hero { min-height: 65vh; }
  .stat-bar { margin-top: 0; }
  .section { padding: 56px 0; }
  .page-banner { padding: 120px 0 48px; }
}

/* ---- WhatsApp button ---- */
.whatsapp-btn {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 48px; height: 48px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 998;
  box-shadow: 0 2px 8px rgba(37,211,102,0.3);
  transition: box-shadow 0.2s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.whatsapp-btn:hover {
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
}
.whatsapp-btn .tooltip {
  position: absolute;
  left: 58px;
  background: #fff;
  color: #333;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-btn:hover .tooltip { opacity: 1; }

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 16px 24px;
  z-index: 9999;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner a { color: var(--amber); text-decoration: underline; }
.cookie-btn {
  background: var(--amber);
  color: var(--navy);
  border: none;
  padding: 8px 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.cookie-btn:hover { background: var(--amber-hover); color: #fff; }

/* ---- Testimonial card ---- */
.testimonial-card {
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}
.testimonial-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(11,26,46,0.05);
}

/* ---- Form validation ---- */
.form-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.08) !important;
}
.error-msg {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}
.form-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

/* ---- Blog Content Typography ---- */
.blog-content h1,.blog-content h2,.blog-content h3,.blog-content h4 {
  color: #0B1A2E; font-weight: 700; margin-top: 1.75rem; margin-bottom: 0.75rem; line-height: 1.3;
}
.blog-content h2 { font-size: 1.5rem; }
.blog-content h3 { font-size: 1.25rem; }
.blog-content h4 { font-size: 1.1rem; }
.blog-content p  { margin-bottom: 1.25rem; line-height: 1.8; color: #4b5563; }
.blog-content ul,.blog-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; color: #4b5563; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin-bottom: 0.4rem; line-height: 1.7; }
.blog-content a  { color: #C8982D; text-decoration: underline; }
.blog-content a:hover { color: #0B1A2E; }
.blog-content blockquote {
  border-left: 4px solid #C8982D; padding: 1rem 1.5rem;
  background: #fdf8ee; margin: 1.5rem 0; border-radius: 0 8px 8px 0;
  font-style: italic; color: #6b7280;
}
.blog-content img { max-width: 100%; border-radius: 8px; margin: 1.5rem 0; }
.blog-content pre {
  background: #1e293b; color: #e2e8f0; padding: 1.25rem;
  border-radius: 8px; overflow-x: auto; margin-bottom: 1.25rem; font-size: 0.875rem;
}
.blog-content code { background: #f1f5f9; color: #0B1A2E; padding: 2px 6px; border-radius: 4px; font-size: 0.875em; }
.blog-content pre code { background: transparent; color: inherit; padding: 0; }
.blog-content hr { border: none; border-top: 1px solid #e5e7eb; margin: 2rem 0; }
.blog-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: 0.875rem; }
.blog-content th { background: #0B1A2E; color: #fff; padding: 10px 14px; text-align: left; }
.blog-content td { padding: 10px 14px; border-bottom: 1px solid #e5e7eb; }
.blog-content tr:hover td { background: #f9fafb; }

/* ---- Print ---- */
@media print {
  nav, footer, .scroll-top, .cta-banner { display: none !important; }
  .hero { min-height: auto; padding: 40px 0; }
  .section { padding: 30px 0; }
  body { color: #000; }
}
