/*
Theme Name: Ogaal Advertising Agency
Theme URI: https://ogaal-somali-spark.lovable.app
Author: Ogaal Advertising Agency
Author URI: https://ogaal-somali-spark.lovable.app
Description: Modern digital marketing WordPress theme for Ogaal Advertising Agency.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ogaal
*/

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #004851;
  --primary-dark: #002d33;
  --primary-foreground: #ffffff;
  --secondary: #84bd00;
  --secondary-foreground: #ffffff;
  --foreground: #004851;
  --muted: #f0f5f6;
  --muted-foreground: #4a7a82;
  --border: #d6e4e7;
  --card-bg: #ffffff;
  --background: #ffffff;
  --section-light: #f5f8f9;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 3px rgba(0, 72, 81, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 72, 81, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 72, 81, 0.15);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s, opacity 0.3s;
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ── Utility ── */
.text-gradient {
  background: linear-gradient(135deg, #84bd00, #a5e000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.section-light {
  background: var(--section-light);
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(0, 72, 81, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  color: var(--primary-foreground);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

.main-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1;
}

.btn-primary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--primary-foreground);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-dark {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-dark:hover {
  filter: brightness(1.1);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: flex;
  background: none;
  border: none;
  color: var(--primary-foreground);
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  background: rgba(0, 72, 81, 0.95);
  backdrop-filter: blur(12px);
}

.mobile-nav.active {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
}

.mobile-nav a:hover {
  color: var(--secondary);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.hero-decoration-1 {
  width: 24rem;
  height: 24rem;
  top: -10rem;
  right: -10rem;
  background: rgba(132, 189, 0, 0.05);
}

.hero-decoration-2 {
  width: 18rem;
  height: 18rem;
  bottom: 5rem;
  left: -5rem;
  background: rgba(132, 189, 0, 0.08);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  padding-top: 6rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(132, 189, 0, 0.1);
  border: 1px solid rgba(132, 189, 0, 0.2);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-badge-text {
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-foreground);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.25rem;
  }
}

.hero-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  max-width: 36rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
}

@media (min-width: 768px) {
  .hero-stat-value {
    font-size: 1.875rem;
  }
}

.hero-stat-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ── Trusted By ── */
.trusted-by {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trusted-by-title {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .trusted-logos {
    gap: 4rem;
  }
}

.trusted-logo {
  color: rgba(74, 122, 130, 0.4);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

@media (min-width: 768px) {
  .trusted-logo {
    font-size: 1.5rem;
  }
}

.trusted-logo:hover {
  color: rgba(0, 72, 81, 0.6);
}

/* ── Section Titles ── */
.section-label {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label-light {
  color: var(--secondary);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--foreground);
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-title-light {
  color: var(--primary-foreground);
}

.section-desc {
  color: var(--muted-foreground);
  margin-top: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
}

.section-desc-light {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Services ── */
.services {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: rgba(132, 189, 0, 0.3);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background: rgba(132, 189, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ── Process ── */
.process {
  padding: 6rem 0;
}

.process-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  position: relative;
  text-align: center;
}

.process-step-number {
  position: absolute;
  top: 0;
  right: 1rem;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(132, 189, 0, 0.1);
  line-height: 1;
}

@media (min-width: 1024px) {
  .process-step-number {
    right: auto;
    left: 1rem;
  }
}

.process-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  background: rgba(132, 189, 0, 0.1);
  border: 2px solid rgba(132, 189, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--secondary);
  font-size: 2rem;
  transition: all 0.3s;
}

.process-step:hover .process-icon {
  background: rgba(132, 189, 0, 0.2);
  border-color: rgba(132, 189, 0, 0.4);
}

.process-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ── Portfolio ── */
.portfolio {
  padding: 6rem 0;
}

.portfolio-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.portfolio-card:hover {
  box-shadow: var(--shadow-xl);
}

.portfolio-card-img {
  position: relative;
  height: 15rem;
  overflow: hidden;
}

.portfolio-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.portfolio-card:hover .portfolio-card-img img {
  transform: scale(1.1);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 72, 81, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.portfolio-card:hover .portfolio-card-overlay {
  background: rgba(0, 72, 81, 0.6);
}

.portfolio-card-overlay svg {
  opacity: 0;
  color: white;
  transition: opacity 0.3s;
}

.portfolio-card:hover .portfolio-card-overlay svg {
  opacity: 1;
}

.portfolio-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.portfolio-card-body {
  padding: 1.25rem;
}

.portfolio-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.portfolio-card-body p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── About ── */
.about {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-img-decoration-1 {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 8rem;
  height: 8rem;
  background: rgba(132, 189, 0, 0.2);
  border-radius: 1rem;
  z-index: -1;
}

.about-img-decoration-2 {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 6rem;
  height: 6rem;
  border: 2px solid rgba(132, 189, 0, 0.3);
  border-radius: 1rem;
  z-index: -1;
}

.about-text h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about-text h2 {
    font-size: 2.25rem;
  }
}

.about-text p {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-text p.lead {
  font-size: 1.125rem;
}

/* ── Testimonials ── */
.testimonials {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.testimonials-decoration {
  position: absolute;
  top: 5rem;
  right: 5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgba(132, 189, 0, 0.05);
  filter: blur(60px);
}

.testimonial-wrapper {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial-quote-icon {
  position: absolute;
  top: -1rem;
  left: -1rem;
  font-size: 4rem;
  color: rgba(132, 189, 0, 0.2);
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.testimonial-stars span {
  color: #facc15;
  font-size: 1.25rem;
}

.testimonial-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 2.5rem;
  padding: 0 2rem;
}

@media (min-width: 768px) {
  .testimonial-text {
    font-size: 1.5rem;
  }
}

.testimonial-name {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.125rem;
}

.testimonial-company {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.testimonial-nav-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.25rem;
}

.testimonial-nav-btn:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.testimonial-dot.active {
  background: var(--secondary);
  width: 2rem;
}

/* ── Contact ── */
.contact {
  padding: 6rem 0;
}

.contact-form {
  max-width: 36rem;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .contact-form {
    padding: 2.5rem;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-group label svg {
  color: var(--secondary);
  width: 14px;
  height: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--muted);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(132, 189, 0, 0.15);
}

.form-group textarea {
  resize: none;
  min-height: 8rem;
}

.form-error {
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.form-submit {
  width: 100%;
  margin-top: 1.5rem;
}

/* ── Final CTA ── */
.final-cta {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.final-cta h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .final-cta h2 {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .final-cta h2 {
    font-size: 3rem;
  }
}

.final-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 20rem;
  margin-top: 1rem;
}

.footer-heading {
  color: var(--primary-foreground);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.footer-contact-item:hover {
  color: var(--secondary);
}

.footer-contact-item svg {
  color: var(--secondary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
}

.footer-social a:hover {
  color: var(--secondary);
  border-color: rgba(132, 189, 0, 0.3);
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* ── WhatsApp Floating Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s;
  color: white;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
