/*
Theme Name: ATM Securities
Theme URI: https://atmsecurities.com.au
Author: ATM Securities
Description: Custom theme for ATM Securities, built to match the site's original design (burnt-orange/navy palette, Oswald + Mulish typefaces). All pages use the standard WordPress block editor, so content can be edited visually with no code required.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Unlicensed (custom, private use)
Text Domain: atm-securities
*/

/* ATM Securities - site stylesheet */

:root{
  --orange: #C77C43;       /* softened terracotta, used as an accent only */
  --orange-dark: #A9652F;
  --orange-tint: #F5E8DA;  /* pale wash used for large surfaces instead of solid orange */
  --navy: #1D3A66;
  --black: #201F1D;        /* soft charcoal instead of pure black */
  --gray-bg: #F7F5F2;
  --gray-text: #58564F;
  --white: #FFFFFF;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'Mulish', Arial, Helvetica, sans-serif;
  color: var(--black);
  line-height: 1.65;
  background: var(--white);
}

h1,h2,h3,h4{
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  margin: 0 0 20px;
  color: var(--navy);
}

h1{ font-size: 2.5rem; font-weight: 600; }
h2{ font-size: 1.85rem; }
h3{ font-size: 1.2rem; }

p{ margin: 0 0 16px; color: var(--gray-text); }

a{ color: var(--orange); text-decoration: none; transition: color .2s ease; }
a:hover{ color: var(--orange-dark); }

img{ max-width: 100%; display: block; }

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.rule{
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  margin: 0 auto 28px;
}
.rule.left{ margin: 0 0 20px; }

/* ---------- Top bar ---------- */
.topbar{
  background: var(--navy);
  color: #cfd8e8;
  font-size: 0.78rem;
}
.topbar .container{
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar a{ color: #cfd8e8; }
.topbar a:hover{ color: var(--white); }

/* ---------- Header / nav ---------- */
header.site-header{
  background: var(--white);
  border-bottom: 1px solid #ececec;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.nav-wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.logo img{
  height: 54px;
  width: auto;
  border-radius: 6px;
}
nav.main-nav > ul{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}
nav.main-nav a{
  color: var(--black);
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.88rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
nav.main-nav a:hover{ color: var(--orange); }
nav.main-nav a.active{ color: var(--orange); border-bottom-color: var(--orange); }

.has-dropdown{ position: relative; padding-bottom: 14px; margin-bottom: -14px; }
.dropdown{
  display: none;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(29,58,102,0.14);
  padding: 10px 0;
  margin: 0;
  z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown{ display: block; }
.dropdown li a{
  display: block;
  padding: 10px 20px;
  color: var(--black);
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  border-bottom: none;
}
.dropdown li a:hover{ background: var(--gray-bg); color: var(--orange); }

.nav-toggle{
  display: none;
  background: none;
  border: 0;
  font-size: 1.8rem;
  color: var(--black);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero{
  background: linear-gradient(180deg, var(--orange-tint) 0%, #FBF6EF 100%);
  padding: 60px 0 80px;
}
.hero .container{
  display: flex;
  align-items: center;
  gap: 50px;
}
.hero-copy{ flex: 1; }
.hero-image{ flex: 1; text-align: center; }
.hero-image img{
  max-height: 440px;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(29,58,102,0.18);
}
.hero h1{
  color: var(--navy);
  font-size: 2.7rem;
  margin-bottom: 14px;
}
.hero .subhead{
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: var(--orange-dark);
  margin-bottom: 14px;
}
.hero p{
  color: var(--gray-text);
  font-size: 1.05rem;
}
.btn{
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  padding: 14px 32px;
  border: none;
  border-radius: 7px;
  margin-top: 10px;
  font-size: 0.88rem;
  box-shadow: 0 8px 18px rgba(199,124,67,0.3);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn:hover{ background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(169,101,47,0.35); }
.btn.btn-orange{ background: var(--orange); color: var(--white); }
.btn.btn-orange:hover{ background: var(--orange-dark); }
.btn.btn-outline{
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  box-shadow: none;
}
.btn.btn-outline:hover{ background: rgba(255,255,255,0.12); border-color: var(--white); transform: none; }

/* ---------- Generic page header (inner pages) ---------- */
.page-hero{
  background: linear-gradient(180deg, var(--orange-tint) 0%, #FBF6EF 100%);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1{ color: var(--navy); margin-bottom: 14px; }
.page-hero p{ color: var(--gray-text); font-size: 1.1rem; max-width: 720px; margin: 0 auto; }

/* ---------- Feature tiles (home page 4-up) ---------- */
.tiles{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--gray-bg);
  padding: 6px;
}
.tile{
  position: relative;
  min-height: 250px;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tile::before{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(29,44,72,0.35), rgba(20,26,38,0.72));
}
/* Individual tile background photos (edit the image URL here if you want
   to swap one — the block editor's Group block doesn't expose a background
   image picker for this custom layout, so it's set here in CSS instead). */
.tile-installations{ background-image: url('images/ATM-machines12.jpg'); }
.tile-refurb{ background-image: url('images/ATM-refurbishments1.jpg'); }
.tile-antitheft{ background-image: url('images/ATM-Securities-bollard.jpg'); }
.tile-events{ background-image: url('images/Event-ATM.jpg'); }
.tile p{ margin: 0; }
.tile a{
  position: relative;
  z-index: 2;
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
  padding: 20px;
  display: block;
}
.tile a::after{
  content:'';
  display:block;
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  margin: 14px auto 0;
}

/* ---------- Trust strip (3-up icons) ---------- */
.trust-strip{
  background: var(--orange-tint);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trust-strip .item{
  text-align: center;
  padding: 56px 30px;
  border-right: 1px solid rgba(29,58,102,0.08);
}
.trust-strip .item:last-child{ border-right: none; }
.trust-strip .icon{
  width: 62px; height: 62px;
  margin: 0 auto 18px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--orange);
  box-shadow: 0 6px 16px rgba(29,58,102,0.1);
}
.trust-strip h3{
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: var(--navy);
  margin: 0;
}

/* ---------- Sections ---------- */
section{ padding: 70px 0; }
section.alt{ background: var(--gray-bg); }
/* Class-based equivalents of the two rules above, for block-editor content
   where WordPress renders <div> wrappers (Group blocks) instead of <section> */
.section{ padding: 70px 0; }
.section.alt{ background: var(--gray-bg); }
.narrow-content{ max-width: 760px; margin: 0 auto; }
.section-title{ text-align: center; margin-bottom: 40px; }
.section-title h2{ margin-bottom: 0; }

.two-col{
  display: flex;
  gap: 50px;
  align-items: center;
}
.two-col.reverse{ flex-direction: row-reverse; }
.two-col > *{ flex: 1; min-width: 0; }
.two-col img{ border-radius: 12px; box-shadow: 0 16px 34px rgba(29,58,102,0.12); }

.card-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.card{
  background: var(--white);
  border: 1px solid #ececea;
  border-radius: 10px;
  padding: 30px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover{ box-shadow: 0 14px 28px rgba(29,58,102,0.08); transform: translateY(-2px); }
.card img{ margin-bottom: 20px; width: 100%; height: 220px; object-fit: cover; border-radius: 8px; }
.card h3{ margin-bottom: 12px; color: var(--navy); }
.card ul{ margin: 0; padding-left: 18px; color: var(--gray-text); }
.card li{ margin-bottom: 6px; }

/* ---------- Testimonial ---------- */
.testimonial{
  background-image: linear-gradient(rgba(20,26,40,0.78), rgba(20,26,40,0.78)), url('images/ATM-keyboard-1.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 90px 0;
}
.testimonial .quote-mark{
  font-family: Georgia, serif;
  font-size: 3.6rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 10px;
}
.testimonial p.quote{
  font-style: italic;
  font-size: 1.2rem;
  max-width: 820px;
  margin: 0 auto 20px;
  color: var(--white);
}
.testimonial .author{ color: #cfd3da; letter-spacing: 0.5px; }

/* ---------- Contact / map ---------- */
.contact-strip{
  display: grid;
  grid-template-columns: 380px 1fr;
}
.contact-strip.gapped{ gap: 30px; }
.contact-strip.gapped .contact-box{ border-radius: 10px; }
.contact-box{
  background: var(--navy);
  color: var(--white);
  padding: 50px 40px;
}
.contact-box h3{ margin-bottom: 6px; color: var(--white); }
.contact-box p{ color: #cdd7ea; margin-bottom: 4px; }
.contact-box a{ color: var(--white); font-weight: 600; text-decoration: underline; }
.contact-box .pencil{ font-size: 1.8rem; margin-bottom: 16px; color: var(--orange); }
.contact-strip iframe{ width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ---------- Contact form ---------- */
.contact-form-wrap{
  background: var(--white);
  border: 1px solid #ececea;
  border-radius: 10px;
  padding: 40px;
}
.form-row{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-row label{
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.78rem;
  color: var(--navy);
}
.form-row input,
.form-row textarea{
  font-family: 'Mulish', Arial, sans-serif;
  font-size: 1rem;
  color: var(--black);
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: var(--gray-bg);
  transition: border-color .2s ease, background .2s ease;
}
.form-row input:focus,
.form-row textarea:focus{
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}
.form-row textarea{ resize: vertical; min-height: 130px; }
.contact-form button.btn{ border: none; cursor: pointer; }
.hp-field{ position: absolute; left: -9999px; top: -9999px; }

.form-notice{
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 0.95rem;
}
.form-notice.success{ background: #e8f4ec; color: #1e6b3a; border: 1px solid #bfe3cc; }
.form-notice.error{ background: #fbeaea; color: #a33333; border: 1px solid #f0c6c6; }

/* ---------- Client logo grid ---------- */
.logo-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.logo-grid .logo-item{
  background: var(--white);
  border: 1px solid #ececea;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  height: 130px;
  transition: box-shadow .2s ease;
}
.logo-grid .logo-item:hover{ box-shadow: 0 10px 22px rgba(29,58,102,0.1); }
.logo-grid img{ max-height: 90px; max-width: 100%; object-fit: contain; }
.logo-grid .name{
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  text-align: center;
  letter-spacing: 1px;
  color: var(--gray-text);
}

/* ---------- List with checks ---------- */
.check-list{ list-style: none; padding: 0; margin: 0 0 20px; }
.check-list li{
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--gray-text);
}
.check-list li::before{
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}

/* ---------- Footer ---------- */
footer.site-footer{
  background: var(--navy);
  color: #b9c3d6;
  padding: 50px 0 20px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
footer h4{ color: var(--white); font-size: 1rem; margin-bottom: 16px; }
footer.site-footer p{ color: #aab5c9; }
footer.site-footer a{ color: #b9c3d6; }
footer.site-footer a:hover{ color: var(--orange); }
.footer-grid ul{ list-style: none; margin: 0; padding: 0; }
.footer-grid li{ margin-bottom: 10px; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: #8b96ac;
}

/* ---------- Call banner ---------- */
.call-banner{
  background: var(--navy);
  text-align: center;
  padding: 34px 0;
}
.call-banner p{ color: var(--white); margin-bottom: 14px; font-family:'Oswald',sans-serif; letter-spacing:0.5px; text-transform:uppercase; font-weight: 400; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .tiles{ grid-template-columns: repeat(2, 1fr); }
  .trust-strip{ grid-template-columns: 1fr; }
  .trust-strip .item{ border-right:none; border-bottom: 1px solid rgba(29,58,102,0.08); }
  .two-col, .two-col.reverse{ flex-direction: column; }
  .card-grid{ grid-template-columns: 1fr; }
  .contact-strip{ grid-template-columns: 1fr; }
  .contact-form-wrap{ padding: 26px; }
  .footer-grid{ grid-template-columns: 1fr; }
  .logo-grid{ grid-template-columns: repeat(3, 1fr); }
  .hero .container{ flex-direction: column; }
}

@media (max-width: 700px){
  .nav-toggle{ display: block; }
  nav.main-nav{
    display: none;
    width: 100%;
    order: 3;
  }
  nav.main-nav.open{ display: block; }
  .nav-wrap{ flex-wrap: wrap; }
  nav.main-nav > ul{
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0;
  }
  nav.main-nav > ul > li{ width: 100%; }
  nav.main-nav a{ display:block; padding: 12px 0; border-top: 1px solid #f0f0f0; border-bottom: none; }
  .dropdown{ position: static; box-shadow: none; min-width: 0; display:none; margin-top: 0; border-radius: 0; }
  .has-dropdown.open .dropdown{ display:block; }
  h1{ font-size: 1.9rem; }
  .logo-grid{ grid-template-columns: repeat(2, 1fr); }
}
