/*
Theme Name: SMS Phone API
Theme URI: https://smsphoneapi.com
Author: SMS Phone API Team
Author URI: https://smsphoneapi.com
Description: A modern, SEO-optimized theme for SMS Phone API - Transform Your Android Phone into a Powerful SMS Gateway
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smsphoneapi
Tags: one-column, custom-menu, featured-images, translation-ready, custom-logo
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
*/

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #f59e0b;
    --dark: #111827;
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-400: #d1d5db;
    --gray-300: #e5e7eb;
    --gray-200: #f3f4f6;
    --gray-100: #f9fafb;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: var(--gray-700); background-color: var(--white); -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5, h6 { color: var(--gray-900); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; border-radius: var(--radius); border: none; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-primary { background: var(--gradient-primary); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); }
.btn-success { background: var(--secondary); color: var(--white); }
.btn-success:hover { background: var(--secondary-dark); color: var(--white); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: var(--shadow); transition: var(--transition); }
.site-header.scrolled { background: var(--white); box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.site-logo { display: flex; align-items: center; gap: 0.75rem; }
.site-logo img { height: 40px; width: auto; }
.site-logo .logo-text { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.site-logo .logo-text span { color: var(--gray-700); }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.nav-menu { display: flex; list-style: none; gap: 0.5rem; margin: 0; padding: 0; }
.nav-menu a { display: block; padding: 0.5rem 1rem; color: var(--gray-700); font-weight: 500; border-radius: var(--radius); }
.nav-menu a:hover, .nav-menu .current-menu-item a { color: var(--primary); background: var(--gray-100); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

/* Language Dropdown */
.lang-dropdown { position: relative; display: inline-block; }
.lang-dropdown-toggle { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); cursor: pointer; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); transition: var(--transition); white-space: nowrap; }
.lang-dropdown-toggle:hover { border-color: var(--primary); background: var(--gray-50); }
.lang-dropdown-toggle .flag-icon { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }
.lang-dropdown-toggle span { display: none; }
.lang-dropdown-toggle .dropdown-arrow { width: 10px; height: 10px; transition: transform 0.2s ease; }
.lang-dropdown.open .lang-dropdown-toggle .dropdown-arrow { transform: rotate(180deg); }
.lang-dropdown-menu { position: absolute; top: calc(100% + 4px); right: 0; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 140px; z-index: 1001; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.2s ease; overflow: hidden; }
.lang-dropdown.open .lang-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 0.875rem; color: var(--gray-700); transition: var(--transition); font-size: 0.875rem; }
.lang-option:hover { background: var(--gray-100); color: var(--gray-900); }
.lang-option.active { background: var(--primary-light); color: var(--white); }
.lang-option .flag-icon { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }

/* Logo Icon */
.logo-icon { flex-shrink: 0; width: 40px; height: 40px; }
.site-logo { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.site-logo .logo-text { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); white-space: nowrap; }
.site-logo .logo-text span { color: var(--primary); font-weight: 700; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; background: none; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-700); transition: var(--transition); }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--gradient-hero); overflow: hidden; padding-top: 80px; }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 4rem 0; }
.hero-text { color: var(--white); }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: rgba(255, 255, 255, 0.1); border-radius: 50px; font-size: 0.875rem; margin-bottom: 1.5rem; border: 1px solid rgba(255, 255, 255, 0.2); }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.25rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 3rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.hero-stat { text-align: center; }
.hero-stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); }
.hero-image { position: relative; }
.hero-phone { max-width: 100%; filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.3)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.section { padding: 6rem 0; }
.section-gray { background: var(--gray-100); }
.section-dark { background: var(--gray-900); color: var(--white); }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 4rem; }
.section-badge { display: inline-block; padding: 0.375rem 1rem; background: var(--primary); color: var(--white); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; border-radius: 50px; margin-bottom: 1rem; }
.section-header p { font-size: 1.125rem; color: var(--gray-600); }
.section-dark .section-header p { color: var(--gray-400); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: var(--white); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--gray-200); }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: var(--primary); }
.feature-icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--white); border-radius: var(--radius); font-size: 1.5rem; margin-bottom: 1.5rem; }
.feature-card h3 { margin-bottom: 0.75rem; }
.feature-card p { color: var(--gray-600); margin-bottom: 0; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.pricing-card { background: var(--white); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-lg); position: relative; transition: var(--transition); border: 2px solid transparent; }
.pricing-card:hover { transform: translateY(-5px); }
.pricing-card.featured { border-color: var(--primary); transform: scale(1.05); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient-primary); color: var(--white); padding: 0.375rem 1.5rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.pricing-header { text-align: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-200); margin-bottom: 1.5rem; }
.pricing-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--gray-900); }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--gray-500); }
.pricing-features { list-style: none; padding: 0; margin: 0 0 2rem; }
.pricing-features li { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--gray-100); }
.pricing-features .check { color: var(--secondary); }
.pricing-features .cross { color: var(--gray-400); }

.cta-section { background: var(--gradient-hero); padding: 6rem 0; text-align: center; }
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255, 255, 255, 0.9); font-size: 1.25rem; margin-bottom: 2rem; }

.site-footer { background: var(--gray-900); color: var(--gray-400); padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; margin-bottom: 4rem; }
.footer-brand { max-width: 300px; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.footer-logo .logo-text { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.footer-column h4 { color: var(--white); font-size: 1rem; margin-bottom: 1.5rem; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 0.75rem; }
.footer-menu a { color: var(--gray-400); }
.footer-menu a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--gray-800); }
.footer-bottom p { margin: 0; font-size: 0.875rem; }

.social-links { display: flex; gap: 1rem; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--gray-800); color: var(--gray-400); border-radius: 50%; transition: var(--transition); }
.social-links a:hover { background: var(--primary); color: var(--white); }

.page-header { background: var(--gradient-hero); padding: 10rem 0 4rem; text-align: center; }
.page-header h1 { color: var(--white); margin-bottom: 1rem; }
.page-header p { color: rgba(255, 255, 255, 0.9); font-size: 1.25rem; }
.page-content { padding: 4rem 0; }
.prose { max-width: 800px; margin: 0 auto; }

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius-lg); margin-bottom: 1rem; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--gray-200); transition: var(--transition); }
.faq-item:hover { border-color: var(--primary); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; background: none; border: none; text-align: left; font-size: 1.125rem; font-weight: 600; color: var(--gray-900); cursor: pointer; transition: var(--transition); }
.faq-question:hover { color: var(--primary); }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--primary); transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-answer p { color: var(--gray-600); line-height: 1.7; margin: 0; }
.faq-item.active .faq-answer { max-height: 500px; }

.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--gray-700); }
.form-control { width: 100%; padding: 0.875rem 1rem; font-size: 1rem; border: 2px solid var(--gray-300); border-radius: var(--radius); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.step-card { text-align: center; padding: 2rem; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: var(--gradient-primary); color: var(--white); font-size: 1.5rem; font-weight: 800; border-radius: 50%; margin-bottom: 1.5rem; }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.testimonial-card { background: var(--white); padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.testimonial-stars { color: var(--accent); margin-bottom: 1rem; }
.testimonial-text { font-size: 1.125rem; font-style: italic; color: var(--gray-700); margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--gray-300); }
.testimonial-name { font-weight: 600; color: var(--gray-900); }
.testimonial-role { font-size: 0.875rem; color: var(--gray-500); }

.use-cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.use-case-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.use-case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.use-case-icon { height: 200px; display: flex; align-items: center; justify-content: center; background: var(--gradient-primary); color: var(--white); font-size: 4rem; }
.use-case-content { padding: 1.5rem; }

.api-code { background: var(--gray-900); border-radius: var(--radius-lg); padding: 1.5rem; overflow-x: auto; }
.api-code pre { color: var(--gray-300); font-family: 'Fira Code', monospace; font-size: 0.875rem; line-height: 1.6; margin: 0; }
.api-code .keyword { color: #c792ea; }
.api-code .string { color: #c3e88d; }
.api-code .number { color: #f78c6c; }

.integration-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; align-items: center; }
.integration-logos img { height: 40px; opacity: 0.7; transition: var(--transition); filter: grayscale(100%); }
.integration-logos img:hover { opacity: 1; filter: grayscale(0%); }

/* GeoIP Popup */
.geo-popup { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.geo-popup-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.geo-popup-content { position: relative; background: var(--white); border-radius: var(--radius-xl); padding: 2.5rem; max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow-xl); animation: popupSlideIn 0.3s ease; }
@keyframes popupSlideIn { from { opacity: 0; transform: scale(0.9) translateY(-20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.geo-popup-close { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border: none; background: var(--gray-100); border-radius: 50%; font-size: 1.25rem; color: var(--gray-600); cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.geo-popup-close:hover { background: var(--gray-200); color: var(--gray-900); }
.geo-popup-flag { margin-bottom: 1.5rem; }
.geo-popup-flag img { border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 0 auto; }
.geo-popup-title { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.75rem; }
.geo-popup-message { color: var(--gray-600); margin-bottom: 1.5rem; line-height: 1.6; }
.geo-popup-buttons { display: flex; flex-direction: column; gap: 0.75rem; }
.geo-popup-switch { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.geo-popup-switch img { border-radius: 2px; }

@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-image { order: -1; max-width: 400px; margin: 0 auto; }
    .hero-stats { justify-content: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .main-nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 350px; height: 100vh; background: var(--white); flex-direction: column; padding: 5rem 2rem 2rem; box-shadow: var(--shadow-xl); transition: var(--transition); }
    .main-nav.active { right: 0; }
    .nav-menu { flex-direction: column; width: 100%; }
    .nav-actions { flex-direction: column; width: 100%; }
    .menu-toggle { display: flex; }
    .hero-buttons { justify-content: center; }
    .pricing-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
}
