/* 
  GRAHMUR OÜ Digital Agency Styles (V2)
  Premium Light Theme, Glassmorphism, and Fluid Animations
*/

:root {
  --bg-main: #f8fafc;
  --bg-darker: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --accent: #db2777;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --font-main: 'Outfit', sans-serif;
  --transition-fast: all 0.2s ease;
  --transition-medium: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition-fast);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 8rem 0;
}

.bg-darker {
  background-color: var(--bg-darker);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
  border: none;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: white;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 1rem;
}

.glow {
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-fast);
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.logo span {
  color: var(--primary);
}

.nav-logo-img {
  height: 100px;
  /* Noticeably larger for navbar */
  width: auto;
  transition: var(--transition-fast);
}

.navbar.scrolled .nav-logo-img {
  height: 80px;
  /* Shrink slightly so the scrolled navbar stays slim */
}

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

.nav-links li a {
  font-weight: 500;
}

.nav-links li a:hover:not(.btn) {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: none;
}

.menu-toggle .bar {
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite alternate;
}

.shape-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.3) 0%, rgba(79, 70, 229, 0) 70%);
}

.shape-2 {
  bottom: -10%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(219, 39, 119, 0.25) 0%, rgba(219, 39, 119, 0) 70%);
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(5%, 10%) scale(1.1);
  }

  100% {
    transform: translate(-5%, -10%) scale(0.9);
  }
}

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

.service-card {
  padding: 2.5rem 2rem;
  transition: var(--transition-medium);
  background: white;
  /* fallback */
  background: var(--glass-bg);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card .icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text-main);
  font-family: inherit;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.faq-toggle {
  font-size: 1.5rem;
  transition: var(--transition-fast);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding-top: 1rem;
  margin-bottom: 0;
  font-size: 1rem;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4rem;
  align-items: center;
}

.company-details p {
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.company-details a {
  color: var(--primary);
}

.contact-form-container {
  padding: 2.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-group select {
  appearance: none;
  cursor: pointer;
}

.field-error {
  display: block;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  min-height: 1rem;
}

.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.form-success {
  text-align: center;
  padding: 3rem;
  animation: fadeInUp 0.5s ease forwards;
}

.form-success .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #10b981;
}

.form-success h3 {
  color: #10b981;
}

.form-success p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Legal Pages */
.legal-page {
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: calc(100vh - 300px);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem;
}

.legal-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.legal-content .last-updated {
  margin-bottom: 3rem;
  font-size: 0.875rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Facts Strip */
.facts-strip {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 500;
}

.fact-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-item {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.value-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.value-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Process Timeline */
.process-timeline {
  max-width: 740px;
  margin: 0 auto;
  position: relative;
}

.timeline-step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
}

.timeline-step:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.2;
  min-width: 60px;
  line-height: 1;
  padding-top: 0.25rem;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 1rem;
  margin-bottom: 0;
  line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3.5rem 4rem;
}

.cta-text {
  flex: 1;
}

.cta-text h2 {
  margin-bottom: 1rem;
}

.cta-text p {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-banner .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 4rem 0 2rem 0;
  background: white;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  height: 100px;
  /* Massive display for the footer, as user requested */
  width: auto;
}

.footer-brand p {
  font-size: 0.875rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

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

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-legal {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
  opacity: 0.7;
  letter-spacing: 0.5px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 {
  animation-delay: 0.2s;
  transition-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
  transition-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
  transition-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-content {
    padding: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-banner {
    flex-direction: column;
    padding: 2.5rem;
    text-align: center;
  }

  .timeline-step {
    gap: 1.25rem;
  }

  .step-number {
    font-size: 2rem;
    min-width: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    /* changed from fixed to absolute within app layout */
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
    transition: var(--transition-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}