/*
Theme Name: Birdit
Theme URI: https://www.birdit.eu
Author: Birdit SRL
Author URI: https://www.birdit.eu
Description: Modern, fun and startup-friendly WordPress theme for Birdit IT solutions company
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: birdit
Tags: business, portfolio, one-column, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==================== CSS Reset & Base Styles ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2a819d;
  --primary-dark: #1f6178;
  --primary-light: #3ba3c5;
  --secondary-color: #f8f9fa;
  --text-dark: #1a1a1a;
  --text-light: #6c757d;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #2a819d 0%, #3ba3c5 100%);
  --shadow-sm: 0 2px 8px rgba(42, 129, 157, 0.1);
  --shadow-md: 0 4px 16px rgba(42, 129, 157, 0.15);
  --shadow-lg: 0 8px 32px rgba(42, 129, 157, 0.2);
  --header-height: 77px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1080px;
  }
}

/* ==================== Header & Navigation ==================== */
.main-header {
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 45px;
  width: auto;
}

.navbar .container {
  gap: 1rem;
}

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

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  background-image: linear-gradient(135deg, #2a819d 0%, #3ba3c5 100%);
  background-repeat: no-repeat;
  background-position: center bottom 3px;
  background-size: 0% 2px;
  background-color: transparent;
  transition: color 0.25s ease,
              background-color 0.25s ease,
              background-size 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-menu a:hover {
  color: var(--primary-color);
  background-size: calc(100% - 1rem) 2px;
  transform: translateY(-1px);
}

.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Social icons in nav */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(42, 129, 157, 0.2);
}

.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #8a9bb0;
  background: rgba(42, 129, 157, 0.06);
  transition: color 0.25s ease,
              background 0.25s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.nav-social-link:hover {
  transform: scale(1.15) translateY(-2px);
}

.nav-social-link--linkedin:hover {
  color: #fff;
  background: #0a66c2;
}

.nav-social-link--facebook:hover {
  color: #fff;
  background: #1877f2;
}

/* Hamburger → X animation */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(42, 129, 157, 0.08);
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.25s ease,
              width 0.3s ease;
  transform-origin: center;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* ==================== Hero Section ==================== */
.hero {
  padding: 80px 32px 100px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42, 129, 157, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-30px, 30px) rotate(240deg); }
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
}

.hero-text {
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 540px;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gradient);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.hero-image {
  animation: slideInRight 0.8s ease-out;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ==================== Services Section ==================== */
.services {
  padding: 100px 32px;
  background: var(--white);
}

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

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

.section-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.heading-line {
  width: 80px;
  height: 4px;
  background: var(--gradient);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

.service-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(42, 129, 157, 0.1) 0%, rgba(59, 163, 197, 0.1) 100%);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon img {
  width: 60px;
  height: 60px;
}

.service-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ==================== Contact Section ==================== */
.contact {
  padding: 100px 32px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}

.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.contact-info > p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  justify-content: space-evenly;
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 12px;
}

.contact-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.contact-item h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--text-light);
  line-height: 1.6;
}

.contact-illustration img {
  width: 100%;
  max-width: 450px;
  height: auto;
  animation: floatImage 6s ease-in-out infinite;
}

/* ==================== Footer ==================== */
.main-footer {
  background: var(--text-dark);
  color: var(--white);
  margin-top: 0;
}

.footer-wave {
  display: block;
  line-height: 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.footer-wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

.footer-inner {
  padding: 1rem 0 2rem;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: color 0.25s ease,
              background 0.25s ease,
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social-link:hover {
  transform: scale(1.15) translateY(-2px);
}

.footer-social-link--linkedin:hover {
  color: #fff;
  background: #0a66c2;
}

.footer-social-link--facebook:hover {
  color: #fff;
  background: #1877f2;
}

.footer-brand img {
  height: 45px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 1.25rem;
}

.footer-col span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.footer-bottom .footer-socials {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
  gap: 0.4rem;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-image {
    order: -1;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-right {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.5rem 1rem;
    box-shadow: var(--shadow-md);
    display: none;
    gap: 0;
  }

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

  .nav-menu {
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    box-shadow: none;
    background: none;
    display: flex;
    gap: 0.25rem;
  }

  .nav-menu a {
    padding: 0.6rem 0.9rem;
  }

  .nav-socials {
    display: flex;
    justify-content: center;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(42, 129, 157, 0.15);
  }

  .hero {
    padding: 60px 24px 80px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header h3 {
    font-size: 1.2rem;
  }

  .services {
    padding: 60px 24px;
  }

  .contact {
    padding: 60px 24px;
  }

  .contact-info h2 {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-info > p {
    font-size: 1rem;
  }
}

/* ==================== Extra Small Devices ==================== */
@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
  
  .hero {
    padding: 50px 20px 70px;
  }
  
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .services {
    padding: 50px 20px;
  }
  
  .contact {
    padding: 50px 20px;
  }
  
  .service-card {
    padding: 1.75rem 1.25rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .section-header h3 {
    font-size: 1.1rem;
  }
  
  .contact-info h2 {
    font-size: 1.75rem;
  }
  
  .cta-button {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* ==================== Contact Form 7 ==================== */
.wpcf7-form {
  background: var(--white);
}

.wpcf7-form .row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wpcf7-form p {
  margin: 0;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #f8f9fa;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-sizing: border-box;
}

.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(42, 129, 157, 0.12);
}

.wpcf7-form-control.wpcf7-text::placeholder,
.wpcf7-form-control.wpcf7-email::placeholder,
.wpcf7-form-control.wpcf7-textarea::placeholder {
  color: var(--text-light);
  opacity: 0.8;
}

.wpcf7-form-control.wpcf7-textarea {
  min-height: 150px;
  resize: vertical;
}

/* Submit button — matches .cta-button */
.wpcf7-form-control.wpcf7-submit {
  display: inline-block;
  padding: 0.95rem 2.5rem;
  background: var(--gradient);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7-form-control.wpcf7-submit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Spinner */
.wpcf7-spinner {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.75rem;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(42, 129, 157, 0.25);
  border-top-color: var(--primary-color);
  border-radius: 50%;
}

/* Validation states */
.wpcf7-not-valid {
  border-color: #FF6B6B !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12) !important;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #FF6B6B;
}

/* Response output */
.wpcf7-response-output {
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none !important;
}

.wpcf7-form.sent .wpcf7-response-output {
  background: rgba(42, 129, 157, 0.08);
  color: var(--primary-dark);
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
  background: rgba(255, 107, 107, 0.08);
  color: #c0392b;
}

/* Hidden fields */
.hidden-fields-container {
  display: none;
}

/* ==================== Full-Width Section Override ==================== */
/*
 * Gutenberg wraps pasted HTML in group blocks with `is-layout-constrained`,
 * which applies a max-width via --wp--style--global--content-size.
 * Force full-width for our three main sections regardless of any wrapper.
 */
main {
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
  padding-top: var(--header-height);
}

.hero,
.services,
.contact {
  width: 100%;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
