/*
Theme Name: Divine Apps Theme
Theme URI: https://divineapps.com
Author: Divine Apps Limited
Description: Classy multi-page WordPress theme for Divine Apps Limited, featuring custom header logo, responsive design, custom login page, and modern service showcases.
Version: 1.0
Text Domain: divine-apps
*/

:root {
  --primary: #0b1329;
  --primary-light: #162447;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --gold: #d97706;
  --gold-glow: rgba(217, 119, 6, 0.2);
  --bg-light: #f8fafc;
  --bg-surface: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --border-color: #e2e8f0;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-navigation a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #ffffff !important;
  padding: 0.65rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0b1329 0%, #162447 100%);
  color: #ffffff;
  padding: 5rem 2rem 6rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  color: #ffffff !important;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
  transform: perspective(1000px) rotateY(0deg);
}

/* Feature Cards & Services */
.section {
  padding: 5rem 2rem;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.service-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.service-body p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Vision & Mission Cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.info-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--accent);
}

.info-card.gold-accent::before {
  background: var(--gold);
}

.info-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.info-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Contact Banner & CTA */
.cta-banner {
  background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 4rem 3rem;
  text-align: center;
  margin: 3rem auto;
  max-width: 1280px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #94a3b8;
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.contact-info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-box {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.contact-box-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contact-box h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact-box p {
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #070c19;
  color: #94a3b8;
  padding: 5rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  line-height: 1.7;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul a {
  color: #94a3b8;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1280px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

/* Custom WP Login Screen Styles */
body.login {
  background: linear-gradient(135deg, #0b1329 0%, #162447 100%) !important;
  font-family: var(--font-family) !important;
  color: #f8fafc !important;
}

body.login #login {
  padding: 4rem 0 0 !important;
  width: 100% !important;
  max-width: 440px !important;
}

body.login h1 a {
  width: 100% !important;
  height: 80px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 1.5rem !important;
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0,0,0,0.5)) !important;
}

body.login h1 a img {
  max-height: 75px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(0,0,0,0.5)) !important;
}

body.login #loginform {
  background: rgba(255, 255, 255, 0.98) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  padding: 2.5rem !important;
}

body.login #login .message,
body.login #login .notice,
body.login #login_error,
body.login .message,
body.login .notice,
body.login .error {
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 12px !important;
  border-left: 4px solid #2563eb !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2) !important;
  padding: 1rem 1.25rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
}

body.login #login_error,
body.login .error {
  border-left-color: #ef4444 !important;
  color: #991b1b !important;
}

body.login #login .message,
body.login .message {
  border-left-color: #2563eb !important;
  color: #1e293b !important;
}

body.login #login .message *,
body.login #login_error *,
body.login .notice *,
body.login .error * {
  color: inherit !important;
}

body.login label {
  color: #1e293b !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
}

body.login input[type="text"],
body.login input[type="password"] {
  border-radius: 10px !important;
  border: 1px solid #cbd5e1 !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  margin-top: 0.35rem !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

body.login input[type="submit"] {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 0.75rem 2rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  width: 100% !important;
  margin-top: 1rem !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.login input[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6) !important;
}

body.login #nav,
body.login #backtoblog {
  text-align: center !important;
  padding: 1rem 0 0 !important;
}

body.login #nav a,
body.login #backtoblog a {
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
  color: #ffffff !important;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Custom Scrollbar for Popups & Modals */
div[style*="overflow-y: auto"]::-webkit-scrollbar {
  width: 6px;
}
div[style*="overflow-y: auto"]::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}
div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
