/*
Theme Name: DT Software
Theme URI: https://dtsoftware.ltd
Author: DT Software Ltd
Author URI: https://dtsoftware.ltd
Description: Official theme for DT Software Ltd — website development, PMS integrations, booking and charge automation for hotels and villas.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dtsoftware
*/

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:       #E8154B;
  --pink-dark:  #c41040;
  --pink-light: #FFEFF3;
  --dark:       #0D0F1A;
  --dark-mid:   #12152a;
  --white:      #FFFFFF;
  --text:       #1a1a2e;
  --muted:      #666680;
  --card-bg:    #FFF0F3;
  --radius:     10px;
  --font:       'Poppins', 'Segoe UI', sans-serif;
  --max-w:      1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-dark); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* =============================================
   NAVIGATION
============================================= */
#site-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 28px 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}

#site-nav.scrolled {
  position: fixed;
  background: rgba(13,15,26,.95);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color .2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--white); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  position: absolute;
  right: 28px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .25s;
}

/* =============================================
   HERO
============================================= */
#hero {
  position: relative;
  min-height: 380px;
  height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1484788984921-03950022c9ef?w=1920&q=80&auto=format');
  background-size: cover;
  background-position: center;
  filter: brightness(.35) saturate(.8);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,15,26,.7) 0%,
    rgba(20,30,60,.5) 50%,
    rgba(13,15,26,.7) 100%
  );
  z-index: 1;
}

/* Particle canvas sits between bg layers and content */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 40px 24px 32px;
  max-width: 480px;
}

.btn-pink, .btn-outline-white {
  padding: 10px 22px;
  font-size: .85rem;
}

/* =============================================
   POLICY PAGES
============================================= */
.policy-page {
  padding: 100px 0 80px;
  background: var(--white);
}

.policy-page h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--pink);
  display: inline-block;
}

.policy-content {
  max-width: 780px;
}

.policy-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}

.policy-content p {
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.policy-content ul {
  margin: 10px 0 16px 20px;
}

.policy-content ul li {
  font-size: .93rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 8px;
}

.policy-content strong {
  color: var(--text);
  font-weight: 600;
}

.hero-tagline {
  font-size: .72rem;
  font-weight: 400;
  color: rgba(255,255,255,.75);
  margin-bottom: 8px;
  letter-spacing: .01em;
}

.hero-title {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-pink {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  padding: 13px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--font);
  transition: background .2s, transform .2s;
  border: 2px solid var(--pink);
  cursor: pointer;
}

.btn-pink:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 13px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid var(--white);
  transition: background .2s, color .2s, transform .2s;
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--text);
  transform: translateY(-2px);
}

/* =============================================
   SERVICES
============================================= */
#services {
  padding: 100px 0;
  background: var(--white);
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.services-header p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 44px 32px 36px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(232,21,75,.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.service-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* =============================================
   OUR TEAM
============================================= */
#our-team {
  padding: 100px 0;
  background: #f8f9fc;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), #ff6b9d);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.team-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.team-card .team-role {
  font-size: .83rem;
  color: var(--pink);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-card p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* =============================================
   FREE TESTING
============================================= */
#free-testing {
  padding: 100px 0;
  background: var(--white);
}

.testing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.testing-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.testing-content p {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.testing-list {
  list-style: none;
  margin: 24px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testing-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  color: var(--muted);
}

.testing-list .check {
  width: 20px;
  height: 20px;
  background: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .65rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.testing-visual {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}

.testing-visual .big-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.testing-visual h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.testing-visual p {
  font-size: .88rem;
  color: var(--muted);
}

/* =============================================
   TESTIMONIALS
============================================= */
#testimonials {
  padding: 100px 0;
  background: #f8f9fc;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 4rem;
  line-height: 1;
  color: var(--pink);
  opacity: .2;
  font-family: Georgia, serif;
}

.stars {
  color: #FFC107;
  font-size: .9rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-text {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), #ff6b9d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: white;
  flex-shrink: 0;
}

.author-name  { font-size: .88rem; font-weight: 600; color: var(--text); }
.author-role  { font-size: .78rem; color: var(--muted); }

/* =============================================
   NEWS
============================================= */
#news {
  padding: 100px 0;
  background: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.news-img {
  height: 160px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.news-body { padding: 24px; background: var(--white); }

.news-date {
  font-size: .75rem;
  color: var(--pink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card p {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =============================================
   CONTACTS
============================================= */
#contacts {
  background: var(--dark);
  padding: 80px 0 60px;
}

#contacts h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 36px;
}

.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 38px;
  height: 38px;
  background: var(--pink);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-text {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
  padding-top: 6px;
}

.contact-text a { color: rgba(255,255,255,.75); }
.contact-text a:hover { color: var(--white); }

/* Contact form */
.contact-form-wrap {}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--white);
  font-size: .9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}

.form-group select option { background: var(--dark-mid); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--pink);
  background: rgba(232,21,75,.07);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  color: var(--white);
}

.form-success h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--white); }
.form-success p  { color: rgba(255,255,255,.6); }

/* =============================================
   FOOTER BOTTOM
============================================= */
#site-footer {
  background: var(--dark-mid);
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: .83rem; color: rgba(255,255,255,.4); }

.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .83rem; color: rgba(255,255,255,.4); transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.8); }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13,15,26,.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 200;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }

  .nav-hamburger { display: flex; }

  .services-grid,
  .team-grid,
  .testimonials-grid,
  .news-grid { grid-template-columns: 1fr; }

  .testing-inner { grid-template-columns: 1fr; gap: 40px; }
  .contacts-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  #services, #our-team, #free-testing, #testimonials, #news { padding: 72px 0; }
  #contacts { padding: 60px 0; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
}
