/*
Theme Name: Tamizh IT Solutions
Theme URI: https://tamizhit.in
Author: Tamizh IT Solutions
Author URI: https://tamizhit.in
Description: Official website theme for Tamizh IT Solutions — Complete IT Care & Support, Chennai.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Private
Text Domain: tamizhit
*/

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;1,400&display=swap');

:root {
    --blue:    #0d2260;
    --blue2:   #1a3d8f;
    --green:   #2e9c1f;
    --green2:  #247016;
    --dark:    #1a1a2e;
    --muted:   #5a6a8a;
    --border:  #e2e8f0;
    --light:   #f8fafc;
    --white:   #ffffff;
    --radius:  12px;
    --font-head: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: var(--dark); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue2); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--blue); line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; }
p  { margin-bottom: 1rem; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }

.btn, .btn-outline { display: inline-block; padding: 13px 28px; border-radius: 7px; font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s ease; text-decoration: none; }
.btn { background: var(--green); color: var(--white); }
.btn:hover { background: var(--green2); color: var(--white); text-decoration: none; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.12); text-decoration: none; }

.sec-tag { display: inline-block; background: #e8f5e9; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 4px 13px; border-radius: 4px; margin-bottom: 0.75rem; border: 1px solid rgba(46,156,31,0.2); }
.sec-tag.light { background: rgba(46,156,31,0.18); color: #7ee870; border-color: rgba(46,156,31,0.35); }

/* HEADER — WHITE */
#site-header { 
        padding: 5px 0px;
    background: var(--white); position: sticky; top: 0; z-index: 999; height: 80px; display: flex; align-items: center; border-bottom: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
#site-header .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-logo img {     width: 155px; }
.site-logo .logo-fallback { display: none; flex-direction: column; line-height: 1.1; }
.site-logo .logo-fallback .lf-main { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--blue); }
.site-logo .logo-fallback .lf-sub { font-size: 10px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

#main-nav ul { display: flex; gap: 1.5rem; align-items: center; }
#main-nav a { color: var(--dark); font-size: 15px; font-weight: 500; transition: color 0.2s; text-decoration: none; }
#main-nav a:hover { color: var(--green); }
#main-nav .nav-cta { background: var(--green); color: var(--white) !important; padding: 9px 20px; border-radius: 7px; font-weight: 600 !important; }
#main-nav .nav-cta:hover { background: var(--green2); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* HERO — PHOTO SLIDER */
#hero { position: relative; overflow: hidden; min-height: 580px; display: flex; flex-direction: column; justify-content: center; color: var(--white); }

.hero-bg-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease-in-out; background-size: cover; background-position: center center; background-repeat: no-repeat; animation: kenburns 16s ease-in-out infinite alternate; }
.hero-slide.active { opacity: 1; }
@keyframes kenburns { 0% { transform: scale(1.0) translate(0,0); } 100% { transform: scale(1.07) translate(-1%, 0.5%); } }

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(8,18,55,0.80) 0%, rgba(8,18,55,0.62) 50%, rgba(8,18,55,0.48) 100%); z-index: 1; }

.slide-caption { position: absolute; bottom: 28px; left: 36px; background: rgba(0,0,0,0.5); border: 1px solid rgba(46,156,31,0.6); color: #6ee860; font-size: 12px; font-weight: 600; font-family: var(--font-body); padding: 6px 15px; border-radius: 6px; letter-spacing: 0.4px; backdrop-filter: blur(6px); z-index: 2; }

.hero-content { position: relative; z-index: 2; padding: 5rem 0 4rem; text-align: center; }
.slide-dots { display: flex; gap: 8px; justify-content: center; margin-top: 2rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.45); background: transparent; cursor: pointer; padding: 0; transition: all 0.3s; }
.dot.active { background: var(--green); border-color: var(--green); transform: scale(1.3); }

.hero-badge { display: inline-block; background: rgba(46,156,31,0.2); border: 1px solid rgba(46,156,31,0.5); color: #7ee870; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 5px 18px; border-radius: 20px; margin-bottom: 1.5rem; }
#hero h1 { color: var(--white); max-width: 660px; margin: 0 auto 0.7rem; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
#hero h1 em { color: #6ee860; font-style: normal; }
.hero-tagline { font-size: 1.05rem; font-style: italic; color: rgba(255,255,255,0.78); margin-bottom: 0.8rem; }
.hero-tagline strong { color: #a8d5ff; font-style: normal; }
#hero p.hero-desc { font-size: 1rem; color: rgba(255,255,255,0.82); max-width: 530px; margin: 0 auto 2rem; line-height: 1.75; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* STATS BAR — DARK NAVY */
#stats-bar { background: var(--blue); display: flex; justify-content: center; flex-wrap: wrap; }
.stat-item { padding: 1.2rem 2.8rem; text-align: center; color: var(--white); border-right: 1px solid rgba(255,255,255,0.12); }
.stat-item:last-child { border-right: none; }
.stat-num { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: #6ee860; }
.stat-lbl { font-size: 11px; opacity: 0.78; letter-spacing: 0.5px; }

/* SERVICES — WHITE */
#services { background: var(--white); padding: 4.5rem 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; margin-top: 2rem; }
.service-card { background: var(--white); border: 1px solid var(--border); border-top: 3px solid transparent; border-radius: var(--radius); padding: 1.5rem; transition: all 0.22s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(46,156,31,0.12); border-top-color: var(--green); border-color: rgba(46,156,31,0.2); }
.svc-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 1rem; }
.service-card h3 { color: var(--blue); margin-bottom: 0.4rem; font-size: 1rem; }
.service-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.65; }

/* WHY US — NAVY */
#why-us { background: var(--blue); padding: 4.5rem 0; }
#why-us h2 { color: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.why-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 1.4rem; transition: background 0.2s; }
.why-card:hover { background: rgba(255,255,255,0.1); }
.why-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(46,156,31,0.25); border: 1px solid rgba(46,156,31,0.5); display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 0.85rem; }
.why-card h4 { color: var(--white); margin-bottom: 5px; }
.why-card p { font-size: 13px; color: rgba(255,255,255,0.62); margin: 0; line-height: 1.58; }

/* TESTIMONIALS — LIGHT GREY */
#testimonials { background: var(--light); padding: 4.5rem 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.3rem; margin-top: 2rem; }
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: box-shadow 0.2s; }
.testimonial-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.07); }
.stars { color: #f5a623; font-size: 14px; letter-spacing: 3px; margin-bottom: 0.75rem; }
.testimonial-card blockquote { font-size: 13.5px; font-style: italic; color: var(--muted); line-height: 1.75; margin: 0 0 1.1rem; border: none; padding: 0; }
.t-author { display: flex; align-items: center; gap: 10px; }
.t-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.t-name { font-size: 13px; font-weight: 600; color: var(--blue); }
.t-role { font-size: 11px; color: var(--muted); }

/* CONTACT — WHITE */
#contact { background: var(--white); padding: 4.5rem 0; }
.contact-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2rem; box-shadow: 0 4px 24px rgba(0,0,0,0.05); }
.contact-info h3 { margin-bottom: 1.2rem; }
.contact-item { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 0.9rem; }
.c-icon { width: 36px; height: 36px; background: #e8f5e9; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.c-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.c-val { font-size: 13px; color: var(--blue); margin-top: 2px; line-height: 1.55; }
.tagline-box { margin-top: 1.2rem; padding: 0.9rem 1rem; background: #e8f5e9; border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; }
.tagline-box .tb-label { font-size: 10px; font-weight: 700; color: var(--green2); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.tagline-box .tb-text { font-size: 13px; font-style: italic; color: var(--green2); font-weight: 500; }

.contact-form .form-group { margin-bottom: 0.9rem; }
.contact-form label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 7px; font-size: 13px; font-family: var(--font-body); color: var(--dark); background: var(--light); outline: none; transition: border-color 0.2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--green); background: var(--white); }
.contact-form textarea { height: 90px; resize: vertical; }
.contact-form .submit-btn { width: 100%; background: var(--green); color: var(--white); border: none; border-radius: 7px; padding: 13px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font-body); transition: background 0.2s; }
.contact-form .submit-btn:hover { background: var(--green2); }
.whatsapp-note { margin-top: 0.8rem; text-align: center; font-size: 12px; color: var(--muted); }
.whatsapp-note strong { color: var(--green); }

.success-msg{
        padding:12px 15px;
    border-radius:8px;
    font-size:14px;
    margin-bottom:15px;
    background:#dcfce7;
    color:#166534;
    border:1px solid #86efac;
}
.failure-msg{
    padding:12px 15px;
    border-radius:8px;
    font-size:14px;
    margin-bottom:15px;
    background:#fee2e2;
    color:#991b1b;
    border:1px solid #fca5a5;
}
/* FOOTER — NAVY */
#site-footer { background: var(--blue); color: rgba(255,255,255,0.6); text-align: center; padding: 2rem 1rem; font-size: 12px; line-height: 1.9; }
#site-footer strong { color: #6ee860; }
#site-footer a { color: rgba(255,255,255,0.5); }
#site-footer a:hover { color: var(--white); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    #main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-bottom: 1px solid var(--border); }
    #main-nav.open { display: block; }
    #main-nav ul { flex-direction: column; gap: 0.8rem; }
    #main-nav a { font-size: 15px; color: var(--dark); }
    .stat-item { padding: 0.9rem 1.5rem; }
    .contact-wrap { grid-template-columns: 1fr; padding: 1.5rem; }
    .hero-content { padding: 4rem 0 3rem; }
    #hero { min-height: 480px; }
}
@media (max-width: 480px) {
    .services-grid, .why-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; align-items: center; }
    .slide-caption { font-size: 11px; left: 16px; bottom: 16px; }
}
