/*
Theme Name: TransferSS
Theme URI: https://sinaitaxi.com
Author: Yassin
Description: A custom WordPress theme that recreates the TransferSS website design.  
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: transferss
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/*
 * Colour palette derived from the original TransferSS React application.
 * Defining custom CSS variables up front makes it easy to reuse colours
 * throughout the theme without repeatedly hard‑coding values. When
 * adjusting the palette simply tweak these values and the rest of the
 * styles will follow suit.
 */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(222.2, 84%, 4.9%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(222.2, 84%, 4.9%);
  --primary: hsl(221.2, 83.2%, 53.3%);
  --primary-foreground: hsl(210, 40%, 98%);
  --secondary: hsl(210, 40%, 96%);
  --secondary-foreground: hsl(222.2, 84%, 4.9%);
  --muted: hsl(210, 40%, 96%);
  --muted-foreground: hsl(215.4, 16.3%, 46.9%);
  --accent: hsl(24.6, 95%, 53.1%);
  --accent-foreground: hsl(210, 40%, 98%);
  --radius: 12px;
}

/* Reset margins and padding and set a consistent box model */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Container used to centre content and limit widths */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Site header with sticky behaviour */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--background);
  border-bottom: 1px solid var(--secondary);
  position: sticky;
  top: 0;
  z-index: 999;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: baseline;
}

.site-logo span {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  margin-left: 0.35rem;
  letter-spacing: 0.5px;
}

/* Navigation styles */
nav .nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
}

nav .nav-menu li + li {
  margin-left: 1.5rem;
}

nav .nav-menu a {
  color: var(--foreground);
  font-weight: 500;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

nav .nav-menu a:hover {
  color: var(--primary);
}

/* Button styles – these classes are reused throughout the theme */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
  border: none;
}

.btn i {
  margin-right: 0.5rem;
}

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

.btn-primary:hover {
  background: hsl(24.6, 95%, 48%);
}

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

.btn-secondary:hover {
  background: hsl(221.2, 83.2%, 48%);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

.btn-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.btn-link i {
  margin-left: 0.3rem;
}

/* Generic section padding */
.section {
  padding: 4rem 0;
}

.text-center {
  text-align: center;
}

.heading-xl {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.heading-lg {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.heading-md {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.text-muted {
  color: var(--muted-foreground);
}

/* Card component used throughout the theme */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Responsive grids for various sections */
.trust-grid,
.solutions-grid,
.testimonial-grid,
.benefits-grid,
.news-grid {
  display: grid;
  gap: 2rem;
}

.trust-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.solutions-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.benefits-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.news-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Timeline layout used on About page */
.timeline {
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.timeline-year {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 1rem;
}

/* Pricing table styles */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.table th,
.table td {
  padding: 0.75rem;
  border: 1px solid var(--secondary);
  text-align: center;
}

.table th {
  background: var(--secondary);
  color: var(--foreground);
}

/* FAQ items */
.faq-item {
  margin-bottom: 1.5rem;
}

/* Site footer */
.footer {
  background: var(--secondary);
  padding: 3rem 0;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

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

/* Simple responsive adjustments */
@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
  }
  nav .nav-menu {
    margin-top: 1rem;
    flex-wrap: wrap;
  }
  nav .nav-menu li {
    margin-left: 1rem;
  }
}